Skip to main content

devices_metrics

Creates, updates, deletes, gets or lists a devices_metrics resource.

Overview

Namedevices_metrics
TypeResource
Idazure_extras.storsimple_8000_series.devices_metrics

Fields

The following fields are returned by SELECT queries:

The collection of metrics.

NameDatatypeDescription
nameobjectThe name of the metric.
dimensionsarrayThe metric dimensions.
endTimestring (date-time)The end time of the metric data.
primaryAggregationstringThe metric aggregation type.
resourceIdstringThe ID of metric source.
startTimestring (date-time)The start time of the metric data.
timeGrainstringThe time granularity of the metric data.
typestringThe type of the metric data.
unitstringThe unit of the metric data.
valuesarrayThe list of the metric data.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectdeviceName, subscriptionId, resourceGroupName, managerName, $filterGets the metrics for the specified device.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
$filterstringOData Filter options
deviceNamestringThe device name
managerNamestringThe manager name
resourceGroupNamestringThe resource group name
subscriptionIdstringThe subscription id

SELECT examples

Gets the metrics for the specified device.

SELECT
name,
dimensions,
endTime,
primaryAggregation,
resourceId,
startTime,
timeGrain,
type,
unit,
values
FROM azure_extras.storsimple_8000_series.devices_metrics
WHERE deviceName = '{{ deviceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND managerName = '{{ managerName }}' -- required
AND $filter = '{{ $filter }}' -- required
;