Documentation ¶
Index ¶
- func PossibleValuesForAggregationType() []string
- func PossibleValuesForMetricAggregationType() []string
- func PossibleValuesForMetricClass() []string
- func PossibleValuesForMetricUnit() []string
- type AggregationType
- type ListAtSubscriptionScopeOperationOptions
- type ListAtSubscriptionScopeOperationResponse
- type ListOperationOptions
- type ListOperationResponse
- type LocalizableString
- type MetricAggregationType
- type MetricAvailability
- type MetricClass
- type MetricDefinition
- type MetricDefinitionCollection
- type MetricDefinitionsClient
- func (c MetricDefinitionsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c MetricDefinitionsClient) ListAtSubscriptionScope(ctx context.Context, id commonids.SubscriptionId, ...) (result ListAtSubscriptionScopeOperationResponse, err error)
- type MetricUnit
- type SubscriptionScopeMetricDefinition
- type SubscriptionScopeMetricDefinitionCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAggregationType ¶
func PossibleValuesForAggregationType() []string
func PossibleValuesForMetricAggregationType ¶
func PossibleValuesForMetricAggregationType() []string
func PossibleValuesForMetricClass ¶
func PossibleValuesForMetricClass() []string
func PossibleValuesForMetricUnit ¶
func PossibleValuesForMetricUnit() []string
Types ¶
type AggregationType ¶
type AggregationType string
const ( AggregationTypeAverage AggregationType = "Average" AggregationTypeCount AggregationType = "Count" AggregationTypeMaximum AggregationType = "Maximum" AggregationTypeMinimum AggregationType = "Minimum" AggregationTypeNone AggregationType = "None" AggregationTypeTotal AggregationType = "Total" )
func (*AggregationType) UnmarshalJSON ¶
func (s *AggregationType) UnmarshalJSON(bytes []byte) error
type ListAtSubscriptionScopeOperationOptions ¶
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 ListAtSubscriptionScopeOperationResponse ¶
type ListAtSubscriptionScopeOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SubscriptionScopeMetricDefinitionCollection }
type ListOperationOptions ¶
type ListOperationOptions struct {
Metricnamespace *string
}
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 ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *MetricDefinitionCollection }
type LocalizableString ¶
type MetricAggregationType ¶
type MetricAggregationType string
const ( MetricAggregationTypeAverage MetricAggregationType = "Average" MetricAggregationTypeCount MetricAggregationType = "Count" MetricAggregationTypeMaximum MetricAggregationType = "Maximum" MetricAggregationTypeMinimum MetricAggregationType = "Minimum" MetricAggregationTypeNone MetricAggregationType = "None" MetricAggregationTypeTotal MetricAggregationType = "Total" )
func (*MetricAggregationType) UnmarshalJSON ¶
func (s *MetricAggregationType) UnmarshalJSON(bytes []byte) error
type MetricAvailability ¶
type MetricClass ¶
type MetricClass string
const ( MetricClassAvailability MetricClass = "Availability" MetricClassErrors MetricClass = "Errors" MetricClassLatency MetricClass = "Latency" MetricClassSaturation MetricClass = "Saturation" MetricClassTransactions MetricClass = "Transactions" )
func (*MetricClass) UnmarshalJSON ¶
func (s *MetricClass) UnmarshalJSON(bytes []byte) error
type MetricDefinition ¶
type MetricDefinition struct { Category *string `json:"category,omitempty"` Dimensions *[]LocalizableString `json:"dimensions,omitempty"` DisplayDescription *string `json:"displayDescription,omitempty"` Id *string `json:"id,omitempty"` IsDimensionRequired *bool `json:"isDimensionRequired,omitempty"` MetricAvailabilities *[]MetricAvailability `json:"metricAvailabilities,omitempty"` MetricClass *MetricClass `json:"metricClass,omitempty"` Name *LocalizableString `json:"name,omitempty"` Namespace *string `json:"namespace,omitempty"` PrimaryAggregationType *AggregationType `json:"primaryAggregationType,omitempty"` ResourceId *string `json:"resourceId,omitempty"` SupportedAggregationTypes *[]AggregationType `json:"supportedAggregationTypes,omitempty"` Unit *MetricUnit `json:"unit,omitempty"` }
type MetricDefinitionCollection ¶
type MetricDefinitionCollection struct {
Value []MetricDefinition `json:"value"`
}
type MetricDefinitionsClient ¶
type MetricDefinitionsClient struct {
Client *resourcemanager.Client
}
func NewMetricDefinitionsClientWithBaseURI ¶
func NewMetricDefinitionsClientWithBaseURI(sdkApi sdkEnv.Api) (*MetricDefinitionsClient, error)
func (MetricDefinitionsClient) List ¶
func (c MetricDefinitionsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (MetricDefinitionsClient) ListAtSubscriptionScope ¶
func (c MetricDefinitionsClient) ListAtSubscriptionScope(ctx context.Context, id commonids.SubscriptionId, options ListAtSubscriptionScopeOperationOptions) (result ListAtSubscriptionScopeOperationResponse, err error)
ListAtSubscriptionScope ...
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 SubscriptionScopeMetricDefinition ¶
type SubscriptionScopeMetricDefinition struct { Category *string `json:"category,omitempty"` Dimensions *[]LocalizableString `json:"dimensions,omitempty"` DisplayDescription *string `json:"displayDescription,omitempty"` Id *string `json:"id,omitempty"` IsDimensionRequired *bool `json:"isDimensionRequired,omitempty"` MetricAvailabilities *[]MetricAvailability `json:"metricAvailabilities,omitempty"` MetricClass *MetricClass `json:"metricClass,omitempty"` Name *LocalizableString `json:"name,omitempty"` Namespace *string `json:"namespace,omitempty"` PrimaryAggregationType *MetricAggregationType `json:"primaryAggregationType,omitempty"` ResourceId *string `json:"resourceId,omitempty"` SupportedAggregationTypes *[]MetricAggregationType `json:"supportedAggregationTypes,omitempty"` Unit *MetricUnit `json:"unit,omitempty"` }
type SubscriptionScopeMetricDefinitionCollection ¶
type SubscriptionScopeMetricDefinitionCollection struct {
Value []SubscriptionScopeMetricDefinition `json:"value"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.