custommetrics

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: MIT Imports: 13 Imported by: 0

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

Jump to

Keyboard shortcuts

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