Documentation
¶
Index ¶
- Constants
- Variables
- func CacheAndRemoveEnvVars() error
- func GetEndpoint() string
- func GetPingEndpoint() string
- func SendAllTelemetry(clientId string) error
- func SendDiagnosticPing(ctx context.Context, clientId string, usageTelemetry bool) error
- func SendNoTelemetryUpdate(ctx context.Context, clientId string, noTelemetryVal bool) error
- type NoTelemetryInputType
- type PingInputType
- type TEventsInputType
- type TelemetryInputType
Constants ¶
const APIVersion = 1
const MaxPtyUpdateSize = (128 * 1024)
const MaxUpdatePayloadSize = 1 * (1024 * 1024)
setting to 1M to be safe (max is 6M for API-GW + Lambda, but there is base64 encoding and upload time) we allow one extra update past this estimated size
const MaxUpdateWriterErrors = 3
const MaxUpdatesPerReq = 10
const MaxUpdatesToDeDup = 1000
const NoTelemetryUrl = "/no-telemetry"
const PingUrl = "/ping"
const TEventsBatchSize = 200
const TEventsMaxBatches = 10
const TEventsUrl = "/tevents"
const TelemetryUrl = "/telemetry"
const WCloudDefaultTimeout = 5 * time.Second
const WCloudEndpoint = ""
NodeDrop: the Wave cloud services (telemetry, ping) belong to the original vendor and are disabled. With empty endpoints every send function below is a silent no-op.
const WCloudEndpointVarName = "WCLOUD_ENDPOINT"
const WCloudPingEndpoint = ""
const WCloudPingEndpointVarName = "WCLOUD_PING_ENDPOINT"
Variables ¶
var WCloudEndpoint_VarCache string
var WCloudPingEndpoint_VarCache string
Functions ¶
func CacheAndRemoveEnvVars ¶
func CacheAndRemoveEnvVars() error
func GetEndpoint ¶
func GetEndpoint() string
func GetPingEndpoint ¶
func GetPingEndpoint() string
func SendAllTelemetry ¶
func SendDiagnosticPing ¶
Types ¶
type NoTelemetryInputType ¶
type PingInputType ¶
type TEventsInputType ¶
type TEventsInputType struct {
ClientId string `json:"clientid"`
Events []*telemetrydata.TEvent `json:"events"`
}
type TelemetryInputType ¶
type TelemetryInputType struct {
UserId string `json:"userid"`
ClientId string `json:"clientid"`
AppType string `json:"apptype,omitempty"`
AutoUpdateEnabled bool `json:"autoupdateenabled,omitempty"`
AutoUpdateChannel string `json:"autoupdatechannel,omitempty"`
CurDay string `json:"curday"`
Activity []*telemetry.ActivityType `json:"activity"`
}