appinsights

package
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2016 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ApplicationVersion         ContextTagKeys = "ai.application.ver"
	ApplicationBuild                          = "ai.application.build"
	DeviceId                                  = "ai.device.id"
	DeviceIp                                  = "ai.device.ip"
	DeviceLanguage                            = "ai.device.language"
	DeviceLocale                              = "ai.device.locale"
	DeviceModel                               = "ai.device.model"
	DeviceNetwork                             = "ai.device.network"
	DeviceOEMName                             = "ai.device.oemName"
	DeviceOS                                  = "ai.device.os"
	DeviceOSVersion                           = "ai.device.osVersion"
	DeviceRoleInstance                        = "ai.device.roleInstance"
	DeviceRoleName                            = "ai.device.roleName"
	DeviceScreenResolution                    = "ai.device.screenResolution"
	DeviceType                                = "ai.device.type"
	DeviceMachineName                         = "ai.device.machineName"
	LocationIp                                = "ai.location.ip"
	OperationId                               = "ai.operation.id"
	OperationName                             = "ai.operation.name"
	OperationParentId                         = "ai.operation.parentId"
	OperationRootId                           = "ai.operation.rootId"
	OperationSyntheticSource                  = "ai.operation.syntheticSource"
	OperationIsSynthetic                      = "ai.operation.isSynthetic"
	SessionId                                 = "ai.session.id"
	SessionIsFirst                            = "ai.session.isFirst"
	SessionIsNew                              = "ai.session.isNew"
	UserAccountAcquisitionDate                = "ai.user.accountAcquisitionDate"
	UserAccountId                             = "ai.user.accountId"
	UserAgent                                 = "ai.user.userAgent"
	UserId                                    = "ai.user.id"
	UserStoreRegion                           = "ai.user.storeRegion"
	SampleRate                                = "ai.sample.sampleRate"
	InternalSdkVersion                        = "ai.internal.sdkVersion"
	InternalAgentVersion                      = "ai.internal.agentVersion"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseTelemetry

type BaseTelemetry struct {
	// contains filtered or unexported fields
}

type ContextTagKeys

type ContextTagKeys string

type DataPoint

type DataPoint struct {
	Name  string        `json:"name"`
	Kind  DataPointType `json:"kind"`
	Value float32       `json:"value"`
	Count int           `json:"count"`
	// contains filtered or unexported fields
}

type DataPointType

type DataPointType int
const (
	Measurement DataPointType = iota
	Aggregation
)

type DiagnosticsMessageListener

type DiagnosticsMessageListener interface {
	ProcessMessages(DiagnosticsMessageProcessor)
}

func NewDiagnosticsMessageListener

func NewDiagnosticsMessageListener() DiagnosticsMessageListener

type DiagnosticsMessageProcessor

type DiagnosticsMessageProcessor func(string)

type DiagnosticsMessageWriter

type DiagnosticsMessageWriter interface {
	Write(string)
	// contains filtered or unexported methods
}

type Domain

type Domain interface {
}

type EventTelemetry

type EventTelemetry struct {
	BaseTelemetry
	// contains filtered or unexported fields
}

func NewEventTelemetry

func NewEventTelemetry(name string) *EventTelemetry

func (*EventTelemetry) Context

func (item *EventTelemetry) Context() TelemetryContext

func (*EventTelemetry) Timestamp

func (item *EventTelemetry) Timestamp() time.Time

type InMemoryChannel

type InMemoryChannel interface {
	EndpointAddress() string
	Send(Telemetry)
}

func NewInMemoryChannel

func NewInMemoryChannel(endpointAddress string) InMemoryChannel

type MetricTelemetry

type MetricTelemetry struct {
	BaseTelemetry
	// contains filtered or unexported fields
}

func NewMetricTelemetry

func NewMetricTelemetry(name string, value float32) *MetricTelemetry

func (*MetricTelemetry) Context

func (item *MetricTelemetry) Context() TelemetryContext

func (*MetricTelemetry) Timestamp

func (item *MetricTelemetry) Timestamp() time.Time

type RequestTelemetry

type RequestTelemetry struct {
	BaseTelemetry
	// contains filtered or unexported fields
}

func NewRequestTelemetry

func NewRequestTelemetry(name string, timestamp time.Time, duration time.Duration, responseCode string, success bool) *RequestTelemetry

func (*RequestTelemetry) Context

func (item *RequestTelemetry) Context() TelemetryContext

func (*RequestTelemetry) Timestamp

func (item *RequestTelemetry) Timestamp() time.Time

type SeverityLevel

type SeverityLevel int
const (
	Verbose SeverityLevel = iota
	Information
	Warning
	Error
	Critical
)

type Telemetry

type Telemetry interface {
	Timestamp() time.Time
	Context() TelemetryContext
	// contains filtered or unexported methods
}

type TelemetryBufferItems

type TelemetryBufferItems []Telemetry

type TelemetryChannel

type TelemetryChannel interface {
	Send(Telemetry)
}

type TelemetryClient

type TelemetryClient interface {
	Context() TelemetryContext
	InstrumentationKey() string
	IsEnabled() bool
	SetIsEnabled(bool)
	Track(Telemetry)
	TrackEvent(string)
	TrackEventTelemetry(*EventTelemetry)
	TrackMetric(string, float32)
	TrackMetricTelemetry(*MetricTelemetry)
	TrackTrace(string)
	TrackTraceTelemetry(*TraceTelemetry)
	TrackRequest(string, time.Time, time.Duration, string, bool)
	TrackRequestTelemetry(*RequestTelemetry)
}

func NewTelemetryClient

func NewTelemetryClient(iKey string) TelemetryClient

type TelemetryConfiguration

type TelemetryConfiguration struct {
	InstrumentationKey string
	EndpointUrl        string
}

func NewTelemetryConfiguration

func NewTelemetryConfiguration(instrumentationKey string) *TelemetryConfiguration

type TelemetryContext

type TelemetryContext interface {
	InstrumentationKey() string
	// contains filtered or unexported methods
}

func NewClientTelemetryContext

func NewClientTelemetryContext() TelemetryContext

func NewItemTelemetryContext

func NewItemTelemetryContext() TelemetryContext

type TraceTelemetry

type TraceTelemetry struct {
	BaseTelemetry
	// contains filtered or unexported fields
}

func NewTraceTelemetry

func NewTraceTelemetry(message string, severityLevel SeverityLevel) *TraceTelemetry

func (*TraceTelemetry) Context

func (item *TraceTelemetry) Context() TelemetryContext

func (*TraceTelemetry) Timestamp

func (item *TraceTelemetry) Timestamp() time.Time

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL