3.0.0 • Published 8 years ago

@datafire/azure_insights v3.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

@datafire/azure_insights

Client library for InsightsClient

Installation and Usage

npm install --save datafire @datafire/azure_insights
let datafire = require('datafire');
let azure_insights = require('@datafire/azure_insights').create();

azure_insights.Metrics_List({}).then(data => {
  console.log(data);
})

Description

Actions

Metrics_List

Lists the metric values for a resource.The $filter is used to reduce the set of metric data returned. Some common properties for this expression will be: name.value, aggregationType, startTime, endTime, timeGrain. The filter expression uses these properties with comparison operators (eg. eq, gt, lt) and multiple expressions can be combined with parentheses and 'and/or' operators.Some example filter expressions are:- $filter=(name.value eq 'RunsSucceeded') and aggregationType eq 'Total' and startTime eq 2016-02-20 and endTime eq 2016-02-21 and timeGrain eq duration'PT1M',- $filter=(name.value eq 'RunsSucceeded') and (aggregationType eq 'Total' or aggregationType eq 'Average') and startTime eq 2016-02-20 and endTime eq 2016-02-21 and timeGrain eq duration'PT1H',- $filter=(name.value eq 'ActionsCompleted' or name.value eq 'RunsSucceeded') and (aggregationType eq 'Total' or aggregationType eq 'Average') and startTime eq 2016-02-20 and endTime eq 2016-02-21 and timeGrain eq duration'PT1M'. >NOTE: When a metrics query comes in with multiple metrics, but with no aggregation types defined, the service will pick the Primary aggregation type of the first metrics to be used as the default aggregation type for all the metrics.

azure_insights.Metrics_List({
  "resourceUri": "",
  "api-version": ""
}, context)

Parameters

  • resourceUri (string) required - The identifier of the resource.
  • $filter (string) - Reduces the set of data collected. The syntax allowed depends on the operation. See the operation's description for details.
  • api-version (string) required - Client Api Version.
3.0.0

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago