Skip to main content

usages

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

Overview

Nameusages
TypeResource
Idazure.log_analytics.usages

Fields

NameDatatypeDescription
nameobjectThe name of a metric.
currentValuenumberThe current value of the metric.
limitnumberThe quota limit for the metric.
nextResetTimestringThe time that the metric's value will reset.
quotaPeriodstringThe quota period that determines the length of time between value resets.
unitstringThe units used for the metric.

Methods

NameAccessible byRequired ParamsDescription
listSELECTresourceGroupName, subscriptionId, workspaceNameGets 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 }}';