Versions in this module Expand all Collapse all v0 v0.20241126.2320 Nov 26, 2024 v0.20241126.1723 Nov 26, 2024 Changes in this version + func PossibleValuesForMetricResultType() []string + func PossibleValuesForMetricUnit() []string + func PossibleValuesForResultType() []string + 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() ListAtSubscriptionScopeOperationOptions + func (o ListAtSubscriptionScopeOperationOptions) ToHeaders() *client.Headers + func (o ListAtSubscriptionScopeOperationOptions) ToOData() *odata.Query + func (o ListAtSubscriptionScopeOperationOptions) ToQuery() *client.QueryParams + type ListAtSubscriptionScopeOperationResponse struct + HttpResponse *http.Response + Model *Response + OData *odata.OData + 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() ListAtSubscriptionScopePostOperationOptions + func (o ListAtSubscriptionScopePostOperationOptions) ToHeaders() *client.Headers + func (o ListAtSubscriptionScopePostOperationOptions) ToOData() *odata.Query + func (o ListAtSubscriptionScopePostOperationOptions) ToQuery() *client.QueryParams + type ListAtSubscriptionScopePostOperationResponse struct + HttpResponse *http.Response + Model *Response + OData *odata.OData + 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() ListOperationOptions + func (o ListOperationOptions) ToHeaders() *client.Headers + func (o ListOperationOptions) ToOData() *odata.Query + func (o ListOperationOptions) ToQuery() *client.QueryParams + type ListOperationResponse struct + HttpResponse *http.Response + Model *Response + OData *odata.OData + type LocalizableString struct + LocalizedValue *string + Value string + type MetadataValue struct + Name *LocalizableString + Value *string + type Metric struct + DisplayDescription *string + ErrorCode *string + ErrorMessage *string + Id string + Name LocalizableString + Timeseries []TimeSeriesElement + Type string + Unit MetricUnit + type MetricResultType string + const MetricResultTypeData + const MetricResultTypeMetadata + func (s *MetricResultType) UnmarshalJSON(bytes []byte) error + type MetricUnit string + const MetricUnitBitsPerSecond + const MetricUnitByteSeconds + const MetricUnitBytes + const MetricUnitBytesPerSecond + const MetricUnitCores + const MetricUnitCount + const MetricUnitCountPerSecond + const MetricUnitMilliCores + const MetricUnitMilliSeconds + const MetricUnitNanoCores + const MetricUnitPercent + const MetricUnitSeconds + const MetricUnitUnspecified + func (s *MetricUnit) UnmarshalJSON(bytes []byte) error + type MetricValue struct + Average *float64 + Count *float64 + Maximum *float64 + Minimum *float64 + TimeStamp string + Total *float64 + func (o *MetricValue) GetTimeStampAsTime() (*time.Time, error) + func (o *MetricValue) SetTimeStampAsTime(input time.Time) + type MetricsClient struct + Client *resourcemanager.Client + func NewMetricsClientWithBaseURI(sdkApi sdkEnv.Api) (*MetricsClient, error) + 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 struct + Cost *float64 + Interval *string + Namespace *string + Resourceregion *string + Timespan string + Value []Metric + type ResultType string + const ResultTypeData + const ResultTypeMetadata + func (s *ResultType) UnmarshalJSON(bytes []byte) error + type SubscriptionScopeMetricsRequestBodyParameters struct + Aggregation *string + AutoAdjustTimegrain *bool + Filter *string + Interval *string + MetricNames *string + MetricNamespace *string + OrderBy *string + ResultType *MetricResultType + RollUpBy *string + Timespan *string + Top *int64 + ValidateDimensions *bool + type TimeSeriesElement struct + Data *[]MetricValue + Metadatavalues *[]MetadataValue