usages
Creates, updates, deletes, gets or lists a usages
resource.
Overview
Name | usages |
Type | Resource |
Id | azure.log_analytics.usages |
Fields
Name | Datatype | Description |
---|---|---|
name | object | The name of a metric. |
currentValue | number | The current value of the metric. |
limit | number | The quota limit for the metric. |
nextResetTime | string | 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
Name | Accessible by | Required Params | Description |
---|---|---|---|
list | SELECT | resourceGroupName, subscriptionId, workspaceName | Gets a list of usage metrics for a workspace. |
SELECT
examples
Gets a list of usage metrics for a workspace.
SELECT
name,
currentValue,
limit,
nextResetTime,
quotaPeriod,
unit
FROM azure.log_analytics.usages
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';