diff --git a/Commands/monitor/readme.md b/Commands/monitor/readme.md index 128aab189..7310fc74e 100644 --- a/Commands/monitor/readme.md +++ b/Commands/monitor/readme.md @@ -43,5 +43,8 @@ Manage the Azure Monitor Service. - [private-link-scope](/Commands/monitor/private-link-scope/readme.md) : Manage monitor private link scope resource. +- [sli](/Commands/monitor/sli/readme.md) +: Manage Service Level Indicators (SLIs) in Azure Monitor. + - [tenant-action-group](/Commands/monitor/tenant-action-group/readme.md) : monitor tenant-action-group diff --git a/Commands/monitor/sli/_create.md b/Commands/monitor/sli/_create.md new file mode 100644 index 000000000..ee0384227 --- /dev/null +++ b/Commands/monitor/sli/_create.md @@ -0,0 +1,16 @@ +# [Command] _monitor sli create_ + +Create an SLI resource. + +## Versions + +### [2025-03-01-preview](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlzL3t9/2025-03-01-preview.xml) **Stable** + + + +#### examples + +- CreateSli + ```bash + monitor sli create --service-group-name testSG --sli-name testSli --description Measures the performance characteristics of the GetContosoUsers() API. --category Latency --evaluation-type WindowBased --enable-alert True --destination-amw-accounts "[{resource-id:/subscriptions//resourcegroups//providers/microsoft.monitor/accounts/,identity:/subscriptions//resourcegroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/}]" --baseline-properties "{baseline:{value:99,evaluation-period-days:30,evaluation-calculation-type:CalendarDays}}" --sli-properties "{window-uptime-criteria:{target:95,comparator:gte},signals:{signalSources:[{signalSourceId:A,sourceAmwAccountManagedIdentity:/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity,sourceAmwAccountResourceId:/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAccount,metricNamespace:ContosoMetricsWest,metricName:Stamp1Latency,filters:[{dimensionName:ApiName,operator:eq,value:GetContosoUsers}],spatialAggregation:{type:Average,dimensions:[Region,ResponseCode]},temporalAggregation:{type:Average,windowSizeMinutes:5}},{signalSourceId:B,sourceAmwAccountManagedIdentity:/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity,sourceAmwAccountResourceId:/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAccount,metricNamespace:ContosoMetricsEast,metricName:Stamp2Latency,filters:[{dimensionName:ApiName,operator:eq,value:GetContosoUsers}],spatialAggregation:{type:Average,dimensions:[Region,ResponseCode]},temporalAggregation:{type:Average,windowSizeMinutes:5}}],signalFormula:'(A + B) /2'}}" + ``` diff --git a/Commands/monitor/sli/_delete.md b/Commands/monitor/sli/_delete.md new file mode 100644 index 000000000..475571e31 --- /dev/null +++ b/Commands/monitor/sli/_delete.md @@ -0,0 +1,16 @@ +# [Command] _monitor sli delete_ + +Delete an SLI resource. + +## Versions + +### [2025-03-01-preview](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlzL3t9/2025-03-01-preview.xml) **Stable** + + + +#### examples + +- DeleteSli + ```bash + monitor sli delete --service-group-name testSG --sli-name testSli + ``` diff --git a/Commands/monitor/sli/_list.md b/Commands/monitor/sli/_list.md new file mode 100644 index 000000000..ece892651 --- /dev/null +++ b/Commands/monitor/sli/_list.md @@ -0,0 +1,16 @@ +# [Command] _monitor sli list_ + +List all SLI resources under a parent resource. + +## Versions + +### [2025-03-01-preview](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlz/2025-03-01-preview.xml) **Stable** + + + +#### examples + +- SlisListByParent + ```bash + monitor sli list --service-group-name testSG + ``` diff --git a/Commands/monitor/sli/_show.md b/Commands/monitor/sli/_show.md new file mode 100644 index 000000000..8f1214acb --- /dev/null +++ b/Commands/monitor/sli/_show.md @@ -0,0 +1,16 @@ +# [Command] _monitor sli show_ + +Get an SLI resource. + +## Versions + +### [2025-03-01-preview](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlzL3t9/2025-03-01-preview.xml) **Stable** + + + +#### examples + +- GetSli + ```bash + monitor sli show --service-group-name testSG --sli-name testSli + ``` diff --git a/Commands/monitor/sli/_update.md b/Commands/monitor/sli/_update.md new file mode 100644 index 000000000..47d44225f --- /dev/null +++ b/Commands/monitor/sli/_update.md @@ -0,0 +1,16 @@ +# [Command] _monitor sli update_ + +Update an SLI resource. + +## Versions + +### [2025-03-01-preview](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlzL3t9/2025-03-01-preview.xml) **Stable** + + + +#### examples + +- CreateSli + ```bash + monitor sli update --service-group-name testSG --sli-name testSli + ``` diff --git a/Commands/monitor/sli/readme.md b/Commands/monitor/sli/readme.md new file mode 100644 index 000000000..82a5e6b98 --- /dev/null +++ b/Commands/monitor/sli/readme.md @@ -0,0 +1,22 @@ +# [Group] _monitor sli_ + +Manage Service Level Indicators (SLIs) in Azure Monitor. + +Only user-assigned managed identities (UAMIs) are supported. System-assigned identity is not supported by the SLI service. The service requires the same set of UAMIs to be referenced consistently in three places (`identity.userAssignedIdentities`, every `destinationAmwAccounts[].identity`, and every signal source's `sourceAmwAccountManagedIdentity`); they must be updated together in a single `az monitor sli update` invocation using `--set/--add/--remove`. See `az monitor sli --help` for the rotation recipe. + +## Commands + +- [create](/Commands/monitor/sli/_create.md) +: Create an SLI resource. + +- [delete](/Commands/monitor/sli/_delete.md) +: Delete an SLI resource. + +- [list](/Commands/monitor/sli/_list.md) +: List all SLI resources under a parent resource. + +- [show](/Commands/monitor/sli/_show.md) +: Get an SLI resource. + +- [update](/Commands/monitor/sli/_update.md) +: Update an SLI resource. diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlz/2025-03-01-preview.json b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlz/2025-03-01-preview.json new file mode 100644 index 000000000..a9d6a761e --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlz/2025-03-01-preview.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/providers/microsoft.management/servicegroups/{}/providers/microsoft.monitor/slis", "version": "2025-03-01-preview", "swagger": "mgmt-plane/monitoringservice/ResourceProviders/Microsoft.Monitor/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9zZXJ2aWNlR3JvdXBzL3tzZXJ2aWNlR3JvdXBOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1vbml0b3Ivc2xpcw==/V/MjAyNS0wMy0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "monitor sli", "commands": [{"name": "list", "version": "2025-03-01-preview", "resources": [{"id": "/providers/microsoft.management/servicegroups/{}/providers/microsoft.monitor/slis", "version": "2025-03-01-preview", "swagger": "mgmt-plane/monitoringservice/ResourceProviders/Microsoft.Monitor/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9zZXJ2aWNlR3JvdXBzL3tzZXJ2aWNlR3JvdXBOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1vbml0b3Ivc2xpcw==/V/MjAyNS0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.serviceGroupName", "options": ["service-group-name"], "required": true, "help": {"short": "The name of the service group."}, "format": {"pattern": "^[A-Za-z0-9._()~-]{1,250}$"}}]}], "operations": [{"operationId": "Slis_ListByParent", "http": {"path": "/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.Monitor/slis", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "serviceGroupName", "arg": "$Path.serviceGroupName", "required": true, "format": {"pattern": "^[A-Za-z0-9._()~-]{1,250}$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "required": true, "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/providers/Microsoft.Management/serviceGroups/{}/providers/Microsoft.Monitor/slis/{}"}}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "uuid", "name": "principalId"}, {"readOnly": true, "type": "uuid", "name": "tenantId"}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "SystemAssigned,UserAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"nullable": true, "type": "object", "props": [{"readOnly": true, "type": "uuid", "name": "clientId"}, {"readOnly": true, "type": "uuid", "name": "principalId"}]}}}]}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "baselineProperties", "required": true, "props": [{"type": "object", "name": "baseline", "required": true, "props": [{"type": "string", "name": "evaluationCalculationType", "required": true, "enum": {"items": [{"value": "CalendarDays"}, {"value": "RollingDays"}]}}, {"type": "integer32", "name": "evaluationPeriodDays", "required": true, "format": {"maximum": 90, "minimum": 1}}, {"type": "float32", "name": "value", "required": true, "format": {"maximum": 100.0, "minimum": 0}}]}]}, {"type": "string", "name": "category", "required": true, "enum": {"items": [{"value": "Availability"}, {"value": "Latency"}]}}, {"type": "string", "name": "description", "required": true, "format": {"pattern": "^[\\s\\S]{0,1000}$"}}, {"type": "array", "name": "destinationAmwAccounts", "required": true, "item": {"type": "object", "props": [{"type": "ResourceId", "name": "identity", "required": true}, {"type": "ResourceId", "name": "resourceId", "required": true}]}, "identifiers": ["resourceId"]}, {"readOnly": true, "type": "array", "name": "destinationMetrics", "item": {"type": "object", "props": [{"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace", "required": true}]}, "identifiers": ["metricName", "metricNamespace"]}, {"type": "boolean", "name": "enableAlert", "required": true}, {"type": "string", "name": "evaluationType", "required": true, "enum": {"items": [{"value": "RequestBased"}, {"value": "WindowBased"}]}}, {"readOnly": true, "type": "object", "name": "executionState", "props": [{"type": "string", "name": "message"}, {"type": "string", "name": "state", "required": true}]}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Canceled"}, {"value": "Failed"}, {"value": "Succeeded"}]}}, {"type": "object", "name": "sliProperties", "required": true, "props": [{"type": "object", "name": "goodSignals", "props": [{"type": "string", "name": "signalFormula", "required": true}, {"type": "array", "name": "signalSources", "required": true, "item": {"type": "object", "props": [{"type": "array", "name": "filters", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "dimensionName"}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "contains"}, {"value": "eq"}, {"value": "gt"}, {"value": "gte"}, {"value": "in"}, {"value": "lt"}, {"value": "lte"}, {"value": "ne"}, {"value": "notcontains"}, {"value": "notin"}, {"value": "notstartswith"}, {"value": "startswith"}]}}, {"type": "string", "name": "samplingType", "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Max"}, {"value": "Min"}, {"value": "Sum"}]}}, {"type": "string", "name": "scalarFunction", "enum": {"items": [{"value": "avg"}, {"value": "max"}, {"value": "min"}, {"value": "sum"}]}}, {"type": "string", "name": "value", "required": true}]}, "identifiers": ["value", "operator", "samplingType", "dimensionName", "scalarFunction"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace", "required": true}, {"type": "string", "name": "signalSourceId", "required": true}, {"type": "ResourceId", "name": "sourceAmwAccountManagedIdentity", "required": true}, {"type": "ResourceId", "name": "sourceAmwAccountResourceId", "required": true}, {"type": "object", "name": "spatialAggregation", "required": true, "props": [{"type": "array", "name": "dimensions", "required": true, "item": {"type": "string"}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Max"}, {"value": "Min"}, {"value": "Sum"}]}}]}, {"type": "object", "name": "temporalAggregation", "required": true, "props": [{"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Delta"}, {"value": "IDelta"}, {"value": "IRate"}, {"value": "Increase"}, {"value": "Max"}, {"value": "Min"}, {"value": "Rate"}, {"value": "Sum"}]}}, {"type": "integer32", "name": "windowSizeMinutes"}]}]}, "identifiers": ["signalSourceId"]}], "cls": "Signal_read"}, {"type": "@Signal_read", "name": "signals"}, {"type": "@Signal_read", "name": "totalSignals"}, {"type": "object", "name": "windowUptimeCriteria", "props": [{"type": "string", "name": "comparator", "required": true, "enum": {"items": [{"value": "gt"}, {"value": "gte"}, {"value": "lt"}, {"value": "lte"}]}}, {"type": "float32", "name": "target", "required": true}]}]}, {"readOnly": true, "type": "string", "name": "streamingRuleId"}, {"readOnly": true, "type": "dateTime", "name": "streamingRuleLastUpdatedTimestamp", "format": {"protocol": "iso"}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlz/2025-03-01-preview.xml b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlz/2025-03-01-preview.xml new file mode 100644 index 000000000..ec55334ae --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlz/2025-03-01-preview.xml @@ -0,0 +1,261 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlzL3t9/2025-03-01-preview.json b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlzL3t9/2025-03-01-preview.json new file mode 100644 index 000000000..0e395660a --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlzL3t9/2025-03-01-preview.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/providers/microsoft.management/servicegroups/{}/providers/microsoft.monitor/slis/{}", "version": "2025-03-01-preview", "swagger": "mgmt-plane/monitoringservice/ResourceProviders/Microsoft.Monitor/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9zZXJ2aWNlR3JvdXBzL3tzZXJ2aWNlR3JvdXBOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1vbml0b3Ivc2xpcy97c2xpTmFtZX0=/V/MjAyNS0wMy0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "monitor sli", "commands": [{"name": "show", "version": "2025-03-01-preview", "resources": [{"id": "/providers/microsoft.management/servicegroups/{}/providers/microsoft.monitor/slis/{}", "version": "2025-03-01-preview", "swagger": "mgmt-plane/monitoringservice/ResourceProviders/Microsoft.Monitor/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9zZXJ2aWNlR3JvdXBzL3tzZXJ2aWNlR3JvdXBOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1vbml0b3Ivc2xpcy97c2xpTmFtZX0=/V/MjAyNS0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.serviceGroupName", "options": ["service-group-name"], "required": true, "help": {"short": "The name of the service group."}, "format": {"pattern": "^[A-Za-z0-9._()~-]{1,250}$"}}, {"type": "string", "var": "$Path.sliName", "options": ["sli-name"], "required": true, "help": {"short": "Name of the SLI that is given by the user."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_()~-]{2,63}$"}}]}], "operations": [{"operationId": "Slis_Get", "http": {"path": "/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.Monitor/slis/{sliName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "serviceGroupName", "arg": "$Path.serviceGroupName", "required": true, "format": {"pattern": "^[A-Za-z0-9._()~-]{1,250}$"}}, {"type": "string", "name": "sliName", "arg": "$Path.sliName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_()~-]{2,63}$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/providers/Microsoft.Management/serviceGroups/{}/providers/Microsoft.Monitor/slis/{}"}}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "uuid", "name": "principalId"}, {"readOnly": true, "type": "uuid", "name": "tenantId"}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "SystemAssigned,UserAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"nullable": true, "type": "object", "props": [{"readOnly": true, "type": "uuid", "name": "clientId"}, {"readOnly": true, "type": "uuid", "name": "principalId"}]}}}]}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "baselineProperties", "required": true, "props": [{"type": "object", "name": "baseline", "required": true, "props": [{"type": "string", "name": "evaluationCalculationType", "required": true, "enum": {"items": [{"value": "CalendarDays"}, {"value": "RollingDays"}]}}, {"type": "integer32", "name": "evaluationPeriodDays", "required": true, "format": {"maximum": 90, "minimum": 1}}, {"type": "float32", "name": "value", "required": true, "format": {"maximum": 100.0, "minimum": 0}}]}]}, {"type": "string", "name": "category", "required": true, "enum": {"items": [{"value": "Availability"}, {"value": "Latency"}]}}, {"type": "string", "name": "description", "required": true, "format": {"pattern": "^[\\s\\S]{0,1000}$"}}, {"type": "array", "name": "destinationAmwAccounts", "required": true, "item": {"type": "object", "props": [{"type": "ResourceId", "name": "identity", "required": true}, {"type": "ResourceId", "name": "resourceId", "required": true}]}, "identifiers": ["resourceId"]}, {"readOnly": true, "type": "array", "name": "destinationMetrics", "item": {"type": "object", "props": [{"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace", "required": true}]}, "identifiers": ["metricName", "metricNamespace"]}, {"type": "boolean", "name": "enableAlert", "required": true}, {"type": "string", "name": "evaluationType", "required": true, "enum": {"items": [{"value": "RequestBased"}, {"value": "WindowBased"}]}}, {"readOnly": true, "type": "object", "name": "executionState", "props": [{"type": "string", "name": "message"}, {"type": "string", "name": "state", "required": true}]}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Canceled"}, {"value": "Failed"}, {"value": "Succeeded"}]}}, {"type": "object", "name": "sliProperties", "required": true, "props": [{"type": "object", "name": "goodSignals", "props": [{"type": "string", "name": "signalFormula", "required": true}, {"type": "array", "name": "signalSources", "required": true, "item": {"type": "object", "props": [{"type": "array", "name": "filters", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "dimensionName"}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "contains"}, {"value": "eq"}, {"value": "gt"}, {"value": "gte"}, {"value": "in"}, {"value": "lt"}, {"value": "lte"}, {"value": "ne"}, {"value": "notcontains"}, {"value": "notin"}, {"value": "notstartswith"}, {"value": "startswith"}]}}, {"type": "string", "name": "samplingType", "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Max"}, {"value": "Min"}, {"value": "Sum"}]}}, {"type": "string", "name": "scalarFunction", "enum": {"items": [{"value": "avg"}, {"value": "max"}, {"value": "min"}, {"value": "sum"}]}}, {"type": "string", "name": "value", "required": true}]}, "identifiers": ["value", "operator", "samplingType", "dimensionName", "scalarFunction"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace", "required": true}, {"type": "string", "name": "signalSourceId", "required": true}, {"type": "ResourceId", "name": "sourceAmwAccountManagedIdentity", "required": true}, {"type": "ResourceId", "name": "sourceAmwAccountResourceId", "required": true}, {"type": "object", "name": "spatialAggregation", "required": true, "props": [{"type": "array", "name": "dimensions", "required": true, "item": {"type": "string"}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Max"}, {"value": "Min"}, {"value": "Sum"}]}}]}, {"type": "object", "name": "temporalAggregation", "required": true, "props": [{"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Delta"}, {"value": "IDelta"}, {"value": "IRate"}, {"value": "Increase"}, {"value": "Max"}, {"value": "Min"}, {"value": "Rate"}, {"value": "Sum"}]}}, {"type": "integer32", "name": "windowSizeMinutes"}]}]}, "identifiers": ["signalSourceId"]}], "cls": "Signal_read"}, {"type": "@Signal_read", "name": "signals"}, {"type": "@Signal_read", "name": "totalSignals"}, {"type": "object", "name": "windowUptimeCriteria", "props": [{"type": "string", "name": "comparator", "required": true, "enum": {"items": [{"value": "gt"}, {"value": "gte"}, {"value": "lt"}, {"value": "lte"}]}}, {"type": "float32", "name": "target", "required": true}]}]}, {"readOnly": true, "type": "string", "name": "streamingRuleId"}, {"readOnly": true, "type": "dateTime", "name": "streamingRuleLastUpdatedTimestamp", "format": {"protocol": "iso"}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "delete", "version": "2025-03-01-preview", "resources": [{"id": "/providers/microsoft.management/servicegroups/{}/providers/microsoft.monitor/slis/{}", "version": "2025-03-01-preview", "swagger": "mgmt-plane/monitoringservice/ResourceProviders/Microsoft.Monitor/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9zZXJ2aWNlR3JvdXBzL3tzZXJ2aWNlR3JvdXBOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1vbml0b3Ivc2xpcy97c2xpTmFtZX0=/V/MjAyNS0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.serviceGroupName", "options": ["service-group-name"], "required": true, "help": {"short": "The name of the service group."}, "format": {"pattern": "^[A-Za-z0-9._()~-]{1,250}$"}}, {"type": "string", "var": "$Path.sliName", "options": ["sli-name"], "required": true, "help": {"short": "Name of the SLI that is given by the user."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_()~-]{2,63}$"}}]}], "operations": [{"operationId": "Slis_Delete", "http": {"path": "/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.Monitor/slis/{sliName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "serviceGroupName", "arg": "$Path.serviceGroupName", "required": true, "format": {"pattern": "^[A-Za-z0-9._()~-]{1,250}$"}}, {"type": "string", "name": "sliName", "arg": "$Path.sliName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_()~-]{2,63}$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "confirmation": "Are you sure you want to perform this operation?"}, {"name": "create", "version": "2025-03-01-preview", "resources": [{"id": "/providers/microsoft.management/servicegroups/{}/providers/microsoft.monitor/slis/{}", "version": "2025-03-01-preview", "swagger": "mgmt-plane/monitoringservice/ResourceProviders/Microsoft.Monitor/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9zZXJ2aWNlR3JvdXBzL3tzZXJ2aWNlR3JvdXBOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1vbml0b3Ivc2xpcy97c2xpTmFtZX0=/V/MjAyNS0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.serviceGroupName", "options": ["service-group-name"], "required": true, "help": {"short": "The name of the service group."}, "format": {"pattern": "^[A-Za-z0-9._()~-]{1,250}$"}}, {"type": "string", "var": "$Path.sliName", "options": ["sli-name"], "required": true, "help": {"short": "Name of the SLI that is given by the user."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_()~-]{2,63}$"}}]}, {"name": "Identity", "args": [{"blank": {"value": "True"}, "type": "string", "var": "$resource.identity.systemAssigned", "options": ["system-assigned", "mi-system-assigned"], "group": "Identity", "help": {"short": "Set the system managed identity."}}, {"type": "string", "var": "$resource.identity.type", "options": ["type"], "hide": true, "group": "Identity", "help": {"short": "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed)."}, "enum": {"items": [{"name": "None", "value": "None"}, {"name": "SystemAssigned", "value": "SystemAssigned"}, {"name": "SystemAssigned,UserAssigned", "value": "SystemAssigned,UserAssigned"}, {"name": "UserAssigned", "value": "UserAssigned"}]}}, {"blank": {"value": []}, "type": "array", "var": "$resource.identity.userAssigned", "options": ["user-assigned", "mi-user-assigned"], "group": "Identity", "help": {"short": "Set the user managed identities."}, "item": {"type": "string"}}, {"type": "object", "var": "$resource.identity.userAssignedIdentities", "options": ["user-assigned-identities"], "hide": true, "group": "Identity", "help": {"short": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests."}, "additionalProps": {"item": {"nullable": true, "blank": {"value": {}}, "type": "object"}}}]}, {"name": "Properties", "args": [{"type": "object", "var": "$resource.properties.baselineProperties", "options": ["baseline-properties"], "group": "Properties", "help": {"short": "Defines the SLO baseline associated with the SLI."}, "args": [{"type": "object", "var": "$resource.properties.baselineProperties.baseline", "options": ["baseline"], "required": true, "help": {"short": "Defines the baseline target, which is compared against the SLI value to determine compliance."}, "args": [{"type": "string", "var": "$resource.properties.baselineProperties.baseline.evaluationCalculationType", "options": ["evaluation-calculation-type"], "required": true, "help": {"short": "Specifies how evaluation is calculated, either based on calendar days or a rolling window."}, "enum": {"items": [{"name": "CalendarDays", "value": "CalendarDays"}, {"name": "RollingDays", "value": "RollingDays"}]}}, {"type": "integer32", "var": "$resource.properties.baselineProperties.baseline.evaluationPeriodDays", "options": ["evaluation-period-days"], "required": true, "help": {"short": "The time frame (in days) used for SLI evaluation."}, "format": {"maximum": 90, "minimum": 1}}, {"type": "float32", "var": "$resource.properties.baselineProperties.baseline.value", "options": ["value"], "required": true, "help": {"short": "The user-defined or Azure-defined target value used for comparison against the SLI value."}, "format": {"maximum": 100.0, "minimum": 0}}]}]}, {"type": "string", "var": "$resource.properties.category", "options": ["category"], "group": "Properties", "help": {"short": "Specifies the category of the SLI, used to classify signals such as Availability and Latency."}, "enum": {"items": [{"name": "Availability", "value": "Availability"}, {"name": "Latency", "value": "Latency"}]}}, {"type": "string", "var": "$resource.properties.description", "options": ["description"], "group": "Properties", "help": {"short": "A user-provided description of the SLI, with a maximum length of 1000 characters."}, "format": {"pattern": "^[\\s\\S]{0,1000}$"}}, {"type": "array", "var": "$resource.properties.destinationAmwAccounts", "options": ["destination-amw-accounts"], "group": "Properties", "help": {"short": "Destination AMW accounts."}, "item": {"type": "object", "args": [{"type": "ResourceId", "var": "$resource.properties.destinationAmwAccounts[].identity", "options": ["identity"], "required": true, "help": {"short": "The ARM resource ID of the managed identity with access to the source account."}}, {"type": "ResourceId", "var": "$resource.properties.destinationAmwAccounts[].resourceId", "options": ["resource-id"], "required": true, "help": {"short": "The ARM resource ID of the account where metrics are emitted."}}]}}, {"type": "boolean", "var": "$resource.properties.enableAlert", "options": ["enable-alert"], "group": "Properties", "help": {"short": "A flag to determine whether alert is enabled."}}, {"type": "string", "var": "$resource.properties.evaluationType", "options": ["evaluation-type"], "group": "Properties", "help": {"short": "Determines how the SLI is evaluated\u00e2\u20ac\u201deither based on request counts or time windows."}, "enum": {"items": [{"name": "RequestBased", "value": "RequestBased"}, {"name": "WindowBased", "value": "WindowBased"}]}}, {"type": "object", "var": "$resource.properties.sliProperties", "options": ["sli-properties"], "group": "Properties", "help": {"short": "Defines the SLI properties associated with the SLI."}, "args": [{"type": "object", "var": "$resource.properties.sliProperties.goodSignals", "options": ["good-signals"], "help": {"short": "Represents good signals used in request-based SLI calculations."}, "args": [{"type": "string", "var": "@Signal_create.signalFormula", "options": ["signal-formula"], "required": true, "help": {"short": "Mathematical formula used to combine multiple metrics."}}, {"type": "array", "var": "@Signal_create.signalSources", "options": ["signal-sources"], "required": true, "help": {"short": "Sources of metrics used for SLIs."}, "item": {"type": "object", "args": [{"type": "array", "var": "@Signal_create.signalSources[].filters", "options": ["filters"], "required": true, "help": {"short": "Filters applied to modify signal values."}, "item": {"type": "object", "args": [{"type": "string", "var": "@Signal_create.signalSources[].filters[].dimensionName", "options": ["dimension-name"], "help": {"short": "Dimension name used in filtering."}}, {"type": "string", "var": "@Signal_create.signalSources[].filters[].operator", "options": ["operator"], "required": true, "help": {"short": "Operator used in the filtering condition."}, "enum": {"items": [{"name": "contains", "value": "contains"}, {"name": "eq", "value": "eq"}, {"name": "gt", "value": "gt"}, {"name": "gte", "value": "gte"}, {"name": "in", "value": "in"}, {"name": "lt", "value": "lt"}, {"name": "lte", "value": "lte"}, {"name": "ne", "value": "ne"}, {"name": "notcontains", "value": "notcontains"}, {"name": "notin", "value": "notin"}, {"name": "notstartswith", "value": "notstartswith"}, {"name": "startswith", "value": "startswith"}]}}, {"type": "string", "var": "@Signal_create.signalSources[].filters[].samplingType", "options": ["sampling-type"], "help": {"short": "Defines the sampling type."}, "enum": {"items": [{"name": "Average", "value": "Average"}, {"name": "Count", "value": "Count"}, {"name": "Max", "value": "Max"}, {"name": "Min", "value": "Min"}, {"name": "Sum", "value": "Sum"}]}}, {"type": "string", "var": "@Signal_create.signalSources[].filters[].scalarFunction", "options": ["scalar-function"], "help": {"short": "Scalar function applied for filtering."}, "enum": {"items": [{"name": "avg", "value": "avg"}, {"name": "max", "value": "max"}, {"name": "min", "value": "min"}, {"name": "sum", "value": "sum"}]}}, {"type": "string", "var": "@Signal_create.signalSources[].filters[].value", "options": ["value"], "required": true, "help": {"short": "Value used in filtering. For most operators (eq, ne, lt, lte, gt, gte, startswith, notstartswith, contains, notcontains) this is a single value (for example \"GetContosoUsers\"). For the `in` and `notin` operators, multiple values must be joined by the delimiter `^^` (for example \"east^^west^^north\")."}}]}}, {"type": "string", "var": "@Signal_create.signalSources[].metricName", "options": ["metric-name"], "required": true, "help": {"short": "Name of the metric."}}, {"type": "string", "var": "@Signal_create.signalSources[].metricNamespace", "options": ["metric-namespace"], "required": true, "help": {"short": "Namespace of the metric."}}, {"type": "string", "var": "@Signal_create.signalSources[].signalSourceId", "options": ["signal-source-id"], "required": true, "help": {"short": "Unique identifier for the signal source."}}, {"type": "ResourceId", "var": "@Signal_create.signalSources[].sourceAmwAccountManagedIdentity", "options": ["source-amw-account-managed-identity"], "required": true, "help": {"short": "Managed identity for authenticating the signal source."}}, {"type": "ResourceId", "var": "@Signal_create.signalSources[].sourceAmwAccountResourceId", "options": ["source-amw-account-resource-id"], "required": true, "help": {"short": "Resource ID of the source AMW account."}}, {"type": "object", "var": "@Signal_create.signalSources[].spatialAggregation", "options": ["spatial-aggregation"], "required": true, "help": {"short": "Defines how measurements are aggregated across multiple time series."}, "args": [{"type": "array", "var": "@Signal_create.signalSources[].spatialAggregation.dimensions", "options": ["dimensions"], "required": true, "help": {"short": "Dimensions considered for spatial aggregation."}, "item": {"type": "string"}}, {"type": "string", "var": "@Signal_create.signalSources[].spatialAggregation.type", "options": ["type"], "required": true, "help": {"short": "Type of spatial aggregation."}, "enum": {"items": [{"name": "Average", "value": "Average"}, {"name": "Count", "value": "Count"}, {"name": "Max", "value": "Max"}, {"name": "Min", "value": "Min"}, {"name": "Sum", "value": "Sum"}]}}]}, {"type": "object", "var": "@Signal_create.signalSources[].temporalAggregation", "options": ["temporal-aggregation"], "required": true, "help": {"short": "Defines how measurements are aggregated over a specific time window within the same time series."}, "args": [{"type": "string", "var": "@Signal_create.signalSources[].temporalAggregation.type", "options": ["type"], "required": true, "help": {"short": "Type of temporal aggregation."}, "enum": {"items": [{"name": "Average", "value": "Average"}, {"name": "Delta", "value": "Delta"}, {"name": "IDelta", "value": "IDelta"}, {"name": "IRate", "value": "IRate"}, {"name": "Increase", "value": "Increase"}, {"name": "Max", "value": "Max"}, {"name": "Min", "value": "Min"}, {"name": "Rate", "value": "Rate"}, {"name": "Sum", "value": "Sum"}]}}, {"type": "integer32", "var": "@Signal_create.signalSources[].temporalAggregation.windowSizeMinutes", "options": ["window-size-minutes"], "help": {"short": "Time window size for aggregation, in minutes."}}]}]}}], "cls": "Signal_create"}, {"type": "@Signal_create", "var": "$resource.properties.sliProperties.signals", "options": ["signals"], "help": {"short": "Signals used for window-based SLI calculations."}}, {"type": "@Signal_create", "var": "$resource.properties.sliProperties.totalSignals", "options": ["total-signals"], "help": {"short": "Represents total signals used in request-based SLI calculations."}}, {"type": "object", "var": "$resource.properties.sliProperties.windowUptimeCriteria", "options": ["window-uptime-criteria"], "help": {"short": "Defines the uptime criteria for window-based SLIs."}, "args": [{"type": "string", "var": "$resource.properties.sliProperties.windowUptimeCriteria.comparator", "options": ["comparator"], "required": true, "help": {"short": "Comparison operator used for uptime evaluation."}, "enum": {"items": [{"name": "gt", "value": "gt"}, {"name": "gte", "value": "gte"}, {"name": "lt", "value": "lt"}, {"name": "lte", "value": "lte"}]}}, {"type": "float32", "var": "$resource.properties.sliProperties.windowUptimeCriteria.target", "options": ["target"], "required": true, "help": {"short": "Threshold value used to determine uptime."}}]}]}]}], "operations": [{"operationId": "Slis_CreateOrUpdate", "http": {"path": "/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.Monitor/slis/{sliName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "serviceGroupName", "arg": "$Path.serviceGroupName", "required": true, "format": {"pattern": "^[A-Za-z0-9._()~-]{1,250}$"}}, {"type": "string", "name": "sliName", "arg": "$Path.sliName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_()~-]{2,63}$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "resource", "required": true, "props": [{"type": "IdentityObject", "name": "identity", "props": [{"type": "string", "name": "type", "arg": "$resource.identity.type", "required": true, "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "SystemAssigned,UserAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "arg": "$resource.identity.userAssignedIdentities", "additionalProps": {"item": {"nullable": true, "type": "object"}}}], "userAssigned": {"action": "create", "type": "array", "name": "userAssigned", "arg": "$resource.identity.userAssigned", "item": {"action": "create", "type": "string"}}, "systemAssigned": {"action": "create", "type": "string", "name": "systemAssigned", "arg": "$resource.identity.systemAssigned"}}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "baselineProperties", "arg": "$resource.properties.baselineProperties", "required": true, "props": [{"type": "object", "name": "baseline", "arg": "$resource.properties.baselineProperties.baseline", "required": true, "props": [{"type": "string", "name": "evaluationCalculationType", "arg": "$resource.properties.baselineProperties.baseline.evaluationCalculationType", "required": true, "enum": {"items": [{"value": "CalendarDays"}, {"value": "RollingDays"}]}}, {"type": "integer32", "name": "evaluationPeriodDays", "arg": "$resource.properties.baselineProperties.baseline.evaluationPeriodDays", "required": true, "format": {"maximum": 90, "minimum": 1}}, {"type": "float32", "name": "value", "arg": "$resource.properties.baselineProperties.baseline.value", "required": true, "format": {"maximum": 100.0, "minimum": 0}}]}]}, {"type": "string", "name": "category", "arg": "$resource.properties.category", "required": true, "enum": {"items": [{"value": "Availability"}, {"value": "Latency"}]}}, {"type": "string", "name": "description", "arg": "$resource.properties.description", "required": true, "format": {"pattern": "^[\\s\\S]{0,1000}$"}}, {"type": "array", "name": "destinationAmwAccounts", "arg": "$resource.properties.destinationAmwAccounts", "required": true, "item": {"type": "object", "props": [{"type": "ResourceId", "name": "identity", "arg": "$resource.properties.destinationAmwAccounts[].identity", "required": true}, {"type": "ResourceId", "name": "resourceId", "arg": "$resource.properties.destinationAmwAccounts[].resourceId", "required": true}]}, "identifiers": ["resourceId"]}, {"type": "boolean", "name": "enableAlert", "arg": "$resource.properties.enableAlert", "required": true}, {"type": "string", "name": "evaluationType", "arg": "$resource.properties.evaluationType", "required": true, "enum": {"items": [{"value": "RequestBased"}, {"value": "WindowBased"}]}}, {"type": "object", "name": "sliProperties", "arg": "$resource.properties.sliProperties", "required": true, "props": [{"type": "object", "name": "goodSignals", "arg": "$resource.properties.sliProperties.goodSignals", "props": [{"type": "string", "name": "signalFormula", "arg": "@Signal_create.signalFormula", "required": true}, {"type": "array", "name": "signalSources", "arg": "@Signal_create.signalSources", "required": true, "item": {"type": "object", "props": [{"type": "array", "name": "filters", "arg": "@Signal_create.signalSources[].filters", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "dimensionName", "arg": "@Signal_create.signalSources[].filters[].dimensionName"}, {"type": "string", "name": "operator", "arg": "@Signal_create.signalSources[].filters[].operator", "required": true, "enum": {"items": [{"value": "contains"}, {"value": "eq"}, {"value": "gt"}, {"value": "gte"}, {"value": "in"}, {"value": "lt"}, {"value": "lte"}, {"value": "ne"}, {"value": "notcontains"}, {"value": "notin"}, {"value": "notstartswith"}, {"value": "startswith"}]}}, {"type": "string", "name": "samplingType", "arg": "@Signal_create.signalSources[].filters[].samplingType", "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Max"}, {"value": "Min"}, {"value": "Sum"}]}}, {"type": "string", "name": "scalarFunction", "arg": "@Signal_create.signalSources[].filters[].scalarFunction", "enum": {"items": [{"value": "avg"}, {"value": "max"}, {"value": "min"}, {"value": "sum"}]}}, {"type": "string", "name": "value", "arg": "@Signal_create.signalSources[].filters[].value", "required": true}]}, "identifiers": ["value", "operator", "samplingType", "dimensionName", "scalarFunction"]}, {"type": "string", "name": "metricName", "arg": "@Signal_create.signalSources[].metricName", "required": true}, {"type": "string", "name": "metricNamespace", "arg": "@Signal_create.signalSources[].metricNamespace", "required": true}, {"type": "string", "name": "signalSourceId", "arg": "@Signal_create.signalSources[].signalSourceId", "required": true}, {"type": "ResourceId", "name": "sourceAmwAccountManagedIdentity", "arg": "@Signal_create.signalSources[].sourceAmwAccountManagedIdentity", "required": true}, {"type": "ResourceId", "name": "sourceAmwAccountResourceId", "arg": "@Signal_create.signalSources[].sourceAmwAccountResourceId", "required": true}, {"type": "object", "name": "spatialAggregation", "arg": "@Signal_create.signalSources[].spatialAggregation", "required": true, "props": [{"type": "array", "name": "dimensions", "arg": "@Signal_create.signalSources[].spatialAggregation.dimensions", "required": true, "item": {"type": "string"}}, {"type": "string", "name": "type", "arg": "@Signal_create.signalSources[].spatialAggregation.type", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Max"}, {"value": "Min"}, {"value": "Sum"}]}}]}, {"type": "object", "name": "temporalAggregation", "arg": "@Signal_create.signalSources[].temporalAggregation", "required": true, "props": [{"type": "string", "name": "type", "arg": "@Signal_create.signalSources[].temporalAggregation.type", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Delta"}, {"value": "IDelta"}, {"value": "IRate"}, {"value": "Increase"}, {"value": "Max"}, {"value": "Min"}, {"value": "Rate"}, {"value": "Sum"}]}}, {"type": "integer32", "name": "windowSizeMinutes", "arg": "@Signal_create.signalSources[].temporalAggregation.windowSizeMinutes"}]}]}, "identifiers": ["signalSourceId"]}], "cls": "Signal_create"}, {"type": "@Signal_create", "name": "signals", "arg": "$resource.properties.sliProperties.signals"}, {"type": "@Signal_create", "name": "totalSignals", "arg": "$resource.properties.sliProperties.totalSignals"}, {"type": "object", "name": "windowUptimeCriteria", "arg": "$resource.properties.sliProperties.windowUptimeCriteria", "props": [{"type": "string", "name": "comparator", "arg": "$resource.properties.sliProperties.windowUptimeCriteria.comparator", "required": true, "enum": {"items": [{"value": "gt"}, {"value": "gte"}, {"value": "lt"}, {"value": "lte"}]}}, {"type": "float32", "name": "target", "arg": "$resource.properties.sliProperties.windowUptimeCriteria.target", "required": true}]}]}]}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/providers/Microsoft.Management/serviceGroups/{}/providers/Microsoft.Monitor/slis/{}"}}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "uuid", "name": "principalId"}, {"readOnly": true, "type": "uuid", "name": "tenantId"}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "SystemAssigned,UserAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"nullable": true, "type": "object", "props": [{"readOnly": true, "type": "uuid", "name": "clientId"}, {"readOnly": true, "type": "uuid", "name": "principalId"}]}}}]}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "baselineProperties", "required": true, "props": [{"type": "object", "name": "baseline", "required": true, "props": [{"type": "string", "name": "evaluationCalculationType", "required": true, "enum": {"items": [{"value": "CalendarDays"}, {"value": "RollingDays"}]}}, {"type": "integer32", "name": "evaluationPeriodDays", "required": true, "format": {"maximum": 90, "minimum": 1}}, {"type": "float32", "name": "value", "required": true, "format": {"maximum": 100.0, "minimum": 0}}]}]}, {"type": "string", "name": "category", "required": true, "enum": {"items": [{"value": "Availability"}, {"value": "Latency"}]}}, {"type": "string", "name": "description", "required": true, "format": {"pattern": "^[\\s\\S]{0,1000}$"}}, {"type": "array", "name": "destinationAmwAccounts", "required": true, "item": {"type": "object", "props": [{"type": "ResourceId", "name": "identity", "required": true}, {"type": "ResourceId", "name": "resourceId", "required": true}]}, "identifiers": ["resourceId"]}, {"readOnly": true, "type": "array", "name": "destinationMetrics", "item": {"type": "object", "props": [{"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace", "required": true}]}, "identifiers": ["metricName", "metricNamespace"]}, {"type": "boolean", "name": "enableAlert", "required": true}, {"type": "string", "name": "evaluationType", "required": true, "enum": {"items": [{"value": "RequestBased"}, {"value": "WindowBased"}]}}, {"readOnly": true, "type": "object", "name": "executionState", "props": [{"type": "string", "name": "message"}, {"type": "string", "name": "state", "required": true}]}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Canceled"}, {"value": "Failed"}, {"value": "Succeeded"}]}}, {"type": "object", "name": "sliProperties", "required": true, "props": [{"type": "object", "name": "goodSignals", "props": [{"type": "string", "name": "signalFormula", "required": true}, {"type": "array", "name": "signalSources", "required": true, "item": {"type": "object", "props": [{"type": "array", "name": "filters", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "dimensionName"}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "contains"}, {"value": "eq"}, {"value": "gt"}, {"value": "gte"}, {"value": "in"}, {"value": "lt"}, {"value": "lte"}, {"value": "ne"}, {"value": "notcontains"}, {"value": "notin"}, {"value": "notstartswith"}, {"value": "startswith"}]}}, {"type": "string", "name": "samplingType", "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Max"}, {"value": "Min"}, {"value": "Sum"}]}}, {"type": "string", "name": "scalarFunction", "enum": {"items": [{"value": "avg"}, {"value": "max"}, {"value": "min"}, {"value": "sum"}]}}, {"type": "string", "name": "value", "required": true}]}, "identifiers": ["value", "operator", "samplingType", "dimensionName", "scalarFunction"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace", "required": true}, {"type": "string", "name": "signalSourceId", "required": true}, {"type": "ResourceId", "name": "sourceAmwAccountManagedIdentity", "required": true}, {"type": "ResourceId", "name": "sourceAmwAccountResourceId", "required": true}, {"type": "object", "name": "spatialAggregation", "required": true, "props": [{"type": "array", "name": "dimensions", "required": true, "item": {"type": "string"}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Max"}, {"value": "Min"}, {"value": "Sum"}]}}]}, {"type": "object", "name": "temporalAggregation", "required": true, "props": [{"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Delta"}, {"value": "IDelta"}, {"value": "IRate"}, {"value": "Increase"}, {"value": "Max"}, {"value": "Min"}, {"value": "Rate"}, {"value": "Sum"}]}}, {"type": "integer32", "name": "windowSizeMinutes"}]}]}, "identifiers": ["signalSourceId"]}], "cls": "Signal_read"}, {"type": "@Signal_read", "name": "signals"}, {"type": "@Signal_read", "name": "totalSignals"}, {"type": "object", "name": "windowUptimeCriteria", "props": [{"type": "string", "name": "comparator", "required": true, "enum": {"items": [{"value": "gt"}, {"value": "gte"}, {"value": "lt"}, {"value": "lte"}]}}, {"type": "float32", "name": "target", "required": true}]}]}, {"readOnly": true, "type": "string", "name": "streamingRuleId"}, {"readOnly": true, "type": "dateTime", "name": "streamingRuleLastUpdatedTimestamp", "format": {"protocol": "iso"}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2025-03-01-preview", "resources": [{"id": "/providers/microsoft.management/servicegroups/{}/providers/microsoft.monitor/slis/{}", "version": "2025-03-01-preview", "swagger": "mgmt-plane/monitoringservice/ResourceProviders/Microsoft.Monitor/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9zZXJ2aWNlR3JvdXBzL3tzZXJ2aWNlR3JvdXBOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1vbml0b3Ivc2xpcy97c2xpTmFtZX0=/V/MjAyNS0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.serviceGroupName", "options": ["service-group-name"], "required": true, "help": {"short": "The name of the service group."}, "format": {"pattern": "^[A-Za-z0-9._()~-]{1,250}$"}}, {"type": "string", "var": "$Path.sliName", "options": ["sli-name"], "required": true, "help": {"short": "Name of the SLI that is given by the user."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_()~-]{2,63}$"}}]}, {"name": "Identity", "args": [{"type": "string", "var": "$resource.identity.type", "options": ["type"], "hide": true, "group": "Identity", "help": {"short": "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed)."}, "enum": {"items": [{"name": "None", "value": "None"}, {"name": "SystemAssigned", "value": "SystemAssigned"}, {"name": "SystemAssigned,UserAssigned", "value": "SystemAssigned,UserAssigned"}, {"name": "UserAssigned", "value": "UserAssigned"}]}}, {"nullable": true, "type": "object", "var": "$resource.identity.userAssignedIdentities", "options": ["user-assigned-identities"], "hide": true, "group": "Identity", "help": {"short": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests."}, "additionalProps": {"item": {"nullable": true, "blank": {"value": {}}, "type": "object"}}}]}, {"name": "Properties", "args": [{"type": "object", "var": "$resource.properties.baselineProperties", "options": ["baseline-properties"], "group": "Properties", "help": {"short": "Defines the SLO baseline associated with the SLI."}, "args": [{"type": "object", "var": "$resource.properties.baselineProperties.baseline", "options": ["baseline"], "help": {"short": "Defines the baseline target, which is compared against the SLI value to determine compliance."}, "args": [{"type": "string", "var": "$resource.properties.baselineProperties.baseline.evaluationCalculationType", "options": ["evaluation-calculation-type"], "help": {"short": "Specifies how evaluation is calculated, either based on calendar days or a rolling window."}, "enum": {"items": [{"name": "CalendarDays", "value": "CalendarDays"}, {"name": "RollingDays", "value": "RollingDays"}]}}, {"type": "integer32", "var": "$resource.properties.baselineProperties.baseline.evaluationPeriodDays", "options": ["evaluation-period-days"], "help": {"short": "The time frame (in days) used for SLI evaluation."}, "format": {"maximum": 90, "minimum": 1}}, {"type": "float32", "var": "$resource.properties.baselineProperties.baseline.value", "options": ["value"], "help": {"short": "The user-defined or Azure-defined target value used for comparison against the SLI value."}, "format": {"maximum": 100.0, "minimum": 0}}]}]}, {"type": "string", "var": "$resource.properties.category", "options": ["category"], "group": "Properties", "help": {"short": "Specifies the category of the SLI, used to classify signals such as Availability and Latency."}, "enum": {"items": [{"name": "Availability", "value": "Availability"}, {"name": "Latency", "value": "Latency"}]}}, {"type": "string", "var": "$resource.properties.description", "options": ["description"], "group": "Properties", "help": {"short": "A user-provided description of the SLI, with a maximum length of 1000 characters."}, "format": {"pattern": "^[\\s\\S]{0,1000}$"}}, {"type": "array", "var": "$resource.properties.destinationAmwAccounts", "options": ["destination-amw-accounts"], "group": "Properties", "help": {"short": "Destination AMW accounts."}, "item": {"nullable": true, "type": "object", "args": [{"type": "ResourceId", "var": "$resource.properties.destinationAmwAccounts[].identity", "options": ["identity"], "help": {"short": "The ARM resource ID of the managed identity with access to the source account."}}, {"type": "ResourceId", "var": "$resource.properties.destinationAmwAccounts[].resourceId", "options": ["resource-id"], "help": {"short": "The ARM resource ID of the account where metrics are emitted."}}]}}, {"type": "boolean", "var": "$resource.properties.enableAlert", "options": ["enable-alert"], "group": "Properties", "help": {"short": "A flag to determine whether alert is enabled."}}, {"type": "string", "var": "$resource.properties.evaluationType", "options": ["evaluation-type"], "group": "Properties", "help": {"short": "Determines how the SLI is evaluated\u00e2\u20ac\u201deither based on request counts or time windows."}, "enum": {"items": [{"name": "RequestBased", "value": "RequestBased"}, {"name": "WindowBased", "value": "WindowBased"}]}}, {"type": "object", "var": "$resource.properties.sliProperties", "options": ["sli-properties"], "group": "Properties", "help": {"short": "Defines the SLI properties associated with the SLI."}, "args": [{"nullable": true, "type": "object", "var": "$resource.properties.sliProperties.goodSignals", "options": ["good-signals"], "help": {"short": "Represents good signals used in request-based SLI calculations."}, "args": [{"type": "string", "var": "@Signal_update.signalFormula", "options": ["signal-formula"], "help": {"short": "Mathematical formula used to combine multiple metrics."}}, {"type": "array", "var": "@Signal_update.signalSources", "options": ["signal-sources"], "help": {"short": "Sources of metrics used for SLIs."}, "item": {"nullable": true, "type": "object", "args": [{"type": "array", "var": "@Signal_update.signalSources[].filters", "options": ["filters"], "help": {"short": "Filters applied to modify signal values."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "@Signal_update.signalSources[].filters[].dimensionName", "options": ["dimension-name"], "help": {"short": "Dimension name used in filtering."}}, {"type": "string", "var": "@Signal_update.signalSources[].filters[].operator", "options": ["operator"], "help": {"short": "Operator used in the filtering condition."}, "enum": {"items": [{"name": "contains", "value": "contains"}, {"name": "eq", "value": "eq"}, {"name": "gt", "value": "gt"}, {"name": "gte", "value": "gte"}, {"name": "in", "value": "in"}, {"name": "lt", "value": "lt"}, {"name": "lte", "value": "lte"}, {"name": "ne", "value": "ne"}, {"name": "notcontains", "value": "notcontains"}, {"name": "notin", "value": "notin"}, {"name": "notstartswith", "value": "notstartswith"}, {"name": "startswith", "value": "startswith"}]}}, {"nullable": true, "type": "string", "var": "@Signal_update.signalSources[].filters[].samplingType", "options": ["sampling-type"], "help": {"short": "Defines the sampling type."}, "enum": {"items": [{"name": "Average", "value": "Average"}, {"name": "Count", "value": "Count"}, {"name": "Max", "value": "Max"}, {"name": "Min", "value": "Min"}, {"name": "Sum", "value": "Sum"}]}}, {"nullable": true, "type": "string", "var": "@Signal_update.signalSources[].filters[].scalarFunction", "options": ["scalar-function"], "help": {"short": "Scalar function applied for filtering."}, "enum": {"items": [{"name": "avg", "value": "avg"}, {"name": "max", "value": "max"}, {"name": "min", "value": "min"}, {"name": "sum", "value": "sum"}]}}, {"type": "string", "var": "@Signal_update.signalSources[].filters[].value", "options": ["value"], "help": {"short": "Value used in filtering. For most operators (eq, ne, lt, lte, gt, gte, startswith, notstartswith, contains, notcontains) this is a single value (for example \"GetContosoUsers\"). For the `in` and `notin` operators, multiple values must be joined by the delimiter `^^` (for example \"east^^west^^north\")."}}]}}, {"type": "string", "var": "@Signal_update.signalSources[].metricName", "options": ["metric-name"], "help": {"short": "Name of the metric."}}, {"type": "string", "var": "@Signal_update.signalSources[].metricNamespace", "options": ["metric-namespace"], "help": {"short": "Namespace of the metric."}}, {"type": "string", "var": "@Signal_update.signalSources[].signalSourceId", "options": ["signal-source-id"], "help": {"short": "Unique identifier for the signal source."}}, {"type": "ResourceId", "var": "@Signal_update.signalSources[].sourceAmwAccountManagedIdentity", "options": ["source-amw-account-managed-identity"], "help": {"short": "Managed identity for authenticating the signal source."}}, {"type": "ResourceId", "var": "@Signal_update.signalSources[].sourceAmwAccountResourceId", "options": ["source-amw-account-resource-id"], "help": {"short": "Resource ID of the source AMW account."}}, {"type": "object", "var": "@Signal_update.signalSources[].spatialAggregation", "options": ["spatial-aggregation"], "help": {"short": "Defines how measurements are aggregated across multiple time series."}, "args": [{"type": "array", "var": "@Signal_update.signalSources[].spatialAggregation.dimensions", "options": ["dimensions"], "help": {"short": "Dimensions considered for spatial aggregation."}, "item": {"nullable": true, "type": "string"}}, {"type": "string", "var": "@Signal_update.signalSources[].spatialAggregation.type", "options": ["type"], "help": {"short": "Type of spatial aggregation."}, "enum": {"items": [{"name": "Average", "value": "Average"}, {"name": "Count", "value": "Count"}, {"name": "Max", "value": "Max"}, {"name": "Min", "value": "Min"}, {"name": "Sum", "value": "Sum"}]}}]}, {"type": "object", "var": "@Signal_update.signalSources[].temporalAggregation", "options": ["temporal-aggregation"], "help": {"short": "Defines how measurements are aggregated over a specific time window within the same time series."}, "args": [{"type": "string", "var": "@Signal_update.signalSources[].temporalAggregation.type", "options": ["type"], "help": {"short": "Type of temporal aggregation."}, "enum": {"items": [{"name": "Average", "value": "Average"}, {"name": "Delta", "value": "Delta"}, {"name": "IDelta", "value": "IDelta"}, {"name": "IRate", "value": "IRate"}, {"name": "Increase", "value": "Increase"}, {"name": "Max", "value": "Max"}, {"name": "Min", "value": "Min"}, {"name": "Rate", "value": "Rate"}, {"name": "Sum", "value": "Sum"}]}}, {"nullable": true, "type": "integer32", "var": "@Signal_update.signalSources[].temporalAggregation.windowSizeMinutes", "options": ["window-size-minutes"], "help": {"short": "Time window size for aggregation, in minutes."}}]}]}}], "cls": "Signal_update"}, {"nullable": true, "type": "@Signal_update", "var": "$resource.properties.sliProperties.signals", "options": ["signals"], "help": {"short": "Signals used for window-based SLI calculations."}}, {"nullable": true, "type": "@Signal_update", "var": "$resource.properties.sliProperties.totalSignals", "options": ["total-signals"], "help": {"short": "Represents total signals used in request-based SLI calculations."}}, {"nullable": true, "type": "object", "var": "$resource.properties.sliProperties.windowUptimeCriteria", "options": ["window-uptime-criteria"], "help": {"short": "Defines the uptime criteria for window-based SLIs."}, "args": [{"type": "string", "var": "$resource.properties.sliProperties.windowUptimeCriteria.comparator", "options": ["comparator"], "help": {"short": "Comparison operator used for uptime evaluation."}, "enum": {"items": [{"name": "gt", "value": "gt"}, {"name": "gte", "value": "gte"}, {"name": "lt", "value": "lt"}, {"name": "lte", "value": "lte"}]}}, {"type": "float32", "var": "$resource.properties.sliProperties.windowUptimeCriteria.target", "options": ["target"], "help": {"short": "Threshold value used to determine uptime."}}]}]}]}], "operations": [{"operationId": "Slis_Get", "http": {"path": "/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.Monitor/slis/{sliName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "serviceGroupName", "arg": "$Path.serviceGroupName", "required": true, "format": {"pattern": "^[A-Za-z0-9._()~-]{1,250}$"}}, {"type": "string", "name": "sliName", "arg": "$Path.sliName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_()~-]{2,63}$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/providers/Microsoft.Management/serviceGroups/{}/providers/Microsoft.Monitor/slis/{}"}}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "uuid", "name": "principalId"}, {"readOnly": true, "type": "uuid", "name": "tenantId"}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "SystemAssigned,UserAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"nullable": true, "type": "object", "props": [{"readOnly": true, "type": "uuid", "name": "clientId"}, {"readOnly": true, "type": "uuid", "name": "principalId"}]}}}]}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "baselineProperties", "required": true, "props": [{"type": "object", "name": "baseline", "required": true, "props": [{"type": "string", "name": "evaluationCalculationType", "required": true, "enum": {"items": [{"value": "CalendarDays"}, {"value": "RollingDays"}]}}, {"type": "integer32", "name": "evaluationPeriodDays", "required": true, "format": {"maximum": 90, "minimum": 1}}, {"type": "float32", "name": "value", "required": true, "format": {"maximum": 100.0, "minimum": 0}}]}]}, {"type": "string", "name": "category", "required": true, "enum": {"items": [{"value": "Availability"}, {"value": "Latency"}]}}, {"type": "string", "name": "description", "required": true, "format": {"pattern": "^[\\s\\S]{0,1000}$"}}, {"type": "array", "name": "destinationAmwAccounts", "required": true, "item": {"type": "object", "props": [{"type": "ResourceId", "name": "identity", "required": true}, {"type": "ResourceId", "name": "resourceId", "required": true}]}, "identifiers": ["resourceId"]}, {"readOnly": true, "type": "array", "name": "destinationMetrics", "item": {"type": "object", "props": [{"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace", "required": true}]}, "identifiers": ["metricName", "metricNamespace"]}, {"type": "boolean", "name": "enableAlert", "required": true}, {"type": "string", "name": "evaluationType", "required": true, "enum": {"items": [{"value": "RequestBased"}, {"value": "WindowBased"}]}}, {"readOnly": true, "type": "object", "name": "executionState", "props": [{"type": "string", "name": "message"}, {"type": "string", "name": "state", "required": true}]}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Canceled"}, {"value": "Failed"}, {"value": "Succeeded"}]}}, {"type": "object", "name": "sliProperties", "required": true, "props": [{"type": "object", "name": "goodSignals", "props": [{"type": "string", "name": "signalFormula", "required": true}, {"type": "array", "name": "signalSources", "required": true, "item": {"type": "object", "props": [{"type": "array", "name": "filters", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "dimensionName"}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "contains"}, {"value": "eq"}, {"value": "gt"}, {"value": "gte"}, {"value": "in"}, {"value": "lt"}, {"value": "lte"}, {"value": "ne"}, {"value": "notcontains"}, {"value": "notin"}, {"value": "notstartswith"}, {"value": "startswith"}]}}, {"type": "string", "name": "samplingType", "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Max"}, {"value": "Min"}, {"value": "Sum"}]}}, {"type": "string", "name": "scalarFunction", "enum": {"items": [{"value": "avg"}, {"value": "max"}, {"value": "min"}, {"value": "sum"}]}}, {"type": "string", "name": "value", "required": true}]}, "identifiers": ["value", "operator", "samplingType", "dimensionName", "scalarFunction"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace", "required": true}, {"type": "string", "name": "signalSourceId", "required": true}, {"type": "ResourceId", "name": "sourceAmwAccountManagedIdentity", "required": true}, {"type": "ResourceId", "name": "sourceAmwAccountResourceId", "required": true}, {"type": "object", "name": "spatialAggregation", "required": true, "props": [{"type": "array", "name": "dimensions", "required": true, "item": {"type": "string"}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Max"}, {"value": "Min"}, {"value": "Sum"}]}}]}, {"type": "object", "name": "temporalAggregation", "required": true, "props": [{"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Delta"}, {"value": "IDelta"}, {"value": "IRate"}, {"value": "Increase"}, {"value": "Max"}, {"value": "Min"}, {"value": "Rate"}, {"value": "Sum"}]}}, {"type": "integer32", "name": "windowSizeMinutes"}]}]}, "identifiers": ["signalSourceId"]}], "cls": "Signal_read"}, {"type": "@Signal_read", "name": "signals"}, {"type": "@Signal_read", "name": "totalSignals"}, {"type": "object", "name": "windowUptimeCriteria", "props": [{"type": "string", "name": "comparator", "required": true, "enum": {"items": [{"value": "gt"}, {"value": "gte"}, {"value": "lt"}, {"value": "lte"}]}}, {"type": "float32", "name": "target", "required": true}]}]}, {"readOnly": true, "type": "string", "name": "streamingRuleId"}, {"readOnly": true, "type": "dateTime", "name": "streamingRuleLastUpdatedTimestamp", "format": {"protocol": "iso"}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "Sli_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "resource", "required": true, "props": [{"type": "IdentityObject", "name": "identity", "props": [{"type": "string", "name": "type", "arg": "$resource.identity.type", "required": true, "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "SystemAssigned,UserAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "arg": "$resource.identity.userAssignedIdentities", "additionalProps": {"item": {"nullable": true, "type": "object"}}}]}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "baselineProperties", "arg": "$resource.properties.baselineProperties", "required": true, "props": [{"type": "object", "name": "baseline", "arg": "$resource.properties.baselineProperties.baseline", "required": true, "props": [{"type": "string", "name": "evaluationCalculationType", "arg": "$resource.properties.baselineProperties.baseline.evaluationCalculationType", "required": true, "enum": {"items": [{"value": "CalendarDays"}, {"value": "RollingDays"}]}}, {"type": "integer32", "name": "evaluationPeriodDays", "arg": "$resource.properties.baselineProperties.baseline.evaluationPeriodDays", "required": true, "format": {"maximum": 90, "minimum": 1}}, {"type": "float32", "name": "value", "arg": "$resource.properties.baselineProperties.baseline.value", "required": true, "format": {"maximum": 100.0, "minimum": 0}}]}]}, {"type": "string", "name": "category", "arg": "$resource.properties.category", "required": true, "enum": {"items": [{"value": "Availability"}, {"value": "Latency"}]}}, {"type": "string", "name": "description", "arg": "$resource.properties.description", "required": true, "format": {"pattern": "^[\\s\\S]{0,1000}$"}}, {"type": "array", "name": "destinationAmwAccounts", "arg": "$resource.properties.destinationAmwAccounts", "required": true, "item": {"type": "object", "props": [{"type": "ResourceId", "name": "identity", "arg": "$resource.properties.destinationAmwAccounts[].identity", "required": true}, {"type": "ResourceId", "name": "resourceId", "arg": "$resource.properties.destinationAmwAccounts[].resourceId", "required": true}]}, "identifiers": ["resourceId"]}, {"type": "boolean", "name": "enableAlert", "arg": "$resource.properties.enableAlert", "required": true}, {"type": "string", "name": "evaluationType", "arg": "$resource.properties.evaluationType", "required": true, "enum": {"items": [{"value": "RequestBased"}, {"value": "WindowBased"}]}}, {"type": "object", "name": "sliProperties", "arg": "$resource.properties.sliProperties", "required": true, "props": [{"type": "object", "name": "goodSignals", "arg": "$resource.properties.sliProperties.goodSignals", "props": [{"type": "string", "name": "signalFormula", "arg": "@Signal_update.signalFormula", "required": true}, {"type": "array", "name": "signalSources", "arg": "@Signal_update.signalSources", "required": true, "item": {"type": "object", "props": [{"type": "array", "name": "filters", "arg": "@Signal_update.signalSources[].filters", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "dimensionName", "arg": "@Signal_update.signalSources[].filters[].dimensionName"}, {"type": "string", "name": "operator", "arg": "@Signal_update.signalSources[].filters[].operator", "required": true, "enum": {"items": [{"value": "contains"}, {"value": "eq"}, {"value": "gt"}, {"value": "gte"}, {"value": "in"}, {"value": "lt"}, {"value": "lte"}, {"value": "ne"}, {"value": "notcontains"}, {"value": "notin"}, {"value": "notstartswith"}, {"value": "startswith"}]}}, {"type": "string", "name": "samplingType", "arg": "@Signal_update.signalSources[].filters[].samplingType", "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Max"}, {"value": "Min"}, {"value": "Sum"}]}}, {"type": "string", "name": "scalarFunction", "arg": "@Signal_update.signalSources[].filters[].scalarFunction", "enum": {"items": [{"value": "avg"}, {"value": "max"}, {"value": "min"}, {"value": "sum"}]}}, {"type": "string", "name": "value", "arg": "@Signal_update.signalSources[].filters[].value", "required": true}]}, "identifiers": ["value", "operator", "samplingType", "dimensionName", "scalarFunction"]}, {"type": "string", "name": "metricName", "arg": "@Signal_update.signalSources[].metricName", "required": true}, {"type": "string", "name": "metricNamespace", "arg": "@Signal_update.signalSources[].metricNamespace", "required": true}, {"type": "string", "name": "signalSourceId", "arg": "@Signal_update.signalSources[].signalSourceId", "required": true}, {"type": "ResourceId", "name": "sourceAmwAccountManagedIdentity", "arg": "@Signal_update.signalSources[].sourceAmwAccountManagedIdentity", "required": true}, {"type": "ResourceId", "name": "sourceAmwAccountResourceId", "arg": "@Signal_update.signalSources[].sourceAmwAccountResourceId", "required": true}, {"type": "object", "name": "spatialAggregation", "arg": "@Signal_update.signalSources[].spatialAggregation", "required": true, "props": [{"type": "array", "name": "dimensions", "arg": "@Signal_update.signalSources[].spatialAggregation.dimensions", "required": true, "item": {"type": "string"}}, {"type": "string", "name": "type", "arg": "@Signal_update.signalSources[].spatialAggregation.type", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Max"}, {"value": "Min"}, {"value": "Sum"}]}}]}, {"type": "object", "name": "temporalAggregation", "arg": "@Signal_update.signalSources[].temporalAggregation", "required": true, "props": [{"type": "string", "name": "type", "arg": "@Signal_update.signalSources[].temporalAggregation.type", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Delta"}, {"value": "IDelta"}, {"value": "IRate"}, {"value": "Increase"}, {"value": "Max"}, {"value": "Min"}, {"value": "Rate"}, {"value": "Sum"}]}}, {"type": "integer32", "name": "windowSizeMinutes", "arg": "@Signal_update.signalSources[].temporalAggregation.windowSizeMinutes"}]}]}, "identifiers": ["signalSourceId"]}], "cls": "Signal_update"}, {"type": "@Signal_update", "name": "signals", "arg": "$resource.properties.sliProperties.signals"}, {"type": "@Signal_update", "name": "totalSignals", "arg": "$resource.properties.sliProperties.totalSignals"}, {"type": "object", "name": "windowUptimeCriteria", "arg": "$resource.properties.sliProperties.windowUptimeCriteria", "props": [{"type": "string", "name": "comparator", "arg": "$resource.properties.sliProperties.windowUptimeCriteria.comparator", "required": true, "enum": {"items": [{"value": "gt"}, {"value": "gte"}, {"value": "lt"}, {"value": "lte"}]}}, {"type": "float32", "name": "target", "arg": "$resource.properties.sliProperties.windowUptimeCriteria.target", "required": true}]}]}]}], "clientFlatten": true}}}}, {"operationId": "Slis_CreateOrUpdate", "http": {"path": "/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.Monitor/slis/{sliName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "serviceGroupName", "arg": "$Path.serviceGroupName", "required": true, "format": {"pattern": "^[A-Za-z0-9._()~-]{1,250}$"}}, {"type": "string", "name": "sliName", "arg": "$Path.sliName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_()~-]{2,63}$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@Sli_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]} diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlzL3t9/2025-03-01-preview.xml b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlzL3t9/2025-03-01-preview.xml new file mode 100644 index 000000000..b0ad160be --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9zZXJ2aWNlZ3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubW9uaXRvci9zbGlzL3t9/2025-03-01-preview.xml @@ -0,0 +1,2509 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +