const ( // DefaultBaseURI is the default URI used for the service Insights DefaultBaseURI = "https://api.applicationinsights.io/v1" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
BaseClient is the base client for Insights.
type BaseClient struct { autorest.Client BaseURI string }
func New() BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
BasicEventsResultData events query result data.
type BasicEventsResultData interface { AsEventsTraceResult() (*EventsTraceResult, bool) AsEventsCustomEventResult() (*EventsCustomEventResult, bool) AsEventsPageViewResult() (*EventsPageViewResult, bool) AsEventsBrowserTimingResult() (*EventsBrowserTimingResult, bool) AsEventsRequestResult() (*EventsRequestResult, bool) AsEventsDependencyResult() (*EventsDependencyResult, bool) AsEventsExceptionResult() (*EventsExceptionResult, bool) AsEventsAvailabilityResultResult() (*EventsAvailabilityResultResult, bool) AsEventsPerformanceCounterResult() (*EventsPerformanceCounterResult, bool) AsEventsCustomMetricResult() (*EventsCustomMetricResult, bool) AsEventsResultData() (*EventsResultData, bool) }
Column a column in a table.
type Column struct { // Name - The name of this column. Name *string `json:"name,omitempty"` // Type - The data type of this column. Type *string `json:"type,omitempty"` }
ErrorDetail ...
type ErrorDetail struct { // Code - The error's code. Code *string `json:"code,omitempty"` // Message - A human readable error message. Message *string `json:"message,omitempty"` // Target - Indicates which property in the request is responsible for the error. Target *string `json:"target,omitempty"` // Value - Indicates which value in 'target' is responsible for the error. Value *string `json:"value,omitempty"` // Resources - Indicates resources which were responsible for the error. Resources *[]string `json:"resources,omitempty"` AdditionalProperties interface{} `json:"additionalProperties,omitempty"` }
ErrorInfo ...
type ErrorInfo struct { // Code - A machine readable error code. Code *string `json:"code,omitempty"` // Message - A human readable error message. Message *string `json:"message,omitempty"` // Details - error details. Details *[]ErrorDetail `json:"details,omitempty"` // Innererror - Inner error details if they exist. Innererror *ErrorInfo `json:"innererror,omitempty"` AdditionalProperties interface{} `json:"additionalProperties,omitempty"` }
ErrorResponse contains details when the response code indicates an error.
type ErrorResponse struct { // Error - The error details. Error *ErrorInfo `json:"error,omitempty"` }
EventType enumerates the values for event type.
type EventType string
const ( // All ... All EventType = "$all" // AvailabilityResults ... AvailabilityResults EventType = "availabilityResults" // BrowserTimings ... BrowserTimings EventType = "browserTimings" // CustomEvents ... CustomEvents EventType = "customEvents" // CustomMetrics ... CustomMetrics EventType = "customMetrics" // Dependencies ... Dependencies EventType = "dependencies" // Exceptions ... Exceptions EventType = "exceptions" // PageViews ... PageViews EventType = "pageViews" // PerformanceCounters ... PerformanceCounters EventType = "performanceCounters" // Requests ... Requests EventType = "requests" // Traces ... Traces EventType = "traces" )
func PossibleEventTypeValues() []EventType
PossibleEventTypeValues returns an array of possible values for the EventType const type.
EventsAiInfo AI related application info for an event result
type EventsAiInfo struct { // IKey - iKey of the app IKey *string `json:"iKey,omitempty"` // AppName - Name of the application AppName *string `json:"appName,omitempty"` // AppID - ID of the application AppID *string `json:"appId,omitempty"` // SdkVersion - SDK version of the application SdkVersion *string `json:"sdkVersion,omitempty"` }
EventsApplicationInfo application info for an event result
type EventsApplicationInfo struct { // Version - Version of the application Version *string `json:"version,omitempty"` }
EventsAvailabilityResultInfo the availability result info
type EventsAvailabilityResultInfo struct { // Name - The name of the availability result Name *string `json:"name,omitempty"` // Success - Indicates if the availability result was successful Success *string `json:"success,omitempty"` // Duration - The duration of the availability result Duration *int64 `json:"duration,omitempty"` // PerformanceBucket - The performance bucket of the availability result PerformanceBucket *string `json:"performanceBucket,omitempty"` // Message - The message of the availability result Message *string `json:"message,omitempty"` // Location - The location of the availability result Location *string `json:"location,omitempty"` // ID - The ID of the availability result ID *string `json:"id,omitempty"` // Size - The size of the availability result Size *string `json:"size,omitempty"` }
EventsAvailabilityResultResult an availability result result
type EventsAvailabilityResultResult struct { AvailabilityResult *EventsAvailabilityResultInfo `json:"availabilityResult,omitempty"` // ID - The unique ID for this event. ID *string `json:"id,omitempty"` // Count - Count of the event Count *int64 `json:"count,omitempty"` // Timestamp - Timestamp of the event Timestamp *date.Time `json:"timestamp,omitempty"` // CustomDimensions - Custom dimensions of the event CustomDimensions *EventsResultDataCustomDimensions `json:"customDimensions,omitempty"` // CustomMeasurements - Custom measurements of the event CustomMeasurements *EventsResultDataCustomMeasurements `json:"customMeasurements,omitempty"` // Operation - Operation info of the event Operation *EventsOperationInfo `json:"operation,omitempty"` // Session - Session info of the event Session *EventsSessionInfo `json:"session,omitempty"` // User - User info of the event User *EventsUserInfo `json:"user,omitempty"` // Cloud - Cloud info of the event Cloud *EventsCloudInfo `json:"cloud,omitempty"` // Ai - AI info of the event Ai *EventsAiInfo `json:"ai,omitempty"` // Application - Application info of the event Application *EventsApplicationInfo `json:"application,omitempty"` // Client - Client info of the event Client *EventsClientInfo `json:"client,omitempty"` // Type - Possible values include: 'TypeEventsResultData', 'TypeTrace', 'TypeCustomEvent', 'TypePageView', 'TypeBrowserTiming', 'TypeRequest', 'TypeDependency', 'TypeException', 'TypeAvailabilityResult', 'TypePerformanceCounter', 'TypeCustomMetric' Type Type `json:"type,omitempty"` }
func (earr EventsAvailabilityResultResult) AsBasicEventsResultData() (BasicEventsResultData, bool)
AsBasicEventsResultData is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsAvailabilityResultResult() (*EventsAvailabilityResultResult, bool)
AsEventsAvailabilityResultResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsBrowserTimingResult() (*EventsBrowserTimingResult, bool)
AsEventsBrowserTimingResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsCustomEventResult() (*EventsCustomEventResult, bool)
AsEventsCustomEventResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsCustomMetricResult() (*EventsCustomMetricResult, bool)
AsEventsCustomMetricResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsDependencyResult() (*EventsDependencyResult, bool)
AsEventsDependencyResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsExceptionResult() (*EventsExceptionResult, bool)
AsEventsExceptionResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsPageViewResult() (*EventsPageViewResult, bool)
AsEventsPageViewResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsPerformanceCounterResult() (*EventsPerformanceCounterResult, bool)
AsEventsPerformanceCounterResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsRequestResult() (*EventsRequestResult, bool)
AsEventsRequestResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsResultData() (*EventsResultData, bool)
AsEventsResultData is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsTraceResult() (*EventsTraceResult, bool)
AsEventsTraceResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EventsAvailabilityResultResult.
EventsBrowserTimingInfo the browser timing information
type EventsBrowserTimingInfo struct { // URLPath - The path of the URL URLPath *string `json:"urlPath,omitempty"` // URLHost - The host of the URL URLHost *string `json:"urlHost,omitempty"` // Name - The name of the page Name *string `json:"name,omitempty"` // URL - The url of the page URL *string `json:"url,omitempty"` // TotalDuration - The total duration of the load TotalDuration *int64 `json:"totalDuration,omitempty"` // PerformanceBucket - The performance bucket of the load PerformanceBucket *string `json:"performanceBucket,omitempty"` // NetworkDuration - The network duration of the load NetworkDuration *int64 `json:"networkDuration,omitempty"` // SendDuration - The send duration of the load SendDuration *int64 `json:"sendDuration,omitempty"` // ReceiveDuration - The receive duration of the load ReceiveDuration *int64 `json:"receiveDuration,omitempty"` // ProcessingDuration - The processing duration of the load ProcessingDuration *int64 `json:"processingDuration,omitempty"` }
EventsBrowserTimingResult a browser timing result
type EventsBrowserTimingResult struct { BrowserTiming *EventsBrowserTimingInfo `json:"browserTiming,omitempty"` ClientPerformance *EventsClientPerformanceInfo `json:"clientPerformance,omitempty"` // ID - The unique ID for this event. ID *string `json:"id,omitempty"` // Count - Count of the event Count *int64 `json:"count,omitempty"` // Timestamp - Timestamp of the event Timestamp *date.Time `json:"timestamp,omitempty"` // CustomDimensions - Custom dimensions of the event CustomDimensions *EventsResultDataCustomDimensions `json:"customDimensions,omitempty"` // CustomMeasurements - Custom measurements of the event CustomMeasurements *EventsResultDataCustomMeasurements `json:"customMeasurements,omitempty"` // Operation - Operation info of the event Operation *EventsOperationInfo `json:"operation,omitempty"` // Session - Session info of the event Session *EventsSessionInfo `json:"session,omitempty"` // User - User info of the event User *EventsUserInfo `json:"user,omitempty"` // Cloud - Cloud info of the event Cloud *EventsCloudInfo `json:"cloud,omitempty"` // Ai - AI info of the event Ai *EventsAiInfo `json:"ai,omitempty"` // Application - Application info of the event Application *EventsApplicationInfo `json:"application,omitempty"` // Client - Client info of the event Client *EventsClientInfo `json:"client,omitempty"` // Type - Possible values include: 'TypeEventsResultData', 'TypeTrace', 'TypeCustomEvent', 'TypePageView', 'TypeBrowserTiming', 'TypeRequest', 'TypeDependency', 'TypeException', 'TypeAvailabilityResult', 'TypePerformanceCounter', 'TypeCustomMetric' Type Type `json:"type,omitempty"` }
func (ebtr EventsBrowserTimingResult) AsBasicEventsResultData() (BasicEventsResultData, bool)
AsBasicEventsResultData is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsAvailabilityResultResult() (*EventsAvailabilityResultResult, bool)
AsEventsAvailabilityResultResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsBrowserTimingResult() (*EventsBrowserTimingResult, bool)
AsEventsBrowserTimingResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsCustomEventResult() (*EventsCustomEventResult, bool)
AsEventsCustomEventResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsCustomMetricResult() (*EventsCustomMetricResult, bool)
AsEventsCustomMetricResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsDependencyResult() (*EventsDependencyResult, bool)
AsEventsDependencyResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsExceptionResult() (*EventsExceptionResult, bool)
AsEventsExceptionResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsPageViewResult() (*EventsPageViewResult, bool)
AsEventsPageViewResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsPerformanceCounterResult() (*EventsPerformanceCounterResult, bool)
AsEventsPerformanceCounterResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsRequestResult() (*EventsRequestResult, bool)
AsEventsRequestResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsResultData() (*EventsResultData, bool)
AsEventsResultData is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsTraceResult() (*EventsTraceResult, bool)
AsEventsTraceResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EventsBrowserTimingResult.
EventsClient is the composite Swagger for Application Insights Data Client
type EventsClient struct { BaseClient }
func NewEventsClient() EventsClient
NewEventsClient creates an instance of the EventsClient client.
func NewEventsClientWithBaseURI(baseURI string) EventsClient
NewEventsClientWithBaseURI creates an instance of the EventsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client EventsClient) Get(ctx context.Context, appID string, eventType EventType, eventID string, timespan string) (result EventsResults, err error)
Get gets the data for a single event Parameters: appID - ID of the application. This is Application ID from the API Access settings blade in the Azure portal. eventType - the type of events to query; either a standard event type (`traces`, `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or `$all` to query across all event types. eventID - ID of event. timespan - optional. The timespan over which to retrieve events. This is an ISO8601 time period value. This timespan is applied in addition to any that are specified in the Odata expression.
func (client EventsClient) GetByType(ctx context.Context, appID string, eventType EventType, timespan string, filter string, search string, orderby string, selectParameter string, skip *int32, top *int32, formatParameter string, count *bool, apply string) (result EventsResults, err error)
GetByType executes an OData query for events Parameters: appID - ID of the application. This is Application ID from the API Access settings blade in the Azure portal. eventType - the type of events to query; either a standard event type (`traces`, `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or `$all` to query across all event types. timespan - optional. The timespan over which to retrieve events. This is an ISO8601 time period value. This timespan is applied in addition to any that are specified in the Odata expression. filter - an expression used to filter the returned events search - a free-text search expression to match for whether a particular event should be returned orderby - a comma-separated list of properties with \"asc\" (the default) or \"desc\" to control the order of returned events selectParameter - limits the properties to just those requested on each returned event skip - the number of items to skip over before returning events top - the number of events to return formatParameter - format for the returned events count - request a count of matching items included with the returned events apply - an expression used for aggregation over returned events
func (client EventsClient) GetByTypePreparer(ctx context.Context, appID string, eventType EventType, timespan string, filter string, search string, orderby string, selectParameter string, skip *int32, top *int32, formatParameter string, count *bool, apply string) (*http.Request, error)
GetByTypePreparer prepares the GetByType request.
func (client EventsClient) GetByTypeResponder(resp *http.Response) (result EventsResults, err error)
GetByTypeResponder handles the response to the GetByType request. The method always closes the http.Response Body.
func (client EventsClient) GetByTypeSender(req *http.Request) (*http.Response, error)
GetByTypeSender sends the GetByType request. The method will close the http.Response Body if it receives an error.
func (client EventsClient) GetOdataMetadata(ctx context.Context, appID string) (result SetObject, err error)
GetOdataMetadata gets OData EDMX metadata describing the event data model Parameters: appID - ID of the application. This is Application ID from the API Access settings blade in the Azure portal.
func (client EventsClient) GetOdataMetadataPreparer(ctx context.Context, appID string) (*http.Request, error)
GetOdataMetadataPreparer prepares the GetOdataMetadata request.
func (client EventsClient) GetOdataMetadataResponder(resp *http.Response) (result SetObject, err error)
GetOdataMetadataResponder handles the response to the GetOdataMetadata request. The method always closes the http.Response Body.
func (client EventsClient) GetOdataMetadataSender(req *http.Request) (*http.Response, error)
GetOdataMetadataSender sends the GetOdataMetadata request. The method will close the http.Response Body if it receives an error.
func (client EventsClient) GetPreparer(ctx context.Context, appID string, eventType EventType, eventID string, timespan string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client EventsClient) GetResponder(resp *http.Response) (result EventsResults, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client EventsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
EventsClientInfo client info for an event result
type EventsClientInfo struct { // Model - Model of the client Model *string `json:"model,omitempty"` // Os - Operating system of the client Os *string `json:"os,omitempty"` // Type - Type of the client Type *string `json:"type,omitempty"` // Browser - Browser of the client Browser *string `json:"browser,omitempty"` // IP - IP address of the client IP *string `json:"ip,omitempty"` // City - City of the client City *string `json:"city,omitempty"` // StateOrProvince - State or province of the client StateOrProvince *string `json:"stateOrProvince,omitempty"` // CountryOrRegion - Country or region of the client CountryOrRegion *string `json:"countryOrRegion,omitempty"` }
EventsClientPerformanceInfo client performance information
type EventsClientPerformanceInfo struct { // Name - The name of the client performance Name *string `json:"name,omitempty"` }
EventsCloudInfo cloud info for an event result
type EventsCloudInfo struct { // RoleName - Role name of the cloud RoleName *string `json:"roleName,omitempty"` // RoleInstance - Role instance of the cloud RoleInstance *string `json:"roleInstance,omitempty"` }
EventsCustomEventInfo the custom event information
type EventsCustomEventInfo struct { // Name - The name of the custom event Name *string `json:"name,omitempty"` }
EventsCustomEventResult a custom event result
type EventsCustomEventResult struct { CustomEvent *EventsCustomEventInfo `json:"customEvent,omitempty"` // ID - The unique ID for this event. ID *string `json:"id,omitempty"` // Count - Count of the event Count *int64 `json:"count,omitempty"` // Timestamp - Timestamp of the event Timestamp *date.Time `json:"timestamp,omitempty"` // CustomDimensions - Custom dimensions of the event CustomDimensions *EventsResultDataCustomDimensions `json:"customDimensions,omitempty"` // CustomMeasurements - Custom measurements of the event CustomMeasurements *EventsResultDataCustomMeasurements `json:"customMeasurements,omitempty"` // Operation - Operation info of the event Operation *EventsOperationInfo `json:"operation,omitempty"` // Session - Session info of the event Session *EventsSessionInfo `json:"session,omitempty"` // User - User info of the event User *EventsUserInfo `json:"user,omitempty"` // Cloud - Cloud info of the event Cloud *EventsCloudInfo `json:"cloud,omitempty"` // Ai - AI info of the event Ai *EventsAiInfo `json:"ai,omitempty"` // Application - Application info of the event Application *EventsApplicationInfo `json:"application,omitempty"` // Client - Client info of the event Client *EventsClientInfo `json:"client,omitempty"` // Type - Possible values include: 'TypeEventsResultData', 'TypeTrace', 'TypeCustomEvent', 'TypePageView', 'TypeBrowserTiming', 'TypeRequest', 'TypeDependency', 'TypeException', 'TypeAvailabilityResult', 'TypePerformanceCounter', 'TypeCustomMetric' Type Type `json:"type,omitempty"` }
func (ecer EventsCustomEventResult) AsBasicEventsResultData() (BasicEventsResultData, bool)
AsBasicEventsResultData is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsAvailabilityResultResult() (*EventsAvailabilityResultResult, bool)
AsEventsAvailabilityResultResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsBrowserTimingResult() (*EventsBrowserTimingResult, bool)
AsEventsBrowserTimingResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsCustomEventResult() (*EventsCustomEventResult, bool)
AsEventsCustomEventResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsCustomMetricResult() (*EventsCustomMetricResult, bool)
AsEventsCustomMetricResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsDependencyResult() (*EventsDependencyResult, bool)
AsEventsDependencyResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsExceptionResult() (*EventsExceptionResult, bool)
AsEventsExceptionResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsPageViewResult() (*EventsPageViewResult, bool)
AsEventsPageViewResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsPerformanceCounterResult() (*EventsPerformanceCounterResult, bool)
AsEventsPerformanceCounterResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsRequestResult() (*EventsRequestResult, bool)
AsEventsRequestResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsResultData() (*EventsResultData, bool)
AsEventsResultData is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsTraceResult() (*EventsTraceResult, bool)
AsEventsTraceResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EventsCustomEventResult.
EventsCustomMetricInfo the custom metric info
type EventsCustomMetricInfo struct { // Name - The name of the custom metric Name *string `json:"name,omitempty"` // Value - The value of the custom metric Value *float64 `json:"value,omitempty"` // ValueSum - The sum of the custom metric ValueSum *float64 `json:"valueSum,omitempty"` // ValueCount - The count of the custom metric ValueCount *int32 `json:"valueCount,omitempty"` // ValueMin - The minimum value of the custom metric ValueMin *float64 `json:"valueMin,omitempty"` // ValueMax - The maximum value of the custom metric ValueMax *float64 `json:"valueMax,omitempty"` // ValueStdDev - The standard deviation of the custom metric ValueStdDev *float64 `json:"valueStdDev,omitempty"` }
EventsCustomMetricResult a custom metric result
type EventsCustomMetricResult struct { CustomMetric *EventsCustomMetricInfo `json:"customMetric,omitempty"` // ID - The unique ID for this event. ID *string `json:"id,omitempty"` // Count - Count of the event Count *int64 `json:"count,omitempty"` // Timestamp - Timestamp of the event Timestamp *date.Time `json:"timestamp,omitempty"` // CustomDimensions - Custom dimensions of the event CustomDimensions *EventsResultDataCustomDimensions `json:"customDimensions,omitempty"` // CustomMeasurements - Custom measurements of the event CustomMeasurements *EventsResultDataCustomMeasurements `json:"customMeasurements,omitempty"` // Operation - Operation info of the event Operation *EventsOperationInfo `json:"operation,omitempty"` // Session - Session info of the event Session *EventsSessionInfo `json:"session,omitempty"` // User - User info of the event User *EventsUserInfo `json:"user,omitempty"` // Cloud - Cloud info of the event Cloud *EventsCloudInfo `json:"cloud,omitempty"` // Ai - AI info of the event Ai *EventsAiInfo `json:"ai,omitempty"` // Application - Application info of the event Application *EventsApplicationInfo `json:"application,omitempty"` // Client - Client info of the event Client *EventsClientInfo `json:"client,omitempty"` // Type - Possible values include: 'TypeEventsResultData', 'TypeTrace', 'TypeCustomEvent', 'TypePageView', 'TypeBrowserTiming', 'TypeRequest', 'TypeDependency', 'TypeException', 'TypeAvailabilityResult', 'TypePerformanceCounter', 'TypeCustomMetric' Type Type `json:"type,omitempty"` }
func (ecmr EventsCustomMetricResult) AsBasicEventsResultData() (BasicEventsResultData, bool)
AsBasicEventsResultData is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsAvailabilityResultResult() (*EventsAvailabilityResultResult, bool)
AsEventsAvailabilityResultResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsBrowserTimingResult() (*EventsBrowserTimingResult, bool)
AsEventsBrowserTimingResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsCustomEventResult() (*EventsCustomEventResult, bool)
AsEventsCustomEventResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsCustomMetricResult() (*EventsCustomMetricResult, bool)
AsEventsCustomMetricResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsDependencyResult() (*EventsDependencyResult, bool)
AsEventsDependencyResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsExceptionResult() (*EventsExceptionResult, bool)
AsEventsExceptionResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsPageViewResult() (*EventsPageViewResult, bool)
AsEventsPageViewResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsPerformanceCounterResult() (*EventsPerformanceCounterResult, bool)
AsEventsPerformanceCounterResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsRequestResult() (*EventsRequestResult, bool)
AsEventsRequestResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsResultData() (*EventsResultData, bool)
AsEventsResultData is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsTraceResult() (*EventsTraceResult, bool)
AsEventsTraceResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EventsCustomMetricResult.
EventsDependencyInfo the dependency info
type EventsDependencyInfo struct { // Target - The target of the dependency Target *string `json:"target,omitempty"` // Data - The data of the dependency Data *string `json:"data,omitempty"` // Success - Indicates if the dependency was successful Success *string `json:"success,omitempty"` // Duration - The duration of the dependency Duration *int64 `json:"duration,omitempty"` // PerformanceBucket - The performance bucket of the dependency PerformanceBucket *string `json:"performanceBucket,omitempty"` // ResultCode - The result code of the dependency ResultCode *string `json:"resultCode,omitempty"` // Type - The type of the dependency Type *string `json:"type,omitempty"` // Name - The name of the dependency Name *string `json:"name,omitempty"` // ID - The ID of the dependency ID *string `json:"id,omitempty"` }
EventsDependencyResult a dependency result
type EventsDependencyResult struct { Dependency *EventsDependencyInfo `json:"dependency,omitempty"` // ID - The unique ID for this event. ID *string `json:"id,omitempty"` // Count - Count of the event Count *int64 `json:"count,omitempty"` // Timestamp - Timestamp of the event Timestamp *date.Time `json:"timestamp,omitempty"` // CustomDimensions - Custom dimensions of the event CustomDimensions *EventsResultDataCustomDimensions `json:"customDimensions,omitempty"` // CustomMeasurements - Custom measurements of the event CustomMeasurements *EventsResultDataCustomMeasurements `json:"customMeasurements,omitempty"` // Operation - Operation info of the event Operation *EventsOperationInfo `json:"operation,omitempty"` // Session - Session info of the event Session *EventsSessionInfo `json:"session,omitempty"` // User - User info of the event User *EventsUserInfo `json:"user,omitempty"` // Cloud - Cloud info of the event Cloud *EventsCloudInfo `json:"cloud,omitempty"` // Ai - AI info of the event Ai *EventsAiInfo `json:"ai,omitempty"` // Application - Application info of the event Application *EventsApplicationInfo `json:"application,omitempty"` // Client - Client info of the event Client *EventsClientInfo `json:"client,omitempty"` // Type - Possible values include: 'TypeEventsResultData', 'TypeTrace', 'TypeCustomEvent', 'TypePageView', 'TypeBrowserTiming', 'TypeRequest', 'TypeDependency', 'TypeException', 'TypeAvailabilityResult', 'TypePerformanceCounter', 'TypeCustomMetric' Type Type `json:"type,omitempty"` }
func (edr EventsDependencyResult) AsBasicEventsResultData() (BasicEventsResultData, bool)
AsBasicEventsResultData is the BasicEventsResultData implementation for EventsDependencyResult.
func (edr EventsDependencyResult) AsEventsAvailabilityResultResult() (*EventsAvailabilityResultResult, bool)
AsEventsAvailabilityResultResult is the BasicEventsResultData implementation for EventsDependencyResult.
func (edr EventsDependencyResult) AsEventsBrowserTimingResult() (*EventsBrowserTimingResult, bool)
AsEventsBrowserTimingResult is the BasicEventsResultData implementation for EventsDependencyResult.
func (edr EventsDependencyResult) AsEventsCustomEventResult() (*EventsCustomEventResult, bool)
AsEventsCustomEventResult is the BasicEventsResultData implementation for EventsDependencyResult.
func (edr EventsDependencyResult) AsEventsCustomMetricResult() (*EventsCustomMetricResult, bool)
AsEventsCustomMetricResult is the BasicEventsResultData implementation for EventsDependencyResult.
func (edr EventsDependencyResult) AsEventsDependencyResult() (*EventsDependencyResult, bool)
AsEventsDependencyResult is the BasicEventsResultData implementation for EventsDependencyResult.
func (edr EventsDependencyResult) AsEventsExceptionResult() (*EventsExceptionResult, bool)
AsEventsExceptionResult is the BasicEventsResultData implementation for EventsDependencyResult.
func (edr EventsDependencyResult) AsEventsPageViewResult() (*EventsPageViewResult, bool)
AsEventsPageViewResult is the BasicEventsResultData implementation for EventsDependencyResult.
func (edr EventsDependencyResult) AsEventsPerformanceCounterResult() (*EventsPerformanceCounterResult, bool)
AsEventsPerformanceCounterResult is the BasicEventsResultData implementation for EventsDependencyResult.
func (edr EventsDependencyResult) AsEventsRequestResult() (*EventsRequestResult, bool)
AsEventsRequestResult is the BasicEventsResultData implementation for EventsDependencyResult.
func (edr EventsDependencyResult) AsEventsResultData() (*EventsResultData, bool)
AsEventsResultData is the BasicEventsResultData implementation for EventsDependencyResult.
func (edr EventsDependencyResult) AsEventsTraceResult() (*EventsTraceResult, bool)
AsEventsTraceResult is the BasicEventsResultData implementation for EventsDependencyResult.
func (edr EventsDependencyResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EventsDependencyResult.
EventsExceptionDetail exception details
type EventsExceptionDetail struct { // SeverityLevel - The severity level of the exception detail SeverityLevel *string `json:"severityLevel,omitempty"` // OuterID - The outer ID of the exception detail OuterID *string `json:"outerId,omitempty"` // Message - The message of the exception detail Message *string `json:"message,omitempty"` // Type - The type of the exception detail Type *string `json:"type,omitempty"` // ID - The ID of the exception detail ID *string `json:"id,omitempty"` // ParsedStack - The parsed stack ParsedStack *[]EventsExceptionDetailsParsedStack `json:"parsedStack,omitempty"` }
EventsExceptionDetailsParsedStack a parsed stack entry
type EventsExceptionDetailsParsedStack struct { // Assembly - The assembly of the stack entry Assembly *string `json:"assembly,omitempty"` // Method - The method of the stack entry Method *string `json:"method,omitempty"` // Level - The level of the stack entry Level *int64 `json:"level,omitempty"` // Line - The line of the stack entry Line *int64 `json:"line,omitempty"` }
EventsExceptionInfo the exception info
type EventsExceptionInfo struct { // SeverityLevel - The severity level of the exception SeverityLevel *int32 `json:"severityLevel,omitempty"` // ProblemID - The problem ID of the exception ProblemID *string `json:"problemId,omitempty"` // HandledAt - Indicates where the exception was handled at HandledAt *string `json:"handledAt,omitempty"` // Assembly - The assembly which threw the exception Assembly *string `json:"assembly,omitempty"` // Method - The method that threw the exception Method *string `json:"method,omitempty"` // Message - The message of the exception Message *string `json:"message,omitempty"` // Type - The type of the exception Type *string `json:"type,omitempty"` // OuterType - The outer type of the exception OuterType *string `json:"outerType,omitempty"` // OuterMethod - The outer method of the exception OuterMethod *string `json:"outerMethod,omitempty"` // OuterAssembly - The outer assembly of the exception OuterAssembly *string `json:"outerAssembly,omitempty"` // OuterMessage - The outer message of the exception OuterMessage *string `json:"outerMessage,omitempty"` // InnermostType - The inner most type of the exception InnermostType *string `json:"innermostType,omitempty"` // InnermostMessage - The inner most message of the exception InnermostMessage *string `json:"innermostMessage,omitempty"` // InnermostMethod - The inner most method of the exception InnermostMethod *string `json:"innermostMethod,omitempty"` // InnermostAssembly - The inner most assembly of the exception InnermostAssembly *string `json:"innermostAssembly,omitempty"` // Details - The details of the exception Details *[]EventsExceptionDetail `json:"details,omitempty"` }
EventsExceptionResult an exception result
type EventsExceptionResult struct { Exception *EventsExceptionInfo `json:"exception,omitempty"` // ID - The unique ID for this event. ID *string `json:"id,omitempty"` // Count - Count of the event Count *int64 `json:"count,omitempty"` // Timestamp - Timestamp of the event Timestamp *date.Time `json:"timestamp,omitempty"` // CustomDimensions - Custom dimensions of the event CustomDimensions *EventsResultDataCustomDimensions `json:"customDimensions,omitempty"` // CustomMeasurements - Custom measurements of the event CustomMeasurements *EventsResultDataCustomMeasurements `json:"customMeasurements,omitempty"` // Operation - Operation info of the event Operation *EventsOperationInfo `json:"operation,omitempty"` // Session - Session info of the event Session *EventsSessionInfo `json:"session,omitempty"` // User - User info of the event User *EventsUserInfo `json:"user,omitempty"` // Cloud - Cloud info of the event Cloud *EventsCloudInfo `json:"cloud,omitempty"` // Ai - AI info of the event Ai *EventsAiInfo `json:"ai,omitempty"` // Application - Application info of the event Application *EventsApplicationInfo `json:"application,omitempty"` // Client - Client info of the event Client *EventsClientInfo `json:"client,omitempty"` // Type - Possible values include: 'TypeEventsResultData', 'TypeTrace', 'TypeCustomEvent', 'TypePageView', 'TypeBrowserTiming', 'TypeRequest', 'TypeDependency', 'TypeException', 'TypeAvailabilityResult', 'TypePerformanceCounter', 'TypeCustomMetric' Type Type `json:"type,omitempty"` }
func (eer EventsExceptionResult) AsBasicEventsResultData() (BasicEventsResultData, bool)
AsBasicEventsResultData is the BasicEventsResultData implementation for EventsExceptionResult.
func (eer EventsExceptionResult) AsEventsAvailabilityResultResult() (*EventsAvailabilityResultResult, bool)
AsEventsAvailabilityResultResult is the BasicEventsResultData implementation for EventsExceptionResult.
func (eer EventsExceptionResult) AsEventsBrowserTimingResult() (*EventsBrowserTimingResult, bool)
AsEventsBrowserTimingResult is the BasicEventsResultData implementation for EventsExceptionResult.
func (eer EventsExceptionResult) AsEventsCustomEventResult() (*EventsCustomEventResult, bool)
AsEventsCustomEventResult is the BasicEventsResultData implementation for EventsExceptionResult.
func (eer EventsExceptionResult) AsEventsCustomMetricResult() (*EventsCustomMetricResult, bool)
AsEventsCustomMetricResult is the BasicEventsResultData implementation for EventsExceptionResult.
func (eer EventsExceptionResult) AsEventsDependencyResult() (*EventsDependencyResult, bool)
AsEventsDependencyResult is the BasicEventsResultData implementation for EventsExceptionResult.
func (eer EventsExceptionResult) AsEventsExceptionResult() (*EventsExceptionResult, bool)
AsEventsExceptionResult is the BasicEventsResultData implementation for EventsExceptionResult.
func (eer EventsExceptionResult) AsEventsPageViewResult() (*EventsPageViewResult, bool)
AsEventsPageViewResult is the BasicEventsResultData implementation for EventsExceptionResult.
func (eer EventsExceptionResult) AsEventsPerformanceCounterResult() (*EventsPerformanceCounterResult, bool)
AsEventsPerformanceCounterResult is the BasicEventsResultData implementation for EventsExceptionResult.
func (eer EventsExceptionResult) AsEventsRequestResult() (*EventsRequestResult, bool)
AsEventsRequestResult is the BasicEventsResultData implementation for EventsExceptionResult.
func (eer EventsExceptionResult) AsEventsResultData() (*EventsResultData, bool)
AsEventsResultData is the BasicEventsResultData implementation for EventsExceptionResult.
func (eer EventsExceptionResult) AsEventsTraceResult() (*EventsTraceResult, bool)
AsEventsTraceResult is the BasicEventsResultData implementation for EventsExceptionResult.
func (eer EventsExceptionResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EventsExceptionResult.
EventsOperationInfo operation info for an event result
type EventsOperationInfo struct { // Name - Name of the operation Name *string `json:"name,omitempty"` // ID - ID of the operation ID *string `json:"id,omitempty"` // ParentID - Parent ID of the operation ParentID *string `json:"parentId,omitempty"` // SyntheticSource - Synthetic source of the operation SyntheticSource *string `json:"syntheticSource,omitempty"` }
EventsPageViewInfo the page view information
type EventsPageViewInfo struct { // Name - The name of the page Name *string `json:"name,omitempty"` // URL - The URL of the page URL *string `json:"url,omitempty"` // Duration - The duration of the page view Duration *string `json:"duration,omitempty"` // PerformanceBucket - The performance bucket of the page view PerformanceBucket *string `json:"performanceBucket,omitempty"` }
EventsPageViewResult a page view result
type EventsPageViewResult struct { PageView *EventsPageViewInfo `json:"pageView,omitempty"` // ID - The unique ID for this event. ID *string `json:"id,omitempty"` // Count - Count of the event Count *int64 `json:"count,omitempty"` // Timestamp - Timestamp of the event Timestamp *date.Time `json:"timestamp,omitempty"` // CustomDimensions - Custom dimensions of the event CustomDimensions *EventsResultDataCustomDimensions `json:"customDimensions,omitempty"` // CustomMeasurements - Custom measurements of the event CustomMeasurements *EventsResultDataCustomMeasurements `json:"customMeasurements,omitempty"` // Operation - Operation info of the event Operation *EventsOperationInfo `json:"operation,omitempty"` // Session - Session info of the event Session *EventsSessionInfo `json:"session,omitempty"` // User - User info of the event User *EventsUserInfo `json:"user,omitempty"` // Cloud - Cloud info of the event Cloud *EventsCloudInfo `json:"cloud,omitempty"` // Ai - AI info of the event Ai *EventsAiInfo `json:"ai,omitempty"` // Application - Application info of the event Application *EventsApplicationInfo `json:"application,omitempty"` // Client - Client info of the event Client *EventsClientInfo `json:"client,omitempty"` // Type - Possible values include: 'TypeEventsResultData', 'TypeTrace', 'TypeCustomEvent', 'TypePageView', 'TypeBrowserTiming', 'TypeRequest', 'TypeDependency', 'TypeException', 'TypeAvailabilityResult', 'TypePerformanceCounter', 'TypeCustomMetric' Type Type `json:"type,omitempty"` }
func (epvr EventsPageViewResult) AsBasicEventsResultData() (BasicEventsResultData, bool)
AsBasicEventsResultData is the BasicEventsResultData implementation for EventsPageViewResult.
func (epvr EventsPageViewResult) AsEventsAvailabilityResultResult() (*EventsAvailabilityResultResult, bool)
AsEventsAvailabilityResultResult is the BasicEventsResultData implementation for EventsPageViewResult.
func (epvr EventsPageViewResult) AsEventsBrowserTimingResult() (*EventsBrowserTimingResult, bool)
AsEventsBrowserTimingResult is the BasicEventsResultData implementation for EventsPageViewResult.
func (epvr EventsPageViewResult) AsEventsCustomEventResult() (*EventsCustomEventResult, bool)
AsEventsCustomEventResult is the BasicEventsResultData implementation for EventsPageViewResult.
func (epvr EventsPageViewResult) AsEventsCustomMetricResult() (*EventsCustomMetricResult, bool)
AsEventsCustomMetricResult is the BasicEventsResultData implementation for EventsPageViewResult.
func (epvr EventsPageViewResult) AsEventsDependencyResult() (*EventsDependencyResult, bool)
AsEventsDependencyResult is the BasicEventsResultData implementation for EventsPageViewResult.
func (epvr EventsPageViewResult) AsEventsExceptionResult() (*EventsExceptionResult, bool)
AsEventsExceptionResult is the BasicEventsResultData implementation for EventsPageViewResult.
func (epvr EventsPageViewResult) AsEventsPageViewResult() (*EventsPageViewResult, bool)
AsEventsPageViewResult is the BasicEventsResultData implementation for EventsPageViewResult.
func (epvr EventsPageViewResult) AsEventsPerformanceCounterResult() (*EventsPerformanceCounterResult, bool)
AsEventsPerformanceCounterResult is the BasicEventsResultData implementation for EventsPageViewResult.
func (epvr EventsPageViewResult) AsEventsRequestResult() (*EventsRequestResult, bool)
AsEventsRequestResult is the BasicEventsResultData implementation for EventsPageViewResult.
func (epvr EventsPageViewResult) AsEventsResultData() (*EventsResultData, bool)
AsEventsResultData is the BasicEventsResultData implementation for EventsPageViewResult.
func (epvr EventsPageViewResult) AsEventsTraceResult() (*EventsTraceResult, bool)
AsEventsTraceResult is the BasicEventsResultData implementation for EventsPageViewResult.
func (epvr EventsPageViewResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EventsPageViewResult.
EventsPerformanceCounterInfo the performance counter info
type EventsPerformanceCounterInfo struct { // Value - The value of the performance counter Value *float64 `json:"value,omitempty"` // Name - The name of the performance counter Name *string `json:"name,omitempty"` // Category - The category of the performance counter Category *string `json:"category,omitempty"` // Counter - The counter of the performance counter Counter *string `json:"counter,omitempty"` // InstanceName - The instance name of the performance counter InstanceName *string `json:"instanceName,omitempty"` // Instance - The instance of the performance counter Instance *string `json:"instance,omitempty"` }
EventsPerformanceCounterResult a performance counter result
type EventsPerformanceCounterResult struct { PerformanceCounter *EventsPerformanceCounterInfo `json:"performanceCounter,omitempty"` // ID - The unique ID for this event. ID *string `json:"id,omitempty"` // Count - Count of the event Count *int64 `json:"count,omitempty"` // Timestamp - Timestamp of the event Timestamp *date.Time `json:"timestamp,omitempty"` // CustomDimensions - Custom dimensions of the event CustomDimensions *EventsResultDataCustomDimensions `json:"customDimensions,omitempty"` // CustomMeasurements - Custom measurements of the event CustomMeasurements *EventsResultDataCustomMeasurements `json:"customMeasurements,omitempty"` // Operation - Operation info of the event Operation *EventsOperationInfo `json:"operation,omitempty"` // Session - Session info of the event Session *EventsSessionInfo `json:"session,omitempty"` // User - User info of the event User *EventsUserInfo `json:"user,omitempty"` // Cloud - Cloud info of the event Cloud *EventsCloudInfo `json:"cloud,omitempty"` // Ai - AI info of the event Ai *EventsAiInfo `json:"ai,omitempty"` // Application - Application info of the event Application *EventsApplicationInfo `json:"application,omitempty"` // Client - Client info of the event Client *EventsClientInfo `json:"client,omitempty"` // Type - Possible values include: 'TypeEventsResultData', 'TypeTrace', 'TypeCustomEvent', 'TypePageView', 'TypeBrowserTiming', 'TypeRequest', 'TypeDependency', 'TypeException', 'TypeAvailabilityResult', 'TypePerformanceCounter', 'TypeCustomMetric' Type Type `json:"type,omitempty"` }
func (epcr EventsPerformanceCounterResult) AsBasicEventsResultData() (BasicEventsResultData, bool)
AsBasicEventsResultData is the BasicEventsResultData implementation for EventsPerformanceCounterResult.
func (epcr EventsPerformanceCounterResult) AsEventsAvailabilityResultResult() (*EventsAvailabilityResultResult, bool)
AsEventsAvailabilityResultResult is the BasicEventsResultData implementation for EventsPerformanceCounterResult.
func (epcr EventsPerformanceCounterResult) AsEventsBrowserTimingResult() (*EventsBrowserTimingResult, bool)
AsEventsBrowserTimingResult is the BasicEventsResultData implementation for EventsPerformanceCounterResult.
func (epcr EventsPerformanceCounterResult) AsEventsCustomEventResult() (*EventsCustomEventResult, bool)
AsEventsCustomEventResult is the BasicEventsResultData implementation for EventsPerformanceCounterResult.
func (epcr EventsPerformanceCounterResult) AsEventsCustomMetricResult() (*EventsCustomMetricResult, bool)
AsEventsCustomMetricResult is the BasicEventsResultData implementation for EventsPerformanceCounterResult.
func (epcr EventsPerformanceCounterResult) AsEventsDependencyResult() (*EventsDependencyResult, bool)
AsEventsDependencyResult is the BasicEventsResultData implementation for EventsPerformanceCounterResult.
func (epcr EventsPerformanceCounterResult) AsEventsExceptionResult() (*EventsExceptionResult, bool)
AsEventsExceptionResult is the BasicEventsResultData implementation for EventsPerformanceCounterResult.
func (epcr EventsPerformanceCounterResult) AsEventsPageViewResult() (*EventsPageViewResult, bool)
AsEventsPageViewResult is the BasicEventsResultData implementation for EventsPerformanceCounterResult.
func (epcr EventsPerformanceCounterResult) AsEventsPerformanceCounterResult() (*EventsPerformanceCounterResult, bool)
AsEventsPerformanceCounterResult is the BasicEventsResultData implementation for EventsPerformanceCounterResult.
func (epcr EventsPerformanceCounterResult) AsEventsRequestResult() (*EventsRequestResult, bool)
AsEventsRequestResult is the BasicEventsResultData implementation for EventsPerformanceCounterResult.
func (epcr EventsPerformanceCounterResult) AsEventsResultData() (*EventsResultData, bool)
AsEventsResultData is the BasicEventsResultData implementation for EventsPerformanceCounterResult.
func (epcr EventsPerformanceCounterResult) AsEventsTraceResult() (*EventsTraceResult, bool)
AsEventsTraceResult is the BasicEventsResultData implementation for EventsPerformanceCounterResult.
func (epcr EventsPerformanceCounterResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EventsPerformanceCounterResult.
EventsRequestInfo the request info
type EventsRequestInfo struct { // Name - The name of the request Name *string `json:"name,omitempty"` // URL - The URL of the request URL *string `json:"url,omitempty"` // Success - Indicates if the request was successful Success *string `json:"success,omitempty"` // Duration - The duration of the request Duration *float64 `json:"duration,omitempty"` // PerformanceBucket - The performance bucket of the request PerformanceBucket *string `json:"performanceBucket,omitempty"` // ResultCode - The result code of the request ResultCode *string `json:"resultCode,omitempty"` // Source - The source of the request Source *string `json:"source,omitempty"` // ID - The ID of the request ID *string `json:"id,omitempty"` }
EventsRequestResult a request result
type EventsRequestResult struct { Request *EventsRequestInfo `json:"request,omitempty"` // ID - The unique ID for this event. ID *string `json:"id,omitempty"` // Count - Count of the event Count *int64 `json:"count,omitempty"` // Timestamp - Timestamp of the event Timestamp *date.Time `json:"timestamp,omitempty"` // CustomDimensions - Custom dimensions of the event CustomDimensions *EventsResultDataCustomDimensions `json:"customDimensions,omitempty"` // CustomMeasurements - Custom measurements of the event CustomMeasurements *EventsResultDataCustomMeasurements `json:"customMeasurements,omitempty"` // Operation - Operation info of the event Operation *EventsOperationInfo `json:"operation,omitempty"` // Session - Session info of the event Session *EventsSessionInfo `json:"session,omitempty"` // User - User info of the event User *EventsUserInfo `json:"user,omitempty"` // Cloud - Cloud info of the event Cloud *EventsCloudInfo `json:"cloud,omitempty"` // Ai - AI info of the event Ai *EventsAiInfo `json:"ai,omitempty"` // Application - Application info of the event Application *EventsApplicationInfo `json:"application,omitempty"` // Client - Client info of the event Client *EventsClientInfo `json:"client,omitempty"` // Type - Possible values include: 'TypeEventsResultData', 'TypeTrace', 'TypeCustomEvent', 'TypePageView', 'TypeBrowserTiming', 'TypeRequest', 'TypeDependency', 'TypeException', 'TypeAvailabilityResult', 'TypePerformanceCounter', 'TypeCustomMetric' Type Type `json:"type,omitempty"` }
func (errVar EventsRequestResult) AsBasicEventsResultData() (BasicEventsResultData, bool)
AsBasicEventsResultData is the BasicEventsResultData implementation for EventsRequestResult.
func (errVar EventsRequestResult) AsEventsAvailabilityResultResult() (*EventsAvailabilityResultResult, bool)
AsEventsAvailabilityResultResult is the BasicEventsResultData implementation for EventsRequestResult.
func (errVar EventsRequestResult) AsEventsBrowserTimingResult() (*EventsBrowserTimingResult, bool)
AsEventsBrowserTimingResult is the BasicEventsResultData implementation for EventsRequestResult.
func (errVar EventsRequestResult) AsEventsCustomEventResult() (*EventsCustomEventResult, bool)
AsEventsCustomEventResult is the BasicEventsResultData implementation for EventsRequestResult.
func (errVar EventsRequestResult) AsEventsCustomMetricResult() (*EventsCustomMetricResult, bool)
AsEventsCustomMetricResult is the BasicEventsResultData implementation for EventsRequestResult.
func (errVar EventsRequestResult) AsEventsDependencyResult() (*EventsDependencyResult, bool)
AsEventsDependencyResult is the BasicEventsResultData implementation for EventsRequestResult.
func (errVar EventsRequestResult) AsEventsExceptionResult() (*EventsExceptionResult, bool)
AsEventsExceptionResult is the BasicEventsResultData implementation for EventsRequestResult.
func (errVar EventsRequestResult) AsEventsPageViewResult() (*EventsPageViewResult, bool)
AsEventsPageViewResult is the BasicEventsResultData implementation for EventsRequestResult.
func (errVar EventsRequestResult) AsEventsPerformanceCounterResult() (*EventsPerformanceCounterResult, bool)
AsEventsPerformanceCounterResult is the BasicEventsResultData implementation for EventsRequestResult.
func (errVar EventsRequestResult) AsEventsRequestResult() (*EventsRequestResult, bool)
AsEventsRequestResult is the BasicEventsResultData implementation for EventsRequestResult.
func (errVar EventsRequestResult) AsEventsResultData() (*EventsResultData, bool)
AsEventsResultData is the BasicEventsResultData implementation for EventsRequestResult.
func (errVar EventsRequestResult) AsEventsTraceResult() (*EventsTraceResult, bool)
AsEventsTraceResult is the BasicEventsResultData implementation for EventsRequestResult.
func (errVar EventsRequestResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EventsRequestResult.
EventsResult an event query result.
type EventsResult struct { // AiMessages - OData messages for this response. AiMessages *[]ErrorInfo `json:"@ai.messages,omitempty"` Value BasicEventsResultData `json:"value,omitempty"` }
func (er *EventsResult) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for EventsResult struct.
EventsResultData events query result data.
type EventsResultData struct { // ID - The unique ID for this event. ID *string `json:"id,omitempty"` // Count - Count of the event Count *int64 `json:"count,omitempty"` // Timestamp - Timestamp of the event Timestamp *date.Time `json:"timestamp,omitempty"` // CustomDimensions - Custom dimensions of the event CustomDimensions *EventsResultDataCustomDimensions `json:"customDimensions,omitempty"` // CustomMeasurements - Custom measurements of the event CustomMeasurements *EventsResultDataCustomMeasurements `json:"customMeasurements,omitempty"` // Operation - Operation info of the event Operation *EventsOperationInfo `json:"operation,omitempty"` // Session - Session info of the event Session *EventsSessionInfo `json:"session,omitempty"` // User - User info of the event User *EventsUserInfo `json:"user,omitempty"` // Cloud - Cloud info of the event Cloud *EventsCloudInfo `json:"cloud,omitempty"` // Ai - AI info of the event Ai *EventsAiInfo `json:"ai,omitempty"` // Application - Application info of the event Application *EventsApplicationInfo `json:"application,omitempty"` // Client - Client info of the event Client *EventsClientInfo `json:"client,omitempty"` // Type - Possible values include: 'TypeEventsResultData', 'TypeTrace', 'TypeCustomEvent', 'TypePageView', 'TypeBrowserTiming', 'TypeRequest', 'TypeDependency', 'TypeException', 'TypeAvailabilityResult', 'TypePerformanceCounter', 'TypeCustomMetric' Type Type `json:"type,omitempty"` }
func (erd EventsResultData) AsBasicEventsResultData() (BasicEventsResultData, bool)
AsBasicEventsResultData is the BasicEventsResultData implementation for EventsResultData.
func (erd EventsResultData) AsEventsAvailabilityResultResult() (*EventsAvailabilityResultResult, bool)
AsEventsAvailabilityResultResult is the BasicEventsResultData implementation for EventsResultData.
func (erd EventsResultData) AsEventsBrowserTimingResult() (*EventsBrowserTimingResult, bool)
AsEventsBrowserTimingResult is the BasicEventsResultData implementation for EventsResultData.
func (erd EventsResultData) AsEventsCustomEventResult() (*EventsCustomEventResult, bool)
AsEventsCustomEventResult is the BasicEventsResultData implementation for EventsResultData.
func (erd EventsResultData) AsEventsCustomMetricResult() (*EventsCustomMetricResult, bool)
AsEventsCustomMetricResult is the BasicEventsResultData implementation for EventsResultData.
func (erd EventsResultData) AsEventsDependencyResult() (*EventsDependencyResult, bool)
AsEventsDependencyResult is the BasicEventsResultData implementation for EventsResultData.
func (erd EventsResultData) AsEventsExceptionResult() (*EventsExceptionResult, bool)
AsEventsExceptionResult is the BasicEventsResultData implementation for EventsResultData.
func (erd EventsResultData) AsEventsPageViewResult() (*EventsPageViewResult, bool)
AsEventsPageViewResult is the BasicEventsResultData implementation for EventsResultData.
func (erd EventsResultData) AsEventsPerformanceCounterResult() (*EventsPerformanceCounterResult, bool)
AsEventsPerformanceCounterResult is the BasicEventsResultData implementation for EventsResultData.
func (erd EventsResultData) AsEventsRequestResult() (*EventsRequestResult, bool)
AsEventsRequestResult is the BasicEventsResultData implementation for EventsResultData.
func (erd EventsResultData) AsEventsResultData() (*EventsResultData, bool)
AsEventsResultData is the BasicEventsResultData implementation for EventsResultData.
func (erd EventsResultData) AsEventsTraceResult() (*EventsTraceResult, bool)
AsEventsTraceResult is the BasicEventsResultData implementation for EventsResultData.
func (erd EventsResultData) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EventsResultData.
EventsResultDataCustomDimensions custom dimensions of the event
type EventsResultDataCustomDimensions struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` AdditionalProperties1 interface{} `json:"additionalProperties,omitempty"` }
func (erdD EventsResultDataCustomDimensions) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EventsResultDataCustomDimensions.
func (erdD *EventsResultDataCustomDimensions) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for EventsResultDataCustomDimensions struct.
EventsResultDataCustomMeasurements custom measurements of the event
type EventsResultDataCustomMeasurements struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` AdditionalProperties1 interface{} `json:"additionalProperties,omitempty"` }
func (erdM EventsResultDataCustomMeasurements) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EventsResultDataCustomMeasurements.
func (erdM *EventsResultDataCustomMeasurements) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for EventsResultDataCustomMeasurements struct.
EventsResults an events query result.
type EventsResults struct { autorest.Response `json:"-"` // OdataContext - OData context metadata endpoint for this response OdataContext *string `json:"@odata.context,omitempty"` // AiMessages - OData messages for this response. AiMessages *[]ErrorInfo `json:"@ai.messages,omitempty"` // Value - Contents of the events query result. Value *[]BasicEventsResultData `json:"value,omitempty"` }
func (er *EventsResults) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for EventsResults struct.
EventsSessionInfo session info for an event result
type EventsSessionInfo struct { // ID - ID of the session ID *string `json:"id,omitempty"` }
EventsTraceInfo the trace information
type EventsTraceInfo struct { // Message - The trace message Message *string `json:"message,omitempty"` // SeverityLevel - The trace severity level SeverityLevel *int32 `json:"severityLevel,omitempty"` }
EventsTraceResult a trace result
type EventsTraceResult struct { Trace *EventsTraceInfo `json:"trace,omitempty"` // ID - The unique ID for this event. ID *string `json:"id,omitempty"` // Count - Count of the event Count *int64 `json:"count,omitempty"` // Timestamp - Timestamp of the event Timestamp *date.Time `json:"timestamp,omitempty"` // CustomDimensions - Custom dimensions of the event CustomDimensions *EventsResultDataCustomDimensions `json:"customDimensions,omitempty"` // CustomMeasurements - Custom measurements of the event CustomMeasurements *EventsResultDataCustomMeasurements `json:"customMeasurements,omitempty"` // Operation - Operation info of the event Operation *EventsOperationInfo `json:"operation,omitempty"` // Session - Session info of the event Session *EventsSessionInfo `json:"session,omitempty"` // User - User info of the event User *EventsUserInfo `json:"user,omitempty"` // Cloud - Cloud info of the event Cloud *EventsCloudInfo `json:"cloud,omitempty"` // Ai - AI info of the event Ai *EventsAiInfo `json:"ai,omitempty"` // Application - Application info of the event Application *EventsApplicationInfo `json:"application,omitempty"` // Client - Client info of the event Client *EventsClientInfo `json:"client,omitempty"` // Type - Possible values include: 'TypeEventsResultData', 'TypeTrace', 'TypeCustomEvent', 'TypePageView', 'TypeBrowserTiming', 'TypeRequest', 'TypeDependency', 'TypeException', 'TypeAvailabilityResult', 'TypePerformanceCounter', 'TypeCustomMetric' Type Type `json:"type,omitempty"` }
func (etr EventsTraceResult) AsBasicEventsResultData() (BasicEventsResultData, bool)
AsBasicEventsResultData is the BasicEventsResultData implementation for EventsTraceResult.
func (etr EventsTraceResult) AsEventsAvailabilityResultResult() (*EventsAvailabilityResultResult, bool)
AsEventsAvailabilityResultResult is the BasicEventsResultData implementation for EventsTraceResult.
func (etr EventsTraceResult) AsEventsBrowserTimingResult() (*EventsBrowserTimingResult, bool)
AsEventsBrowserTimingResult is the BasicEventsResultData implementation for EventsTraceResult.
func (etr EventsTraceResult) AsEventsCustomEventResult() (*EventsCustomEventResult, bool)
AsEventsCustomEventResult is the BasicEventsResultData implementation for EventsTraceResult.
func (etr EventsTraceResult) AsEventsCustomMetricResult() (*EventsCustomMetricResult, bool)
AsEventsCustomMetricResult is the BasicEventsResultData implementation for EventsTraceResult.
func (etr EventsTraceResult) AsEventsDependencyResult() (*EventsDependencyResult, bool)
AsEventsDependencyResult is the BasicEventsResultData implementation for EventsTraceResult.
func (etr EventsTraceResult) AsEventsExceptionResult() (*EventsExceptionResult, bool)
AsEventsExceptionResult is the BasicEventsResultData implementation for EventsTraceResult.
func (etr EventsTraceResult) AsEventsPageViewResult() (*EventsPageViewResult, bool)
AsEventsPageViewResult is the BasicEventsResultData implementation for EventsTraceResult.
func (etr EventsTraceResult) AsEventsPerformanceCounterResult() (*EventsPerformanceCounterResult, bool)
AsEventsPerformanceCounterResult is the BasicEventsResultData implementation for EventsTraceResult.
func (etr EventsTraceResult) AsEventsRequestResult() (*EventsRequestResult, bool)
AsEventsRequestResult is the BasicEventsResultData implementation for EventsTraceResult.
func (etr EventsTraceResult) AsEventsResultData() (*EventsResultData, bool)
AsEventsResultData is the BasicEventsResultData implementation for EventsTraceResult.
func (etr EventsTraceResult) AsEventsTraceResult() (*EventsTraceResult, bool)
AsEventsTraceResult is the BasicEventsResultData implementation for EventsTraceResult.
func (etr EventsTraceResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EventsTraceResult.
EventsUserInfo user info for an event result
type EventsUserInfo struct { // ID - ID of the user ID *string `json:"id,omitempty"` // AccountID - Account ID of the user AccountID *string `json:"accountId,omitempty"` // AuthenticatedID - Authenticated ID of the user AuthenticatedID *string `json:"authenticatedId,omitempty"` }
ListMetricsResultsItem ...
type ListMetricsResultsItem struct { autorest.Response `json:"-"` Value *[]MetricsResultsItem `json:"value,omitempty"` }
MetadataApplication application Insights apps that were part of the metadata request and that the user has access to.
type MetadataApplication struct { // ID - The ID of the Application Insights app. ID *string `json:"id,omitempty"` // ResourceID - The ARM resource ID of the Application Insights app. ResourceID *string `json:"resourceId,omitempty"` // Name - The name of the Application Insights app. Name *string `json:"name,omitempty"` // Region - The Azure region of the Application Insights app. Region *string `json:"region,omitempty"` // Tables - The list of custom tables for the Application Insights app. Tables *[]string `json:"tables,omitempty"` // Functions - The list of stored functions on the Application Insights app Functions *[]string `json:"functions,omitempty"` // TableGroups - The list of table groups on the Application Insights app TableGroups *[]string `json:"tableGroups,omitempty"` }
MetadataClient is the composite Swagger for Application Insights Data Client
type MetadataClient struct { BaseClient }
func NewMetadataClient() MetadataClient
NewMetadataClient creates an instance of the MetadataClient client.
func NewMetadataClientWithBaseURI(baseURI string) MetadataClient
NewMetadataClientWithBaseURI creates an instance of the MetadataClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client MetadataClient) Get(ctx context.Context, appID string) (result MetadataResults, err error)
Get retrieve the metadata information for the app, including its schema, etc. Parameters: appID - ID of the application. This is Application ID from the API Access settings blade in the Azure portal.
func (client MetadataClient) GetPreparer(ctx context.Context, appID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client MetadataClient) GetResponder(resp *http.Response) (result MetadataResults, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client MetadataClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client MetadataClient) Post(ctx context.Context, appID string) (result MetadataResults, err error)
Post retrieve the metadata information for the app, including its schema, etc. Parameters: appID - ID of the application. This is Application ID from the API Access settings blade in the Azure portal.
func (client MetadataClient) PostPreparer(ctx context.Context, appID string) (*http.Request, error)
PostPreparer prepares the Post request.
func (client MetadataClient) PostResponder(resp *http.Response) (result MetadataResults, err error)
PostResponder handles the response to the Post request. The method always closes the http.Response Body.
func (client MetadataClient) PostSender(req *http.Request) (*http.Response, error)
PostSender sends the Post request. The method will close the http.Response Body if it receives an error.
MetadataColumnDataType enumerates the values for metadata column data type.
type MetadataColumnDataType string
const ( // Bool ... Bool MetadataColumnDataType = "bool" // Datetime ... Datetime MetadataColumnDataType = "datetime" // Dynamic ... Dynamic MetadataColumnDataType = "dynamic" // Int ... Int MetadataColumnDataType = "int" // Long ... Long MetadataColumnDataType = "long" // Real ... Real MetadataColumnDataType = "real" // String ... String MetadataColumnDataType = "string" )
func PossibleMetadataColumnDataTypeValues() []MetadataColumnDataType
PossibleMetadataColumnDataTypeValues returns an array of possible values for the MetadataColumnDataType const type.
MetadataFunction functions are stored Kusto queries that can be specified as part of queries by using their name.
type MetadataFunction struct { // ID - The ID of the function. ID *string `json:"id,omitempty"` // Name - The name of the function, to be used in queries. Name *string `json:"name,omitempty"` // Parameters - The parameters/arguments of the function, if any. Parameters *string `json:"parameters,omitempty"` // DisplayName - The display name of the function. DisplayName *string `json:"displayName,omitempty"` // Description - The description of the function. Description *string `json:"description,omitempty"` // Body - The KQL body of the function. Body *string `json:"body,omitempty"` }
MetadataResults the metadata result for the app, including available tables, etc.
type MetadataResults struct { autorest.Response `json:"-"` // TableGroups - The list of groups of tables on the app. TableGroups *[]MetadataTableGroup `json:"tableGroups,omitempty"` // Tables - The list of tables and columns that comprise the schema of the app. Tables *[]MetadataTable `json:"tables,omitempty"` // Functions - The list of functions stored on the app. Functions *[]MetadataFunction `json:"functions,omitempty"` // Applications - The list of Application Insights apps that were referenced in the metadata request. Applications *[]MetadataApplication `json:"applications,omitempty"` }
MetadataTable tables are part of the app schema, and contain a list of columns and a reference to other relevant metadata items.
type MetadataTable struct { // ID - The ID of the table ID *string `json:"id,omitempty"` // Name - The name of the table Name *string `json:"name,omitempty"` // Description - The description of the table Description *string `json:"description,omitempty"` // TimespanColumn - The column associated with the timespan query parameter for the table TimespanColumn *string `json:"timespanColumn,omitempty"` // Columns - The list of columns defined on the table Columns *[]MetadataTableColumnsItem `json:"columns,omitempty"` }
MetadataTableColumnsItem ...
type MetadataTableColumnsItem struct { // Name - The name of the column Name *string `json:"name,omitempty"` // Description - The description of the column Description *string `json:"description,omitempty"` // Type - The data type of the column. Possible values include: 'Bool', 'Datetime', 'Dynamic', 'Int', 'Long', 'Real', 'String' Type MetadataColumnDataType `json:"type,omitempty"` // IsPreferredFacet - A flag indicating this column is a preferred facet IsPreferredFacet *bool `json:"isPreferredFacet,omitempty"` // Source - an indication of the source of the column, used only when multiple apps have conflicting definition for the column Source interface{} `json:"source,omitempty"` }
MetadataTableGroup the table grouping can be either an Application Insights schema or a Log Analytics solution.
type MetadataTableGroup struct { // ID - The ID of the table group ID *string `json:"id,omitempty"` // Name - The name of the table group Name *string `json:"name,omitempty"` // Source - The source of the table group, can be either AI or OMS for Log Analytics workspaces Source *string `json:"source,omitempty"` // DisplayName - The display name of the table group DisplayName *string `json:"displayName,omitempty"` // Description - The description of the table group Description *string `json:"description,omitempty"` // Tables - The list of tables contained in the table group Tables *[]string `json:"tables,omitempty"` }
MetricID enumerates the values for metric id.
type MetricID string
const ( // AvailabilityResultsavailabilityPercentage ... AvailabilityResultsavailabilityPercentage MetricID = "availabilityResults/availabilityPercentage" // AvailabilityResultsduration ... AvailabilityResultsduration MetricID = "availabilityResults/duration" // BillingtelemetryCount ... BillingtelemetryCount MetricID = "billing/telemetryCount" // ClientnetworkDuration ... ClientnetworkDuration MetricID = "client/networkDuration" // ClientprocessingDuration ... ClientprocessingDuration MetricID = "client/processingDuration" // ClientreceiveDuration ... ClientreceiveDuration MetricID = "client/receiveDuration" // ClientsendDuration ... ClientsendDuration MetricID = "client/sendDuration" // ClienttotalDuration ... ClienttotalDuration MetricID = "client/totalDuration" // CustomEventscount ... CustomEventscount MetricID = "customEvents/count" // Dependenciescount ... Dependenciescount MetricID = "dependencies/count" // Dependenciesduration ... Dependenciesduration MetricID = "dependencies/duration" // Dependenciesfailed ... Dependenciesfailed MetricID = "dependencies/failed" // Exceptionsbrowser ... Exceptionsbrowser MetricID = "exceptions/browser" // Exceptionscount ... Exceptionscount MetricID = "exceptions/count" // Exceptionsserver ... Exceptionsserver MetricID = "exceptions/server" // PageViewscount ... PageViewscount MetricID = "pageViews/count" // PageViewsduration ... PageViewsduration MetricID = "pageViews/duration" // PerformanceCountersexceptionsPerSecond ... PerformanceCountersexceptionsPerSecond MetricID = "performanceCounters/exceptionsPerSecond" // PerformanceCountersmemoryAvailableBytes ... PerformanceCountersmemoryAvailableBytes MetricID = "performanceCounters/memoryAvailableBytes" // PerformanceCountersprocessCPUPercentage ... PerformanceCountersprocessCPUPercentage MetricID = "performanceCounters/processCpuPercentage" // PerformanceCountersprocessIOBytesPerSecond ... PerformanceCountersprocessIOBytesPerSecond MetricID = "performanceCounters/processIOBytesPerSecond" // PerformanceCountersprocessorCPUPercentage ... PerformanceCountersprocessorCPUPercentage MetricID = "performanceCounters/processorCpuPercentage" // PerformanceCountersprocessPrivateBytes ... PerformanceCountersprocessPrivateBytes MetricID = "performanceCounters/processPrivateBytes" // PerformanceCountersrequestExecutionTime ... PerformanceCountersrequestExecutionTime MetricID = "performanceCounters/requestExecutionTime" // PerformanceCountersrequestsInQueue ... PerformanceCountersrequestsInQueue MetricID = "performanceCounters/requestsInQueue" // PerformanceCountersrequestsPerSecond ... PerformanceCountersrequestsPerSecond MetricID = "performanceCounters/requestsPerSecond" // Requestscount ... Requestscount MetricID = "requests/count" // Requestsduration ... Requestsduration MetricID = "requests/duration" // Requestsfailed ... Requestsfailed MetricID = "requests/failed" // Sessionscount ... Sessionscount MetricID = "sessions/count" // Usersauthenticated ... Usersauthenticated MetricID = "users/authenticated" // Userscount ... Userscount MetricID = "users/count" )
func PossibleMetricIDValues() []MetricID
PossibleMetricIDValues returns an array of possible values for the MetricID const type.
MetricsAggregation enumerates the values for metrics aggregation.
type MetricsAggregation string
const ( // Avg ... Avg MetricsAggregation = "avg" // Count ... Count MetricsAggregation = "count" // Max ... Max MetricsAggregation = "max" // Min ... Min MetricsAggregation = "min" // Sum ... Sum MetricsAggregation = "sum" // Unique ... Unique MetricsAggregation = "unique" )
func PossibleMetricsAggregationValues() []MetricsAggregation
PossibleMetricsAggregationValues returns an array of possible values for the MetricsAggregation const type.
MetricsClient is the composite Swagger for Application Insights Data Client
type MetricsClient struct { BaseClient }
func NewMetricsClient() MetricsClient
NewMetricsClient creates an instance of the MetricsClient client.
func NewMetricsClientWithBaseURI(baseURI string) MetricsClient
NewMetricsClientWithBaseURI creates an instance of the MetricsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client MetricsClient) Get(ctx context.Context, appID string, metricID MetricID, timespan string, interval *string, aggregation []MetricsAggregation, segment []MetricsSegment, top *int32, orderby string, filter string) (result MetricsResult, err error)
Get gets metric values for a single metric Parameters: appID - ID of the application. This is Application ID from the API Access settings blade in the Azure portal. metricID - ID of the metric. This is either a standard AI metric, or an application-specific custom metric. timespan - the timespan over which to retrieve metric values. This is an ISO8601 time period value. If timespan is omitted, a default time range of `PT12H` ("last 12 hours") is used. The actual timespan that is queried may be adjusted by the server based. In all cases, the actual time span used for the query is included in the response. interval - the time interval to use when retrieving metric values. This is an ISO8601 duration. If interval is omitted, the metric value is aggregated across the entire timespan. If interval is supplied, the server may adjust the interval to a more appropriate size based on the timespan used for the query. In all cases, the actual interval used for the query is included in the response. aggregation - the aggregation to use when computing the metric values. To retrieve more than one aggregation at a time, separate them with a comma. If no aggregation is specified, then the default aggregation for the metric is used. segment - the name of the dimension to segment the metric values by. This dimension must be applicable to the metric you are retrieving. To segment by more than one dimension at a time, separate them with a comma (,). In this case, the metric data will be segmented in the order the dimensions are listed in the parameter. top - the number of segments to return. This value is only valid when segment is specified. orderby - the aggregation function and direction to sort the segments by. This value is only valid when segment is specified. filter - an expression used to filter the results. This value should be a valid OData filter expression where the keys of each clause should be applicable dimensions for the metric you are retrieving.
func (client MetricsClient) GetMetadata(ctx context.Context, appID string) (result SetObject, err error)
GetMetadata gets metadata describing the available metrics Parameters: appID - ID of the application. This is Application ID from the API Access settings blade in the Azure portal.
func (client MetricsClient) GetMetadataPreparer(ctx context.Context, appID string) (*http.Request, error)
GetMetadataPreparer prepares the GetMetadata request.
func (client MetricsClient) GetMetadataResponder(resp *http.Response) (result SetObject, err error)
GetMetadataResponder handles the response to the GetMetadata request. The method always closes the http.Response Body.
func (client MetricsClient) GetMetadataSender(req *http.Request) (*http.Response, error)
GetMetadataSender sends the GetMetadata request. The method will close the http.Response Body if it receives an error.
func (client MetricsClient) GetMultiple(ctx context.Context, appID string, body []MetricsPostBodySchema) (result ListMetricsResultsItem, err error)
GetMultiple gets metric values for multiple metrics Parameters: appID - ID of the application. This is Application ID from the API Access settings blade in the Azure portal. body - the batched metrics query.
func (client MetricsClient) GetMultiplePreparer(ctx context.Context, appID string, body []MetricsPostBodySchema) (*http.Request, error)
GetMultiplePreparer prepares the GetMultiple request.
func (client MetricsClient) GetMultipleResponder(resp *http.Response) (result ListMetricsResultsItem, err error)
GetMultipleResponder handles the response to the GetMultiple request. The method always closes the http.Response Body.
func (client MetricsClient) GetMultipleSender(req *http.Request) (*http.Response, error)
GetMultipleSender sends the GetMultiple request. The method will close the http.Response Body if it receives an error.
func (client MetricsClient) GetPreparer(ctx context.Context, appID string, metricID MetricID, timespan string, interval *string, aggregation []MetricsAggregation, segment []MetricsSegment, top *int32, orderby string, filter string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client MetricsClient) GetResponder(resp *http.Response) (result MetricsResult, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client MetricsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
MetricsPostBodySchema a metric request
type MetricsPostBodySchema struct { // ID - An identifier for this query. Must be unique within the post body of the request. This identifier will be the 'id' property of the response object representing this query. ID *string `json:"id,omitempty"` // Parameters - The parameters for a single metrics query Parameters *MetricsPostBodySchemaParameters `json:"parameters,omitempty"` }
MetricsPostBodySchemaParameters the parameters for a single metrics query
type MetricsPostBodySchemaParameters struct { // MetricID - Possible values include: 'Requestscount', 'Requestsduration', 'Requestsfailed', 'Userscount', 'Usersauthenticated', 'PageViewscount', 'PageViewsduration', 'ClientprocessingDuration', 'ClientreceiveDuration', 'ClientnetworkDuration', 'ClientsendDuration', 'ClienttotalDuration', 'Dependenciescount', 'Dependenciesfailed', 'Dependenciesduration', 'Exceptionscount', 'Exceptionsbrowser', 'Exceptionsserver', 'Sessionscount', 'PerformanceCountersrequestExecutionTime', 'PerformanceCountersrequestsPerSecond', 'PerformanceCountersrequestsInQueue', 'PerformanceCountersmemoryAvailableBytes', 'PerformanceCountersexceptionsPerSecond', 'PerformanceCountersprocessCPUPercentage', 'PerformanceCountersprocessIOBytesPerSecond', 'PerformanceCountersprocessPrivateBytes', 'PerformanceCountersprocessorCPUPercentage', 'AvailabilityResultsavailabilityPercentage', 'AvailabilityResultsduration', 'BillingtelemetryCount', 'CustomEventscount' MetricID MetricID `json:"metricId,omitempty"` Timespan *string `json:"timespan,omitempty"` Aggregation *[]MetricsAggregation `json:"aggregation,omitempty"` Interval *string `json:"interval,omitempty"` Segment *[]MetricsSegment `json:"segment,omitempty"` Top *int32 `json:"top,omitempty"` Orderby *string `json:"orderby,omitempty"` Filter *string `json:"filter,omitempty"` }
MetricsResult a metric result.
type MetricsResult struct { autorest.Response `json:"-"` Value *MetricsResultInfo `json:"value,omitempty"` }
MetricsResultInfo a metric result data.
type MetricsResultInfo struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Start - Start time of the metric. Start *date.Time `json:"start,omitempty"` // End - Start time of the metric. End *date.Time `json:"end,omitempty"` // Interval - The interval used to segment the metric data. Interval *string `json:"interval,omitempty"` // Segments - Segmented metric data (if segmented). Segments *[]MetricsSegmentInfo `json:"segments,omitempty"` }
func (mri MetricsResultInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MetricsResultInfo.
func (mri *MetricsResultInfo) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MetricsResultInfo struct.
MetricsResultsItem ...
type MetricsResultsItem struct { // ID - The specified ID for this metric. ID *string `json:"id,omitempty"` // Status - The HTTP status code of this metric query. Status *int32 `json:"status,omitempty"` // Body - The results of this metric query. Body *MetricsResult `json:"body,omitempty"` }
MetricsSegment enumerates the values for metrics segment.
type MetricsSegment string
const ( // ApplicationBuild ... ApplicationBuild MetricsSegment = "applicationBuild" // ApplicationVersion ... ApplicationVersion MetricsSegment = "applicationVersion" // AuthenticatedOrAnonymousTraffic ... AuthenticatedOrAnonymousTraffic MetricsSegment = "authenticatedOrAnonymousTraffic" // Browser ... Browser MetricsSegment = "browser" // BrowserVersion ... BrowserVersion MetricsSegment = "browserVersion" // City ... City MetricsSegment = "city" // CloudRoleName ... CloudRoleName MetricsSegment = "cloudRoleName" // CloudServiceName ... CloudServiceName MetricsSegment = "cloudServiceName" // Continent ... Continent MetricsSegment = "continent" // CountryOrRegion ... CountryOrRegion MetricsSegment = "countryOrRegion" // DeploymentID ... DeploymentID MetricsSegment = "deploymentId" // DeploymentUnit ... DeploymentUnit MetricsSegment = "deploymentUnit" // DeviceType ... DeviceType MetricsSegment = "deviceType" // Environment ... Environment MetricsSegment = "environment" // HostingLocation ... HostingLocation MetricsSegment = "hostingLocation" // InstanceName ... InstanceName MetricsSegment = "instanceName" )
func PossibleMetricsSegmentValues() []MetricsSegment
PossibleMetricsSegmentValues returns an array of possible values for the MetricsSegment const type.
MetricsSegmentInfo a metric segment
type MetricsSegmentInfo struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Start - Start time of the metric segment (only when an interval was specified). Start *date.Time `json:"start,omitempty"` // End - Start time of the metric segment (only when an interval was specified). End *date.Time `json:"end,omitempty"` // Segments - Segmented metric data (if further segmented). Segments *[]MetricsSegmentInfo `json:"segments,omitempty"` }
func (msi MetricsSegmentInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MetricsSegmentInfo.
func (msi *MetricsSegmentInfo) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MetricsSegmentInfo struct.
QueryBody the Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/)
type QueryBody struct { // Query - The query to execute. Query *string `json:"query,omitempty"` // Timespan - Optional. The timespan over which to query data. This is an ISO8601 time period value. This timespan is applied in addition to any that are specified in the query expression. Timespan *string `json:"timespan,omitempty"` // Applications - A list of Application IDs for cross-application queries. Applications *[]string `json:"applications,omitempty"` }
QueryClient is the composite Swagger for Application Insights Data Client
type QueryClient struct { BaseClient }
func NewQueryClient() QueryClient
NewQueryClient creates an instance of the QueryClient client.
func NewQueryClientWithBaseURI(baseURI string) QueryClient
NewQueryClientWithBaseURI creates an instance of the QueryClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client QueryClient) Execute(ctx context.Context, appID string, body QueryBody) (result QueryResults, err error)
Execute executes an Analytics query for data. [Here](https://dev.applicationinsights.io/documentation/Using-the-API/Query) is an example for using POST with an Analytics query. Parameters: appID - ID of the application. This is Application ID from the API Access settings blade in the Azure portal. body - the Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/)
func (client QueryClient) ExecutePreparer(ctx context.Context, appID string, body QueryBody) (*http.Request, error)
ExecutePreparer prepares the Execute request.
func (client QueryClient) ExecuteResponder(resp *http.Response) (result QueryResults, err error)
ExecuteResponder handles the response to the Execute request. The method always closes the http.Response Body.
func (client QueryClient) ExecuteSender(req *http.Request) (*http.Response, error)
ExecuteSender sends the Execute request. The method will close the http.Response Body if it receives an error.
QueryResults contains the tables, columns & rows resulting from a query.
type QueryResults struct { autorest.Response `json:"-"` // Tables - The list of tables, columns and rows. Tables *[]Table `json:"tables,omitempty"` }
SetObject ...
type SetObject struct { autorest.Response `json:"-"` Value interface{} `json:"value,omitempty"` }
Table contains the columns and rows for one table in a query response.
type Table struct { // Name - The name of the table. Name *string `json:"name,omitempty"` // Columns - The list of columns in this table. Columns *[]Column `json:"columns,omitempty"` // Rows - The resulting rows from this query. Rows *[][]interface{} `json:"rows,omitempty"` }
Type enumerates the values for type.
type Type string
const ( // TypeAvailabilityResult ... TypeAvailabilityResult Type = "availabilityResult" // TypeBrowserTiming ... TypeBrowserTiming Type = "browserTiming" // TypeCustomEvent ... TypeCustomEvent Type = "customEvent" // TypeCustomMetric ... TypeCustomMetric Type = "customMetric" // TypeDependency ... TypeDependency Type = "dependency" // TypeEventsResultData ... TypeEventsResultData Type = "eventsResultData" // TypeException ... TypeException Type = "exception" // TypePageView ... TypePageView Type = "pageView" // TypePerformanceCounter ... TypePerformanceCounter Type = "performanceCounter" // TypeRequest ... TypeRequest Type = "request" // TypeTrace ... TypeTrace Type = "trace" )
func PossibleTypeValues() []Type
PossibleTypeValues returns an array of possible values for the Type const type.
Name | Synopsis |
---|---|
.. | |
insightsapi |