@datafire/azure_monitor_metricdefinitions_api

5.0.0 • Public • Published

@datafire/azure_monitor_metricdefinitions_api

Client library for MonitorManagementClient

Installation and Usage

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);
});

Description

Actions

MetricDefinitions_List

Lists the metric definitions for the resource.

azure_monitor_metricdefinitions_api.MetricDefinitions_List({
  "resourceUri": "",
  "api-version": ""
}, context)

Input

  • 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.

Output

Definitions

AggregationType

  • AggregationType string (values: None, Average, Count, Minimum, Maximum, Total): the aggregation type of the metric.

ErrorResponse

  • ErrorResponse object: Describes the format of Error response.
    • code string: Error code
    • message string: Error message indicating why the operation failed.

LocalizableString

  • LocalizableString object: The localizable string class.
    • localizedValue string: the locale specific value.
    • value required string: the invariant value.

MetricAvailability

  • 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.

MetricDefinition

  • 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.
    • 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.
    • 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.
    • unit Unit

MetricDefinitionCollection

  • MetricDefinitionCollection object: Represents collection of metric definitions.
    • value required array: the values for the metric definitions.

Unit

  • Unit string (values: Count, Bytes, Seconds, CountPerSecond, BytesPerSecond, Percent, MilliSeconds, ByteSeconds, Unspecified, Cores, MilliCores, NanoCores, BitsPerSecond): the unit of the metric.

Readme

Keywords

none

Package Sidebar

Install

npm i @datafire/azure_monitor_metricdefinitions_api

Weekly Downloads

0

Version

5.0.0

License

MIT

Unpacked Size

53.6 kB

Total Files

4

Last publish

Collaborators

  • datafire