Client library for MonitorManagementClient
npm install --save @datafire/azure_monitor_metricdefinitions_api
let azure_monitor_metricdefinitions_api = require('@datafire/azure_monitor_metricdefinitions_api').create({
access_token: "",
refresh_token: "",
client_id: "",
client_secret: "",
redirect_uri: ""
});
.then(data => {
console.log(data);
});
Lists the metric definitions for the resource.
azure_monitor_metricdefinitions_api.MetricDefinitions_List({
"resourceUri": "",
"api-version": ""
}, context)
- input
object
- resourceUri required
string
: The identifier of the resource. - api-version required
string
: Client Api Version. - metricnamespace
string
: Metric namespace to query metric definitions for.
- resourceUri required
- output MetricDefinitionCollection
- AggregationType
string
(values: None, Average, Count, Minimum, Maximum, Total): the aggregation type of the metric.
- ErrorResponse
object
: Describes the format of Error response.- code
string
: Error code - message
string
: Error message indicating why the operation failed.
- code
- LocalizableString
object
: The localizable string class.- localizedValue
string
: the locale specific value. - value required
string
: the invariant value.
- localizedValue
- MetricAvailability
object
: Metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain.- retention
string
: the retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc. - timeGrain
string
: the time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc.
- retention
- MetricDefinition
object
: Metric definition class specifies the metadata for a metric.- dimensions
array
: the name and the display name of the dimension, i.e. it is a localizable string.- items LocalizableString
- id
string
: the resource identifier of the metric definition. - isDimensionRequired
boolean
: Flag to indicate whether the dimension is required. - metricAvailabilities
array
: the collection of what aggregation intervals are available to be queried.- items MetricAvailability
- name LocalizableString
- namespace
string
: the namespace the metric belongs to. - primaryAggregationType AggregationType
- resourceId
string
: the resource identifier of the resource that emitted the metric. - supportedAggregationTypes
array
: the collection of what aggregation types are supported.- items AggregationType
- unit Unit
- dimensions
- MetricDefinitionCollection
object
: Represents collection of metric definitions.- value required
array
: the values for the metric definitions.- items MetricDefinition
- value required
- Unit
string
(values: Count, Bytes, Seconds, CountPerSecond, BytesPerSecond, Percent, MilliSeconds, ByteSeconds, Unspecified, Cores, MilliCores, NanoCores, BitsPerSecond): the unit of the metric.