Documentation ¶
Overview ¶
Package monitor implements the Azure ARM Monitor service API version 2018-09-01-preview.
Monitor Management Client
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type APIError
- type APIFailureResponse
- type AzureMetricsBaseData
- type AzureMetricsData
- type AzureMetricsDocument
- type AzureMetricsResult
- type AzureTimeSeriesData
- type BaseClient
- func (client BaseClient) AzureMonitorCustomMetricsIngestionAPI(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (result AzureMetricsResult, err error)
- func (client BaseClient) AzureMonitorCustomMetricsIngestionAPIPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (*http.Request, error)
- func (client BaseClient) AzureMonitorCustomMetricsIngestionAPIResponder(resp *http.Response) (result AzureMetricsResult, err error)
- func (client BaseClient) AzureMonitorCustomMetricsIngestionAPISender(req *http.Request) (*http.Response, error)
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Monitor
DefaultBaseURI = "https://monitoring.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type APIError ¶
type APIError struct { // Code - Gets or sets the azure metrics error code Code *string `json:"code,omitempty"` // Message - Gets or sets the azure metrics error message Message *string `json:"message,omitempty"` }
APIError ...
type APIFailureResponse ¶
type APIFailureResponse struct {
Error *APIError `json:"error,omitempty"`
}
APIFailureResponse ...
type AzureMetricsBaseData ¶
type AzureMetricsBaseData struct { // Metric - Gets or sets the Metric name Metric *string `json:"metric,omitempty"` // Namespace - Gets or sets the Metric namespace Namespace *string `json:"namespace,omitempty"` // DimNames - Gets or sets the list of dimension names (optional) DimNames *[]string `json:"dimNames,omitempty"` // Series - Gets or sets the list of time series data for the metric (one per unique dimension combination) Series *[]AzureTimeSeriesData `json:"series,omitempty"` }
AzureMetricsBaseData ...
type AzureMetricsData ¶
type AzureMetricsData struct {
BaseData *AzureMetricsBaseData `json:"baseData,omitempty"`
}
AzureMetricsData ...
type AzureMetricsDocument ¶
type AzureMetricsDocument struct { // Time - Gets or sets Time property (in ISO 8601 format) Time *string `json:"time,omitempty"` Data *AzureMetricsData `json:"data,omitempty"` }
AzureMetricsDocument ...
type AzureMetricsResult ¶
type AzureMetricsResult struct { autorest.Response `json:"-"` // StatusCode - Http status code response StatusCode *int32 `json:"statusCode,omitempty"` APIFailureResponse *APIFailureResponse `json:"apiFailureResponse,omitempty"` }
AzureMetricsResult ...
type AzureTimeSeriesData ¶
type AzureTimeSeriesData struct { // DimValues - Gets or sets dimension values DimValues *[]string `json:"dimValues,omitempty"` // Min - Gets or sets Min value Min *float64 `json:"min,omitempty"` // Max - Gets or sets Max value Max *float64 `json:"max,omitempty"` // Sum - Gets or sets Sum value Sum *float64 `json:"sum,omitempty"` // Count - Gets or sets Count value Count *int32 `json:"count,omitempty"` }
AzureTimeSeriesData ...
type BaseClient ¶
BaseClient is the base client for Monitor.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client.
func (BaseClient) AzureMonitorCustomMetricsIngestionAPI ¶
func (client BaseClient) AzureMonitorCustomMetricsIngestionAPI(ctx context.Context, subscriptionID string, resourceGroupName string, resourceProvider string, resourceTypeName string, resourceName string, body AzureMetricsDocument, contentType string, contentLength *int32) (result AzureMetricsResult, err error)
AzureMonitorCustomMetricsIngestionAPI sends the azure monitor custom metrics ingestion api request. Parameters: subscriptionID - the azure subscription id resourceGroupName - the ARM resource group name resourceProvider - the ARM resource provider name resourceTypeName - the ARM resource type name resourceName - the ARM resource name body - the Azure metrics document json payload contentType - supports application/json and application/x-ndjson contentLength - content length of the payload
func (BaseClient) AzureMonitorCustomMetricsIngestionAPIPreparer ¶
func (client BaseClient) AzureMonitorCustomMetricsIngestionAPIPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, resourceProvider string, resourceTypeName string, resourceName string, body AzureMetricsDocument, contentType string, contentLength *int32) (*http.Request, error)
AzureMonitorCustomMetricsIngestionAPIPreparer prepares the AzureMonitorCustomMetricsIngestionAPI request.
func (BaseClient) AzureMonitorCustomMetricsIngestionAPIResponder ¶
func (client BaseClient) AzureMonitorCustomMetricsIngestionAPIResponder(resp *http.Response) (result AzureMetricsResult, err error)
AzureMonitorCustomMetricsIngestionAPIResponder handles the response to the AzureMonitorCustomMetricsIngestionAPI request. The method always closes the http.Response Body.
func (BaseClient) AzureMonitorCustomMetricsIngestionAPISender ¶
func (client BaseClient) AzureMonitorCustomMetricsIngestionAPISender(req *http.Request) (*http.Response, error)
AzureMonitorCustomMetricsIngestionAPISender sends the AzureMonitorCustomMetricsIngestionAPI request. The method will close the http.Response Body if it receives an error.