Skip to main content

usages

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

Overview

Nameusages
TypeResource
Idazure.log_analytics.usages

Fields

The following fields are returned by SELECT queries:

OK response definition.

NameDatatypeDescription
nameobjectThe name of the metric.
currentValuenumber (double)The current value of the metric.
limitnumber (double)The quota limit for the metric.
nextResetTimestring (date-time)The 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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, workspaceName, subscriptionIdGets 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.

NameDatatypeDescription
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
workspaceNamestringThe name of the 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 }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;