Documentation ¶
Index ¶
Constants ¶
View Source
const Type = "appinsights"
Type should match the package name
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct { // InstrumentationKey is a GUID that identifies an app insights instance InstrumentationKey string `json:"instrumentation_key"` // TestLocation identifies the test location sent // in Application Insights trackAvailability() events TestLocation string `json:"test_location,omitempty"` // Tags will be applied to all telemetry items and // visible in the customDimensions field when viewing the // submitted data Tags map[string]string `json:"tags,omitempty"` // MaxRetries specifies the number of retries before returning error // from close(). To enable retries, both RetryInterval and MaxRetries // must be greater than 0. Default is 0 (disabled). MaxRetries int `json:"max_retries,omitempty"` // RetryInterval specifies the time between retries in seconds. To enable retries, // both RetryInterval and MaxRetries must // be greater than 0. Default is 0 (disabled). RetryInterval int `json:"retry_interval,omitempty"` // Timeout specifies the number of seconds to wait for telemetry submission // before returning error from close() if retries are disabled. If omitted or // set to 0, timeout will be 2 seconds. If retries are enabled, this setting // is ignored. Timeout int `json:"timeout,omitempty"` // contains filtered or unexported fields }
Storage will send results to Azure Application Insights
func New ¶
func New(config json.RawMessage) (Storage, error)
New creates a new Storage instance based on json config
Click to show internal directories.
Click to hide internal directories.