devices_metrics
Creates, updates, deletes, gets or lists a devices_metrics
resource.
Overview
Name | devices_metrics |
Type | Resource |
Id | azure_extras.storsimple_8000_series.devices_metrics |
Fields
The following fields are returned by SELECT
queries:
- list
The collection of metrics.
Name | Datatype | Description |
---|---|---|
name | object | The name of the metric. |
dimensions | array | The metric dimensions. |
endTime | string (date-time) | The end time of the metric data. |
primaryAggregation | string | The metric aggregation type. |
resourceId | string | The ID of metric source. |
startTime | string (date-time) | The start time of the metric data. |
timeGrain | string | The time granularity of the metric data. |
type | string | The type of the metric data. |
unit | string | The unit of the metric data. |
values | array | The list of the metric data. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list | select | deviceName , subscriptionId , resourceGroupName , managerName , $filter | Gets 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.
Name | Datatype | Description |
---|---|---|
$filter | string | OData Filter options |
deviceName | string | The device name |
managerName | string | The manager name |
resourceGroupName | string | The resource group name |
subscriptionId | string | The subscription id |
SELECT
examples
- list
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
;