usages
Creates, updates, deletes, gets or lists a usages
resource.
Overview
Name | usages |
Type | Resource |
Id | azure.log_analytics.usages |
Fields
The following fields are returned by SELECT
queries:
- list
OK response definition.
Name | Datatype | Description |
---|---|---|
name | object | The name of the metric. |
currentValue | number (double) | The current value of the metric. |
limit | number (double) | The quota limit for the metric. |
nextResetTime | string (date-time) | The time that the metric's value will reset. |
quotaPeriod | string | The quota period that determines the length of time between value resets. |
unit | string | The units used for the metric. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list | select | resourceGroupName , workspaceName , subscriptionId | Gets a list of usage metrics for a workspace. |
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 |
---|---|---|
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
subscriptionId | string | The ID of the target subscription. |
workspaceName | string | The name of the workspace. |
SELECT
examples
- list
Gets a list of usage metrics for a workspace.
SELECT
name,
currentValue,
limit,
nextResetTime,
quotaPeriod,
unit
FROM azure.log_analytics.usages
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;