Documentation ¶
Index ¶
- func PossibleValuesForMetricResultType() []string
- func PossibleValuesForMetricUnit() []string
- func PossibleValuesForResultType() []string
- type ListAtSubscriptionScopeOperationOptions
- type ListAtSubscriptionScopeOperationResponse
- type ListAtSubscriptionScopePostOperationOptions
- type ListAtSubscriptionScopePostOperationResponse
- type ListOperationOptions
- type ListOperationResponse
- type LocalizableString
- type MetadataValue
- type Metric
- type MetricResultType
- type MetricUnit
- type MetricValue
- type MetricsClient
- func (c MetricsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c MetricsClient) ListAtSubscriptionScope(ctx context.Context, id commonids.SubscriptionId, ...) (result ListAtSubscriptionScopeOperationResponse, err error)
- func (c MetricsClient) ListAtSubscriptionScopePost(ctx context.Context, id commonids.SubscriptionId, ...) (result ListAtSubscriptionScopePostOperationResponse, err error)
- type Response
- type ResultType
- type SubscriptionScopeMetricsRequestBodyParameters
- type TimeSeriesElement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForMetricResultType ¶
func PossibleValuesForMetricResultType() []string
func PossibleValuesForMetricUnit ¶
func PossibleValuesForMetricUnit() []string
func PossibleValuesForResultType ¶
func PossibleValuesForResultType() []string
Types ¶
type ListAtSubscriptionScopeOperationOptions ¶
type ListAtSubscriptionScopeOperationOptions struct { Aggregation *string AutoAdjustTimegrain *bool Filter *string Interval *string Metricnames *string Metricnamespace *string Orderby *string Region *string ResultType *MetricResultType Rollupby *string Timespan *string Top *int64 ValidateDimensions *bool }
func DefaultListAtSubscriptionScopeOperationOptions ¶
func DefaultListAtSubscriptionScopeOperationOptions() ListAtSubscriptionScopeOperationOptions
func (ListAtSubscriptionScopeOperationOptions) ToHeaders ¶
func (o ListAtSubscriptionScopeOperationOptions) ToHeaders() *client.Headers
func (ListAtSubscriptionScopeOperationOptions) ToOData ¶
func (o ListAtSubscriptionScopeOperationOptions) ToOData() *odata.Query
func (ListAtSubscriptionScopeOperationOptions) ToQuery ¶
func (o ListAtSubscriptionScopeOperationOptions) ToQuery() *client.QueryParams
type ListAtSubscriptionScopePostOperationOptions ¶
type ListAtSubscriptionScopePostOperationOptions struct { Aggregation *string AutoAdjustTimegrain *bool Filter *string Interval *string Metricnames *string Metricnamespace *string Orderby *string Region *string ResultType *MetricResultType Rollupby *string Timespan *string Top *int64 ValidateDimensions *bool }
func DefaultListAtSubscriptionScopePostOperationOptions ¶
func DefaultListAtSubscriptionScopePostOperationOptions() ListAtSubscriptionScopePostOperationOptions
func (ListAtSubscriptionScopePostOperationOptions) ToHeaders ¶
func (o ListAtSubscriptionScopePostOperationOptions) ToHeaders() *client.Headers
func (ListAtSubscriptionScopePostOperationOptions) ToOData ¶
func (o ListAtSubscriptionScopePostOperationOptions) ToOData() *odata.Query
func (ListAtSubscriptionScopePostOperationOptions) ToQuery ¶
func (o ListAtSubscriptionScopePostOperationOptions) ToQuery() *client.QueryParams
type ListOperationOptions ¶
type ListOperationOptions struct { Aggregation *string AutoAdjustTimegrain *bool Filter *string Interval *string Metricnames *string Metricnamespace *string Orderby *string ResultType *ResultType Rollupby *string Timespan *string Top *int64 ValidateDimensions *bool }
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type LocalizableString ¶
type MetadataValue ¶
type MetadataValue struct { Name *LocalizableString `json:"name,omitempty"` Value *string `json:"value,omitempty"` }
type Metric ¶
type Metric struct { DisplayDescription *string `json:"displayDescription,omitempty"` ErrorCode *string `json:"errorCode,omitempty"` ErrorMessage *string `json:"errorMessage,omitempty"` Id string `json:"id"` Name LocalizableString `json:"name"` Timeseries []TimeSeriesElement `json:"timeseries"` Type string `json:"type"` Unit MetricUnit `json:"unit"` }
type MetricResultType ¶
type MetricResultType string
const ( MetricResultTypeData MetricResultType = "Data" MetricResultTypeMetadata MetricResultType = "Metadata" )
func (*MetricResultType) UnmarshalJSON ¶
func (s *MetricResultType) UnmarshalJSON(bytes []byte) error
type MetricUnit ¶
type MetricUnit string
const ( MetricUnitBitsPerSecond MetricUnit = "BitsPerSecond" MetricUnitByteSeconds MetricUnit = "ByteSeconds" MetricUnitBytes MetricUnit = "Bytes" MetricUnitBytesPerSecond MetricUnit = "BytesPerSecond" MetricUnitCores MetricUnit = "Cores" MetricUnitCount MetricUnit = "Count" MetricUnitCountPerSecond MetricUnit = "CountPerSecond" MetricUnitMilliCores MetricUnit = "MilliCores" MetricUnitMilliSeconds MetricUnit = "MilliSeconds" MetricUnitNanoCores MetricUnit = "NanoCores" MetricUnitPercent MetricUnit = "Percent" MetricUnitSeconds MetricUnit = "Seconds" MetricUnitUnspecified MetricUnit = "Unspecified" )
func (*MetricUnit) UnmarshalJSON ¶
func (s *MetricUnit) UnmarshalJSON(bytes []byte) error
type MetricValue ¶
type MetricValue struct { Average *float64 `json:"average,omitempty"` Count *float64 `json:"count,omitempty"` Maximum *float64 `json:"maximum,omitempty"` Minimum *float64 `json:"minimum,omitempty"` TimeStamp string `json:"timeStamp"` Total *float64 `json:"total,omitempty"` }
func (*MetricValue) GetTimeStampAsTime ¶
func (o *MetricValue) GetTimeStampAsTime() (*time.Time, error)
func (*MetricValue) SetTimeStampAsTime ¶
func (o *MetricValue) SetTimeStampAsTime(input time.Time)
type MetricsClient ¶
type MetricsClient struct {
Client *resourcemanager.Client
}
func NewMetricsClientWithBaseURI ¶
func NewMetricsClientWithBaseURI(sdkApi sdkEnv.Api) (*MetricsClient, error)
func (MetricsClient) List ¶
func (c MetricsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (MetricsClient) ListAtSubscriptionScope ¶
func (c MetricsClient) ListAtSubscriptionScope(ctx context.Context, id commonids.SubscriptionId, options ListAtSubscriptionScopeOperationOptions) (result ListAtSubscriptionScopeOperationResponse, err error)
ListAtSubscriptionScope ...
func (MetricsClient) ListAtSubscriptionScopePost ¶
func (c MetricsClient) ListAtSubscriptionScopePost(ctx context.Context, id commonids.SubscriptionId, input SubscriptionScopeMetricsRequestBodyParameters, options ListAtSubscriptionScopePostOperationOptions) (result ListAtSubscriptionScopePostOperationResponse, err error)
ListAtSubscriptionScopePost ...
type ResultType ¶
type ResultType string
const ( ResultTypeData ResultType = "Data" ResultTypeMetadata ResultType = "Metadata" )
func (*ResultType) UnmarshalJSON ¶
func (s *ResultType) UnmarshalJSON(bytes []byte) error
type SubscriptionScopeMetricsRequestBodyParameters ¶
type SubscriptionScopeMetricsRequestBodyParameters struct { Aggregation *string `json:"aggregation,omitempty"` AutoAdjustTimegrain *bool `json:"autoAdjustTimegrain,omitempty"` Filter *string `json:"filter,omitempty"` Interval *string `json:"interval,omitempty"` MetricNames *string `json:"metricNames,omitempty"` MetricNamespace *string `json:"metricNamespace,omitempty"` OrderBy *string `json:"orderBy,omitempty"` ResultType *MetricResultType `json:"resultType,omitempty"` RollUpBy *string `json:"rollUpBy,omitempty"` Timespan *string `json:"timespan,omitempty"` Top *int64 `json:"top,omitempty"` ValidateDimensions *bool `json:"validateDimensions,omitempty"` }
type TimeSeriesElement ¶
type TimeSeriesElement struct { Data *[]MetricValue `json:"data,omitempty"` Metadatavalues *[]MetadataValue `json:"metadatavalues,omitempty"` }
Source Files ¶
- client.go
- constants.go
- method_list.go
- method_listatsubscriptionscope.go
- method_listatsubscriptionscopepost.go
- model_localizablestring.go
- model_metadatavalue.go
- model_metric.go
- model_metricvalue.go
- model_response.go
- model_subscriptionscopemetricsrequestbodyparameters.go
- model_timeserieselement.go
- version.go
Click to show internal directories.
Click to hide internal directories.