Skip to main content

usage_metrics

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

Overview

Nameusage_metrics
TypeResource
Idazure_extras.iot_firmware_defense.usage_metrics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
monthlyFirmwareUploadCountintegerThe number of firmware analysis jobs that have been submitted in the current month. Required.
provisioningStatestringThe status of the last operation. Known values are: "Succeeded", "Failed", "Canceled", "Pending", "Extracting", and "Analyzing". (Succeeded, Failed, Canceled, Pending, Extracting, Analyzing)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
totalFirmwareCountintegerThe total number of firmwares that are in the workspace. Required.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, name, subscription_idGets monthly usage information for a workspace.
list_by_workspaceselectresource_group_name, workspace_name, subscription_idLists monthly usage information 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
namestringThe Firmware analysis summary name describing the type of summary. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the firmware analysis workspace. Required.

SELECT examples

Gets monthly usage information for a workspace.

SELECT
id,
name,
monthlyFirmwareUploadCount,
provisioningState,
systemData,
totalFirmwareCount,
type
FROM azure_extras.iot_firmware_defense.usage_metrics
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND name = '{{ name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;