azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/monitor/2018-09-01-preview/monitor Index | Files | Directories

package monitor

import "github.com/Azure/azure-sdk-for-go/services/preview/monitor/2018-09-01-preview/monitor"

Package monitor implements the Azure ARM Monitor service API version 2018-09-01-preview.

Monitor Management Client

Index

Package Files

client.go metrics.go models.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Monitor
    DefaultBaseURI = "https://monitoring.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type APIError Uses

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 Uses

type APIFailureResponse struct {
    Error *APIError `json:"error,omitempty"`
}

APIFailureResponse ...

type AzureMetricsBaseData Uses

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 Uses

type AzureMetricsData struct {
    BaseData *AzureMetricsBaseData `json:"baseData,omitempty"`
}

AzureMetricsData ...

type AzureMetricsDocument Uses

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 Uses

type AzureMetricsResult struct {
    autorest.Response `json:"-"`
    // StatusCode - Http status code response
    StatusCode         *int32              `json:"statusCode,omitempty"`
    APIFailureResponse *APIFailureResponse `json:"apiFailureResponse,omitempty"`
}

AzureMetricsResult ...

type AzureTimeSeriesData Uses

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 Uses

type BaseClient struct {
    autorest.Client
    BaseURI string
}

BaseClient is the base client for Monitor.

func New Uses

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type MetricsClient Uses

type MetricsClient struct {
    BaseClient
}

MetricsClient is the monitor Management Client

func NewMetricsClient Uses

func NewMetricsClient() MetricsClient

NewMetricsClient creates an instance of the MetricsClient client.

func NewMetricsClientWithBaseURI Uses

func NewMetricsClientWithBaseURI(baseURI string) MetricsClient

NewMetricsClientWithBaseURI creates an instance of the MetricsClient client.

func (MetricsClient) Create Uses

func (client MetricsClient) Create(ctx context.Context, contentType string, contentLength int32, subscriptionID string, resourceGroupName string, resourceProvider string, resourceTypeName string, resourceName string, body AzureMetricsDocument) (result AzureMetricsResult, err error)

Create **Post the metric values for a resource**. Parameters: contentType - supports application/json and application/x-ndjson contentLength - content length of the payload 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

func (MetricsClient) CreatePreparer Uses

func (client MetricsClient) CreatePreparer(ctx context.Context, contentType string, contentLength int32, subscriptionID string, resourceGroupName string, resourceProvider string, resourceTypeName string, resourceName string, body AzureMetricsDocument) (*http.Request, error)

CreatePreparer prepares the Create request.

func (MetricsClient) CreateResponder Uses

func (client MetricsClient) CreateResponder(resp *http.Response) (result AzureMetricsResult, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (MetricsClient) CreateSender Uses

func (client MetricsClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

Directories

PathSynopsis
monitorapi

Package monitor imports 7 packages (graph) and is imported by 5 packages. Updated 2019-08-05. Refresh now. Tools for package owners.