Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureAppInsightsClient ¶
type AzureAppInsightsClient interface {
GetCustomMetric(request MetricRequest) (float64, error)
}
AzureAppInsightsClient provides methods for accessing App Insights via AD auth or App API Key
func NewClient ¶
func NewClient() AzureAppInsightsClient
NewClient creates a client for calling Application insights api
type MetricRequest ¶
type MetricRequest struct { MetricName string Aggregation string Timespan string Interval string Segment string OrderBy string Filter string }
MetricRequest represents options for the AI endpoint
func NewMetricRequest ¶
func NewMetricRequest(metricName string) MetricRequest
NewMetricRequest creates a new metric request with defaults for optional parameters
Click to show internal directories.
Click to hide internal directories.