Skip to main content

slis

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

Overview

Nameslis
TypeResource
Idazure.monitor_slis.slis

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.
baselinePropertiesobjectDefines the SLO baseline associated with the SLI. Required.
categorystringSpecifies the category of the SLI, used to classify signals such as Availability and Latency. Required. Known values are: "Availability" and "Latency". (Availability, Latency)
descriptionstringA user-provided description of the SLI, with a maximum length of 1000 characters. Required.
destinationAmwAccountsarrayDestination AMW accounts. Required.
destinationMetricsarrayThe destination Azure Monitor Workspace (AMW) accounts where the SLI emits metrics.
enableAlertbooleanA flag to determine whether alert is enabled. Required.
evaluationTypestringDetermines how the SLI is evaluated—either based on request counts or time windows. Required. Known values are: "WindowBased" and "RequestBased". (WindowBased, RequestBased)
executionStateobjectIndicates the current execution status of the SLI resource in ARM responses.
identityobjectThe managed service identities assigned to this resource.
provisioningStatestringIndicates the provisioning status of the last operation. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
sliPropertiesobjectDefines the SLI properties associated with the SLI. Required.
streamingRuleIdstringThe streaming rule Id associated with the Sli resource.
streamingRuleLastUpdatedTimestampstring (date-time)The streaming rule last updated timestamp associated with the Sli resource.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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
getselectservice_group_name, sli_nameGets an SLI resource.
list_by_parentselectservice_group_nameLists all SLI resources under a parent resource.
create_or_updateinsertservice_group_name, sli_nameCreates or updates an SLI resource.
create_or_updatereplaceservice_group_name, sli_nameCreates or updates an SLI resource.
deletedeleteservice_group_name, sli_nameDeletes an SLI resource.

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
service_group_namestringThe name of the service group. Required.
sli_namestringName of the SLI that is given by the user. Required.

SELECT examples

Gets an SLI resource.

SELECT
id,
name,
baselineProperties,
category,
description,
destinationAmwAccounts,
destinationMetrics,
enableAlert,
evaluationType,
executionState,
identity,
provisioningState,
sliProperties,
streamingRuleId,
streamingRuleLastUpdatedTimestamp,
systemData,
type
FROM azure.monitor_slis.slis
WHERE service_group_name = '{{ service_group_name }}' -- required
AND sli_name = '{{ sli_name }}' -- required
;

INSERT examples

Creates or updates an SLI resource.

INSERT INTO azure.monitor_slis.slis (
properties,
identity,
service_group_name,
sli_name
)
SELECT
'{{ properties }}',
'{{ identity }}',
'{{ service_group_name }}',
'{{ sli_name }}'
RETURNING
id,
name,
identity,
properties,
systemData,
type
;

REPLACE examples

Creates or updates an SLI resource.

REPLACE azure.monitor_slis.slis
SET
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
service_group_name = '{{ service_group_name }}' --required
AND sli_name = '{{ sli_name }}' --required
RETURNING
id,
name,
identity,
properties,
systemData,
type;

DELETE examples

Deletes an SLI resource.

DELETE FROM azure.monitor_slis.slis
WHERE service_group_name = '{{ service_group_name }}' --required
AND sli_name = '{{ sli_name }}' --required
;