diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/createOrUpdatePrometheusRuleGroup.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/createOrUpdatePrometheusRuleGroup.json index c01c1c08fcfa..4e034ed41c22 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/createOrUpdatePrometheusRuleGroup.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/createOrUpdatePrometheusRuleGroup.json @@ -1,7 +1,7 @@ { "parameters": { - "subscriptionId": "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7", - "resourceGroupName": "giladstest", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "promResourceGroup", "ruleGroupName": "myPrometheusRuleGroup", "api-version": "2021-07-22-preview", "parameters": { @@ -9,7 +9,7 @@ "properties": { "description": "This is the description of the first rule group", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/giladstest/providers/microsoft.monitor/accounts/myMonitoringAccount" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/microsoft.monitor/accounts/myMonitoringAccount" ], "rules": [ { @@ -36,7 +36,7 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/giladstest/providers/microsoft.insights/notificationgroups/group2", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/promResourceGroup/providers/microsoft.insights/actiongroups/group2", "actionProperties": { "key11": "value11", "key12": "value12" @@ -52,13 +52,13 @@ "200": { "headers": {}, "body": { - "id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/giladstest/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "East US", "properties": { "description": "This is the description of the first rule group", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/giladstest/providers/microsoft.monitor/accounts/myMonitoringAccount" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/microsoft.monitor/accounts/myMonitoringAccount" ], "interval": "PT5M", "rules": [ @@ -86,7 +86,7 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/giladstest/providers/microsoft.insights/notificationgroups/group2", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/promResourceGroup/providers/microsoft.insights/actiongroups/group2", "actionProperties": { "key11": "value11", "key12": "value12" @@ -109,13 +109,13 @@ "201": { "headers": {}, "body": { - "id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/giladstest/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "East US", "properties": { "description": "This is the description of the first rule group", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/giladstest/providers/microsoft.monitor/accounts/myMonitoringAccount" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/microsoft.monitor/accounts/myMonitoringAccount" ], "interval": "PT5M", "rules": [ @@ -143,7 +143,7 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/giladstest/providers/microsoft.insights/notificationgroups/group2", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/promResourceGroup/providers/microsoft.insights/actiongroups/group2", "actionProperties": { "key11": "value11", "key12": "value12" diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/deletePrometheusRuleGroup.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/deletePrometheusRuleGroup.json index 5c08be786219..455da317299a 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/deletePrometheusRuleGroup.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/deletePrometheusRuleGroup.json @@ -1,7 +1,7 @@ { "parameters": { - "subscriptionId": "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7", - "resourceGroupName": "giladsteset", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "promResourceGroup", "ruleGroupName": "myPrometheusRuleGroup", "api-version": "2021-07-22-preview" }, diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/getPrometheusRuleGroup.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/getPrometheusRuleGroup.json index 08a28bf9a863..12c04787bc5d 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/getPrometheusRuleGroup.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/getPrometheusRuleGroup.json @@ -1,7 +1,7 @@ { "parameters": { - "subscriptionId": "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7", - "resourceGroupName": "giladstest", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "promResourceGroup", "ruleGroupName": "myPrometheusRuleGroup", "api-version": "2021-07-22-preview" }, @@ -9,13 +9,13 @@ "200": { "headers": {}, "body": { - "id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/giladstest/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "global", "properties": { "description": "This is the description of the first rule group", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/giladstest/providers/microsoft.monitor/accounts/myMonitoringAccount" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/microsoft.monitor/accounts/myMonitoringAccount" ], "rules": [ { @@ -36,7 +36,7 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/giladstest/providers/microsoft.insights/notificationgroups/group2", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/promResourceGroup/providers/microsoft.insights/actiongroups/group2", "actionProperties": { "key11": "value11", "key12": "value12" diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/listPrometheusRuleGroups.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/listPrometheusRuleGroups.json index 11a7b3037abf..51a8a3bcc8b8 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/listPrometheusRuleGroups.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/listPrometheusRuleGroups.json @@ -1,7 +1,7 @@ { "parameters": { - "subscriptionId": "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7", - "resourceGroupName": "giladstest", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "promResourceGroup", "api-version": "2021-07-22-preview" }, "responses": { @@ -10,13 +10,13 @@ "body": { "value": [ { - "id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/giladstest/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "East US", "properties": { "description": "This is the description of the first rule group", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/giladstest/providers/microsoft.monitor/accounts/myMonitoringAccount" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/microsoft.monitor/accounts/myMonitoringAccount" ], "rules": [ { @@ -37,7 +37,7 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", "actionProperties": { "key11": "value11", "key12": "value12" diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/listSubscriptionPrometheusRuleGroups.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/listSubscriptionPrometheusRuleGroups.json index ac58f7c16626..3283124f0fac 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/listSubscriptionPrometheusRuleGroups.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/listSubscriptionPrometheusRuleGroups.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "api-version": "2021-07-22-preview" }, "responses": { @@ -9,13 +9,13 @@ "body": { "value": [ { - "id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/giladstest/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "East US", "properties": { "description": "This is the description of the first rule group", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/giladstest/providers/microsoft.monitor/accounts/monitoringAcount/myMonitoringAccount" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/microsoft.monitor/accounts/monitoringAcount/myMonitoringAccount" ], "rules": [ { @@ -36,7 +36,7 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/promResourceGroup/providers/microsoft.insights/actiongroups/group2", "actionProperties": { "key11": "value11", "key12": "value12" @@ -56,13 +56,13 @@ } }, { - "id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/rg-2/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup2", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup2", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "East US", "properties": { "description": "This is the description of the first rule group", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/rg-2/providers/microsoft.monitor/accounts/monitoringAcount/myMonitoringAccount" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/microsoft.monitor/accounts/monitoringAcount/myMonitoringAccount" ], "rules": [ { @@ -83,7 +83,7 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/promResourceGroup/providers/microsoft.insights/actiongroups/group2", "actionProperties": { "key11": "value11", "key12": "value12" diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/patchPrometheusRuleGroup.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/patchPrometheusRuleGroup.json index 01aa83cb3439..1d614fbdc038 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/patchPrometheusRuleGroup.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/examples/patchPrometheusRuleGroup.json @@ -1,7 +1,7 @@ { "parameters": { - "subscriptionId": "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7", - "resourceGroupName": "giladstest", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "promResourceGroup", "ruleGroupName": "myPrometheusRuleGroup", "api-version": "2021-07-22-preview", "parameters": { @@ -17,7 +17,7 @@ "200": { "headers": {}, "body": { - "id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "East US", "tags": { @@ -26,7 +26,7 @@ "properties": { "description": "This is the description of the first rule group", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/giladstest/providers/microsoft.monitor/accounts/monitoringAcount/myMonitoringAccount" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/microsoft.monitor/accounts/monitoringAcount/myMonitoringAccount" ], "enabled": false, "rules": [ @@ -48,7 +48,7 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/giladstest/providers/microsoft.insights/notificationgroups/group2", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/promResourceGroup/providers/microsoft.insights/actiongroups/group2", "actionProperties": { "key11": "value11", "key12": "value12" diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/createOrUpdatePrometheusRuleGroup.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/createOrUpdatePrometheusRuleGroup.json index c590ca51d7b9..d22c09687c81 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/createOrUpdatePrometheusRuleGroup.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/createOrUpdatePrometheusRuleGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "promResourceGroup", "ruleGroupName": "myPrometheusRuleGroup", "api-version": "2023-03-01", @@ -12,7 +12,7 @@ "interval": "PT10M", "clusterName": "myClusterName", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" ], "rules": [ { @@ -40,14 +40,14 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", "actionProperties": { "key11": "value11", "key12": "value12" } }, { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", "actionProperties": { "key21": "value21", "key22": "value22" @@ -63,7 +63,7 @@ "200": { "headers": {}, "body": { - "id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "East US", "properties": { @@ -72,7 +72,7 @@ "interval": "PT10M", "clusterName": "myClusterName", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" ], "rules": [ { @@ -100,14 +100,14 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", "actionProperties": { "key11": "value11", "key12": "value12" } }, { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", "actionProperties": { "key21": "value21", "key22": "value22" @@ -122,7 +122,7 @@ "201": { "headers": {}, "body": { - "id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "East US", "properties": { @@ -131,7 +131,7 @@ "interval": "PT10M", "clusterName": "myClusterName", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" ], "rules": [ { @@ -159,14 +159,14 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", "actionProperties": { "key11": "value11", "key12": "value12" } }, { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", "actionProperties": { "key21": "value21", "key22": "value22" diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/deletePrometheusRuleGroup.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/deletePrometheusRuleGroup.json index 53fd889f677f..628faa44efbb 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/deletePrometheusRuleGroup.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/deletePrometheusRuleGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "promResourceGroup", "ruleGroupName": "myPrometheusRuleGroup", "api-version": "2023-03-01" diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/getPrometheusRuleGroup.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/getPrometheusRuleGroup.json index 0c70fb15b7c2..8ea5d6e15b28 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/getPrometheusRuleGroup.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/getPrometheusRuleGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "promResourceGroup", "ruleGroupName": "myPrometheusRuleGroup", "api-version": "2023-03-01" @@ -9,7 +9,7 @@ "200": { "headers": {}, "body": { - "id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "East US", "properties": { @@ -18,7 +18,7 @@ "interval": "PT10M", "clusterName": "myClusterName", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" ], "rules": [ { @@ -46,14 +46,14 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", "actionProperties": { "key11": "value11", "key12": "value12" } }, { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", "actionProperties": { "key21": "value21", "key22": "value22" diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/listPrometheusRuleGroups.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/listPrometheusRuleGroups.json index 0db60181773a..4900872d3056 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/listPrometheusRuleGroups.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/listPrometheusRuleGroups.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "promResourceGroup", "api-version": "2023-03-01" }, @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/ruleGroupName1", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/ruleGroupName1", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "East US", "properties": { @@ -19,7 +19,7 @@ "interval": "PT10M", "clusterName": "myClusterName", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" ], "rules": [ { @@ -47,14 +47,14 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", "actionProperties": { "key11": "value11", "key12": "value12" } }, { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", "actionProperties": { "key21": "value21", "key22": "value22" @@ -66,7 +66,7 @@ } }, { - "id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/ruleGroupName2", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/ruleGroupName2", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "East US", "properties": { @@ -75,7 +75,7 @@ "interval": "PT10M", "clusterName": "myClusterName", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" ], "rules": [ { @@ -103,14 +103,14 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", "actionProperties": { "key11": "value11", "key12": "value12" } }, { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", "actionProperties": { "key21": "value21", "key22": "value22" diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/listSubscriptionPrometheusRuleGroups.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/listSubscriptionPrometheusRuleGroups.json index 4642625c364c..bd6296d090a3 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/listSubscriptionPrometheusRuleGroups.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/listSubscriptionPrometheusRuleGroups.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "promResourceGroup", "api-version": "2023-03-01" }, @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/resourceGroupName1/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourceGroupName1/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "East US", "properties": { @@ -19,7 +19,7 @@ "interval": "PT10M", "clusterName": "myClusterName", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" ], "rules": [ { @@ -47,14 +47,14 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", "actionProperties": { "key11": "value11", "key12": "value12" } }, { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", "actionProperties": { "key21": "value21", "key22": "value22" @@ -66,7 +66,7 @@ } }, { - "id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/resourceGroupName2/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourceGroupName2/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "East US", "properties": { @@ -75,7 +75,7 @@ "interval": "PT10M", "clusterName": "myClusterName", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" ], "rules": [ { @@ -103,14 +103,14 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", "actionProperties": { "key11": "value11", "key12": "value12" } }, { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", "actionProperties": { "key21": "value21", "key22": "value22" diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/patchPrometheusRuleGroup.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/patchPrometheusRuleGroup.json index 4fe7a73ef948..55ab04017068 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/patchPrometheusRuleGroup.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/examples/patchPrometheusRuleGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "subscriptionId": "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "promResourceGroup", "ruleGroupName": "myPrometheusRuleGroup", "api-version": "2023-03-01", @@ -17,7 +17,7 @@ "200": { "headers": {}, "body": { - "id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/promResourceGroup/providers/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myPrometheusRuleGroup", "type": "Microsoft.AlertsManagement/prometheusRuleGroups", "location": "East US", "properties": { @@ -26,7 +26,7 @@ "interval": "PT10M", "clusterName": "myClusterName", "scopes": [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace" ], "rules": [ { @@ -54,14 +54,14 @@ }, "actions": [ { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myactiongroup", "actionProperties": { "key11": "value11", "key12": "value12" } }, { - "actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", + "actionGroupId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/myrg/providers/microsoft.insights/actiongroups/myotheractiongroup", "actionProperties": { "key21": "value21", "key22": "value22" diff --git a/specification/cognitiveservices/AnomalyDetector/examples/v1.1/ChangePointDetect.json b/specification/cognitiveservices/AnomalyDetector/examples/v1.1/ChangePointDetect.json index 961b008f896a..a045c22e1947 100644 --- a/specification/cognitiveservices/AnomalyDetector/examples/v1.1/ChangePointDetect.json +++ b/specification/cognitiveservices/AnomalyDetector/examples/v1.1/ChangePointDetect.json @@ -6,7 +6,7 @@ "ApiVersion": "v1.1", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "{API key}", - "body": { + "options": { "series": [ { "timestamp": "2017-01-01T06:45:00Z", diff --git a/specification/cognitiveservices/AnomalyDetector/examples/v1.1/DetectAnomaly.json b/specification/cognitiveservices/AnomalyDetector/examples/v1.1/DetectAnomaly.json index 429c24f8b9d2..afeb27183a3e 100644 --- a/specification/cognitiveservices/AnomalyDetector/examples/v1.1/DetectAnomaly.json +++ b/specification/cognitiveservices/AnomalyDetector/examples/v1.1/DetectAnomaly.json @@ -7,7 +7,7 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "{API key}", "modelId": "45aad126-aafd-11ea-b8fb-d89ef3400c5f", - "body": { + "options": { "dataSource": "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv", "topContributorCount": 10, "startTime": "2019-04-01T00:15:00Z", diff --git a/specification/cognitiveservices/AnomalyDetector/examples/v1.1/EntireDetect.json b/specification/cognitiveservices/AnomalyDetector/examples/v1.1/EntireDetect.json index 1869ce4b95ba..dad2fbe78e7c 100644 --- a/specification/cognitiveservices/AnomalyDetector/examples/v1.1/EntireDetect.json +++ b/specification/cognitiveservices/AnomalyDetector/examples/v1.1/EntireDetect.json @@ -6,7 +6,7 @@ "ApiVersion": "v1.1", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "{API key}", - "body": { + "options": { "series": [ { "timestamp": "1972-01-01T00:00:00Z", diff --git a/specification/cognitiveservices/AnomalyDetector/examples/v1.1/LastDetect.json b/specification/cognitiveservices/AnomalyDetector/examples/v1.1/LastDetect.json index ebc05dca98fa..db24b8b570df 100644 --- a/specification/cognitiveservices/AnomalyDetector/examples/v1.1/LastDetect.json +++ b/specification/cognitiveservices/AnomalyDetector/examples/v1.1/LastDetect.json @@ -6,7 +6,7 @@ "ApiVersion": "v1.1", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "{API key}", - "body": { + "options": { "series": [ { "timestamp": "1972-01-01T00:00:00Z", diff --git a/specification/cognitiveservices/AnomalyDetector/examples/v1.1/LastDetectAnomaly.json b/specification/cognitiveservices/AnomalyDetector/examples/v1.1/LastDetectAnomaly.json index 09c4992dd22b..f5bb920b59e9 100644 --- a/specification/cognitiveservices/AnomalyDetector/examples/v1.1/LastDetectAnomaly.json +++ b/specification/cognitiveservices/AnomalyDetector/examples/v1.1/LastDetectAnomaly.json @@ -7,7 +7,7 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "{API key}", "modelId": "45aad126-aafd-11ea-b8fb-d89ef3400c5f", - "body": { + "options": { "variables": [ { "variable": "Variable_1", diff --git a/specification/cognitiveservices/AnomalyDetector/examples/v1.1/TrainModel.json b/specification/cognitiveservices/AnomalyDetector/examples/v1.1/TrainModel.json index 234215b723cd..eecf82d71743 100644 --- a/specification/cognitiveservices/AnomalyDetector/examples/v1.1/TrainModel.json +++ b/specification/cognitiveservices/AnomalyDetector/examples/v1.1/TrainModel.json @@ -6,7 +6,7 @@ "ApiVersion": "v1.1", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "{API key}", - "body": { + "modelInfo": { "slidingWindow": 20, "alignPolicy": { "alignMode": "Outer", diff --git a/specification/cognitiveservices/AnomalyDetector/main.tsp b/specification/cognitiveservices/AnomalyDetector/main.tsp index 8f394014c9f2..e8d78f67bd8e 100644 --- a/specification/cognitiveservices/AnomalyDetector/main.tsp +++ b/specification/cognitiveservices/AnomalyDetector/main.tsp @@ -10,7 +10,7 @@ using TypeSpec.Versioning; @versioned(APIVersion) @service({title: "Anomaly Detector"}) -@useAuth(ApiKeyAuth) +@useAuth(AnomalyDetectorApiKeyAuth) @server( "{Endpoint}/anomalydetector/{ApiVersion}", "The Anomaly Detector API detects anomalies automatically in time series data. It supports two kinds of mode, one is for stateless using, another is for stateful using. In stateless mode, there are three functionalities. Entire Detect is for detecting the whole series with model trained by the time series, Last Detect is detecting last point with model trained by points before. ChangePoint Detect is for detecting trend changes in time series. In stateful mode, user can store time series, the stored time series will be used for detection anomalies. Under this mode, user can still use the above three functionalities by only giving a time range without preparing time series in client side. Besides the above three functionalities, stateful model also provide group based detection and labeling service. By leveraging labeling service user can provide labels for each detection result, these labels will be used for retuning or regenerating detection models. Inconsistency detection is a kind of group based detection, this detection will find inconsistency ones in a set of time series. By using anomaly detector service, business customers can discover incidents and establish a logic flow for root cause analysis.", @@ -46,6 +46,9 @@ discover incidents and establish a logic flow for root cause analysis. """) namespace AnomalyDetector; +@doc("The secret key for your Azure Cognitive Services subscription.") +model AnomalyDetectorApiKeyAuth is ApiKeyAuth; + enum APIVersion { v1_1: "v1.1", } diff --git a/specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp b/specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp index fb0208950101..5a521d962747 100644 --- a/specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp +++ b/specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp @@ -17,7 +17,6 @@ enum FillNAMethod { "Fixed", } -@fixed enum MultivariateBatchDetectionStatus { Created: "CREATED", Running: "RUNNING", @@ -33,13 +32,11 @@ enum DataSchema { "MultiTable", } -@fixed enum AlignMode { "Inner", "Outer", } -@fixed enum ModelStatus { Created: "CREATED", Running: "RUNNING", @@ -50,8 +47,8 @@ enum ModelStatus { @doc("Detection results for the resultId value.") @resource("multivariate/detect-batch") model MultivariateDetectionResult { + #suppress "@azure-tools/typespec-azure-core/key-visibility-required" "Properties in response-only schemas should not be marked readOnly" @doc("Result identifier that's used to fetch the results of an inference call.") - @visibility("read") @key @format("uuid") resultId: string; @@ -96,6 +93,7 @@ model VariableState { @doc("Variable name in variable states.") variable?: string; + #suppress "@azure-tools/typespec-azure-core/casing-style" "Service uppercases common acronyms like NA." @doc("Proportion of missing values that need to be filled by fillNAMethod.") @minValue(0.0) @maxValue(1.0) @@ -245,13 +243,15 @@ detect whether the time stamp is an anomaly or not. alignPolicy?: AlignPolicy; @doc("Model status.") + @visibility("read") status?: ModelStatus; - @visibility("read") @doc("Error messages after failure to create a model.") + @visibility("read") errors?: ErrorResponse[]; @doc("Diagnostics information to help inspect the states of a model or variable.") + @visibility("read") diagnosticsInfo?: DiagnosticsInfo; } @@ -263,6 +263,7 @@ time range. """) alignMode?: AlignMode; + #suppress "@azure-tools/typespec-azure-core/casing-style" "Service uppercases common acronyms like NA." @doc(""" Field that indicates how missing values will be filled. """) @@ -307,8 +308,8 @@ epoch. @doc("Response of getting a model.") @resource("multivariate/models") model AnomalyDetectionModel { + #suppress "@azure-tools/typespec-azure-core/key-visibility-required" "Properties in response-only schemas should not be marked readOnly" @doc("Model identifier.") - @visibility("read") @key @format("uuid") modelId: string; @@ -357,7 +358,7 @@ Number of top contributed variables for one anomalous time stamp in the response. The default is 10. """) - topContributorCount: int32; + topContributorCount?: int32 = 10; } @doc("Variable values.") @@ -384,8 +385,8 @@ model MultivariateLastDetectionResult { @doc("Error response.") @error model ResponseError { - @header + @header("x-ms-error-code") @doc("Error code.") - "x-ms-error-code"?: string, + msErrorCode?: string, ...ErrorResponse } diff --git a/specification/cognitiveservices/AnomalyDetector/multivariate/routes.tsp b/specification/cognitiveservices/AnomalyDetector/multivariate/routes.tsp index 14b2e6c799b1..44cdd074d500 100644 --- a/specification/cognitiveservices/AnomalyDetector/multivariate/routes.tsp +++ b/specification/cognitiveservices/AnomalyDetector/multivariate/routes.tsp @@ -9,6 +9,21 @@ using Azure.Core; namespace AnomalyDetector.Multivariate; +// Operation templates + +@post +@doc("Operation template for multivariate anomaly detection service action.") +op MultivariateServiceAction( + ...TParams +): TResponse | ResponseError; + +// Operations + +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern" +// This operation does not fit any standard operation pattern. +// The closest match is probably GetResourceOperationStatus, but that can't be used because +// it does not support an api-version in the path defined in the @server decorator. +// https://github.com/Azure/typespec-azure/issues/2798 @get @route("/multivariate/detect-batch/{resultId}") @summary("Get Multivariate Anomaly Detection Result") @@ -16,15 +31,14 @@ namespace AnomalyDetector.Multivariate; For asynchronous inference, get a multivariate anomaly detection result based on the resultId value that the BatchDetectAnomaly API returns. """) -// To improve CADL implementation apply: https://github.com/Azure/azure-rest-api-specs/issues/21527 op GetMultivariateBatchDetectionResult( @format("uuid") @doc("ID of a batch detection result.") @path resultId: string, ): MultivariateDetectionResult | ResponseError; - -@post +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Azure core RpcOperation does not support custom error response" +// https://github.com/Azure/typespec-azure/issues/2795 @route("/multivariate/models") @summary("Train a Multivariate Anomaly Detection Model") @doc(""" @@ -35,38 +49,44 @@ Storage folder that contains multiple CSV files, where each CSV file has two columns, time stamp and variable. Or the Blob Storage URI can point to a single blob that contains a CSV file that has all the variables and a time stamp column. """) -// To improve CADL implementation apply: https://github.com/Azure/azure-rest-api-specs/issues/21527 -op TrainMultivariateModel( - @doc("Model information.") - @body modelInfo: ModelInfo, -): { - @statusCode statusCode: 201, - @doc("Location and ID of the model.") - @header Location: string, - @body result: AnomalyDetectionModel - } | ResponseError; +op TrainMultivariateModel is MultivariateServiceAction< + // TParams + { + @doc("Model information.") + @body modelInfo: ModelInfo, + }, + // TResponse + { + @statusCode statusCode: 201, + @doc("Location and ID of the model.") + @header location: string, + @body result: AnomalyDetectionModel + }>; +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern" +// This operation does not fit any standard operation pattern. +// The closest match is probably ResourceList, but that can't be used because +// it does not support an api-version in the path defined in the @server decorator. +// https://github.com/Azure/typespec-azure/issues/2798 +// and because the response uses "models" instead of "value" as the array property name. @get @route("/multivariate/models") @summary("List Multivariate Models") @doc("List models of a resource.") -// To improve CADL implementation apply: https://github.com/Azure/azure-rest-api-specs/issues/21527 op ListMultivariateModels( - @doc("Skip indicates how many models will be skipped.") - @query - skip?: int32 = 0; - - @doc("Top indicates how many models will be fetched.") - @query - top?: int32; + ...SkipQueryParameter, + ...TopQueryParameter, ): ModelList | ResponseError; +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern" +// This operation does not fit any standard operation pattern. +// The closest match is probably ResourceDelete, but that can't be used because +// it does not support an api-version in the path defined in the @server decorator. @summary("Delete Multivariate Model") @doc("Delete an existing multivariate model according to the modelId value.") @delete @route("/multivariate/models/{modelId}") -// To improve CADL implementation apply: https://github.com/Azure/azure-rest-api-specs/issues/21527 op DeleteMultivariateModel( @doc("Model identifier.") @path @@ -77,6 +97,11 @@ op DeleteMultivariateModel( statusCode: 204 } | ResponseError; + +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern" +// This operation does not fit any standard operation pattern. +// The closest match is probably ResourceGet, but that can't be used because +// it does not support an api-version in the path defined in the @server decorator. @summary("Get Multivariate Model") @doc(""" Get detailed information about the multivariate model, including the training status @@ -84,13 +109,17 @@ and variables used in the model. """) @get @route("/multivariate/models/{modelId}") -// To improve CADL implementation apply: https://github.com/Azure/azure-rest-api-specs/issues/21527 op GetMultivariateModel( @doc("Model identifier.") @path modelId: string, ): AnomalyDetectionModel | ResponseError; +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern" +// This operation does not fit any standard operation pattern. +// The closest match is probably LongRunningResourceAction, but that can't be used because +// it does not support an api-version in the path defined in the @server decorator. +@post @route("/multivariate/models/{modelId}:detect-batch") @summary("Detect Multivariate Anomaly") @doc(""" @@ -101,7 +130,6 @@ query the detection result. The request should be a source link to indicate an externally accessible Azure Storage URI that either points to an Azure Blob Storage folder or points to a CSV file in Azure Blob Storage. """) -// To improve CADL implementation apply: https://github.com/Azure/azure-rest-api-specs/issues/21527 op DetectMultivariateBatchAnomaly( @doc("Model identifier.") @path @@ -111,12 +139,17 @@ op DetectMultivariateBatchAnomaly( ): { @statusCode statusCode: 202, @doc("ID of the detection result.") - @header "Operation-Id": string, + @header("Operation-Id") operationId: string, @doc("Location of the detection result.") - @header "Operation-Location": string, + @header("Operation-Location") operationLocation: string, @body result: MultivariateDetectionResult, } | ResponseError; + +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern" +// This operation does not fit any standard operation pattern. +// The closest match is probably ResourceAction, but that can't be used because +// it does not support an api-version in the path defined in the @server decorator. @route("/multivariate/models/{modelId}:detect-last") @summary("Detect anomalies in the last point of the request body") @doc(""" @@ -125,7 +158,6 @@ and inference data. The inference data should be put into the request body in JSON format. The request will finish synchronously and return the detection immediately in the response body. """) -// To improve CADL implementation apply: https://github.com/Azure/azure-rest-api-specs/issues/21527 op DetectMultivariateLastAnomaly( @doc("Model identifier.") @path diff --git a/specification/cognitiveservices/AnomalyDetector/tspconfig.yaml b/specification/cognitiveservices/AnomalyDetector/tspconfig.yaml index 56c01abe2685..945c6f8be04d 100644 --- a/specification/cognitiveservices/AnomalyDetector/tspconfig.yaml +++ b/specification/cognitiveservices/AnomalyDetector/tspconfig.yaml @@ -1,12 +1,12 @@ emit: [ "@azure-tools/typespec-autorest", - "@azure-tools/typespec-python", - "@azure-tools/typespec-csharp", ] options: "@azure-tools/typespec-autorest": - "output-file": "openapi.json" - "examples-directory": ./examples + examples-directory: ./examples + omit-unreachable-types: true + output-file: openapi.json + emitter-output-dir: "{project-root}/../data-plane/AnomalyDetector/stable" "@azure-tools/typespec-python": "basic-setup-py": true "package-version": 3.0.0b6 @@ -22,5 +22,3 @@ options: clear-output-folder: true namespace: Azure.AI.AnomalyDetector model-namespace: false - # Uncomment this line and add "@azure-tools/typespec-typescript" to your package.json to generate Typescript code - # "@azure-tools/cadl-typescript": true diff --git a/specification/cognitiveservices/AnomalyDetector/univariate/models.tsp b/specification/cognitiveservices/AnomalyDetector/univariate/models.tsp index a0af816fe0f5..d8483fc6b9f9 100644 --- a/specification/cognitiveservices/AnomalyDetector/univariate/models.tsp +++ b/specification/cognitiveservices/AnomalyDetector/univariate/models.tsp @@ -31,7 +31,6 @@ enum AnomalyDetectorErrorCodes { "InvalidImputeFixedValue", } -@fixed enum TimeGranularity { Yearly: "yearly", Monthly: "monthly", @@ -172,15 +171,15 @@ severe the anomaly is. For normal points, the severity is always 0. @doc("Error information that the API returned.") @error model AnomalyDetectorError { - @header + @header("x-ms-error-code") @doc("Error code.") - "x-ms-error-code"?: string, + msErrorCode: string, @doc("Error code.") - code?: AnomalyDetectorErrorCodes; + code: AnomalyDetectorErrorCodes; @doc("Message that explains the error that the service reported.") - message?: string; + message: string; } @doc("Response of the last anomaly detection.") diff --git a/specification/cognitiveservices/AnomalyDetector/univariate/routes.tsp b/specification/cognitiveservices/AnomalyDetector/univariate/routes.tsp index d0ca6909a997..3e33c2acd4ff 100644 --- a/specification/cognitiveservices/AnomalyDetector/univariate/routes.tsp +++ b/specification/cognitiveservices/AnomalyDetector/univariate/routes.tsp @@ -5,10 +5,18 @@ import "./models.tsp"; using TypeSpec.Rest; using TypeSpec.Http; +using Azure.Core; namespace AnomalyDetector.Univariate; @post +@doc("Operation template for univariate anomaly detection service action.") +op UnivariateServiceAction( + ...TParams +): TResponse | AnomalyDetectorError; + +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Azure core RpcOperation does not support custom error response" +// https://github.com/Azure/typespec-azure/issues/2795 @route("timeseries/entire/detect") @summary("Detect anomalies for the entire series in batch.") @doc(""" @@ -17,31 +25,42 @@ with the same model. With this method, points before and after a certain point are used to determine whether it's an anomaly. The entire detection can give the user an overall status of the time series. """) -// To improve CADL implementation apply: https://github.com/Azure/azure-rest-api-specs/issues/21527 -op DetectUnivariateEntireSeries( - @doc("Method of univariate anomaly detection.") - @body options: UnivariateDetectionOptions, -): UnivariateEntireDetectionResult | AnomalyDetectorError; +op DetectUnivariateEntireSeries is UnivariateServiceAction< + // TParams + { + @doc("Method of univariate anomaly detection.") + @body options: UnivariateDetectionOptions, + }, + // TResponse + UnivariateEntireDetectionResult>; -@post +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Azure core RpcOperation does not support custom error response" +// https://github.com/Azure/typespec-azure/issues/2795 @route("timeseries/last/detect") @summary("Detect anomaly status of the latest point in time series.") @doc(""" This operation generates a model by using the points that you sent in to the API and based on all data to determine whether the last point is anomalous. """) -// To improve CADL implementation apply: https://github.com/Azure/azure-rest-api-specs/issues/21527 -op DetectUnivariateLastPoint( - @doc("Method of univariate anomaly detection.") - @body options: UnivariateDetectionOptions, -): UnivariateLastDetectionResult | AnomalyDetectorError; +op DetectUnivariateLastPoint is UnivariateServiceAction< + // TParams + { + @doc("Method of univariate anomaly detection.") + @body options: UnivariateDetectionOptions, + }, + // TResponse + UnivariateLastDetectionResult>; -@post +#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Azure core RpcOperation does not support custom error response" +// https://github.com/Azure/typespec-azure/issues/2795 @route("timeseries/changepoint/detect") @summary("Detect change point for the entire series") @doc("Evaluate the change point score of every series point.") -// To improve CADL implementation apply: https://github.com/Azure/azure-rest-api-specs/issues/21527 -op DetectUnivariateChangePoint( - @doc("Method of univariate anomaly detection.") - @body options: UnivariateChangePointDetectionOptions, -): UnivariateChangePointDetectionResult | AnomalyDetectorError; +op DetectUnivariateChangePoint is UnivariateServiceAction< + // TParams + { + @doc("Method of univariate anomaly detection.") + @body options: UnivariateChangePointDetectionOptions, + }, + // TResponse + UnivariateChangePointDetectionResult>; diff --git a/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/ChangePointDetect.json b/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/ChangePointDetect.json index 961b008f896a..a045c22e1947 100644 --- a/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/ChangePointDetect.json +++ b/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/ChangePointDetect.json @@ -6,7 +6,7 @@ "ApiVersion": "v1.1", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "{API key}", - "body": { + "options": { "series": [ { "timestamp": "2017-01-01T06:45:00Z", diff --git a/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/DetectAnomaly.json b/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/DetectAnomaly.json index 429c24f8b9d2..afeb27183a3e 100644 --- a/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/DetectAnomaly.json +++ b/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/DetectAnomaly.json @@ -7,7 +7,7 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "{API key}", "modelId": "45aad126-aafd-11ea-b8fb-d89ef3400c5f", - "body": { + "options": { "dataSource": "https://multiadsample.blob.core.windows.net/data/sample_data_2_1000.csv", "topContributorCount": 10, "startTime": "2019-04-01T00:15:00Z", diff --git a/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/EntireDetect.json b/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/EntireDetect.json index 1869ce4b95ba..dad2fbe78e7c 100644 --- a/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/EntireDetect.json +++ b/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/EntireDetect.json @@ -6,7 +6,7 @@ "ApiVersion": "v1.1", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "{API key}", - "body": { + "options": { "series": [ { "timestamp": "1972-01-01T00:00:00Z", diff --git a/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/LastDetect.json b/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/LastDetect.json index ebc05dca98fa..db24b8b570df 100644 --- a/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/LastDetect.json +++ b/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/LastDetect.json @@ -6,7 +6,7 @@ "ApiVersion": "v1.1", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "{API key}", - "body": { + "options": { "series": [ { "timestamp": "1972-01-01T00:00:00Z", diff --git a/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/LastDetectAnomaly.json b/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/LastDetectAnomaly.json index 09c4992dd22b..f5bb920b59e9 100644 --- a/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/LastDetectAnomaly.json +++ b/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/LastDetectAnomaly.json @@ -7,7 +7,7 @@ "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "{API key}", "modelId": "45aad126-aafd-11ea-b8fb-d89ef3400c5f", - "body": { + "options": { "variables": [ { "variable": "Variable_1", diff --git a/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/TrainModel.json b/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/TrainModel.json index 234215b723cd..eecf82d71743 100644 --- a/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/TrainModel.json +++ b/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/examples/TrainModel.json @@ -6,7 +6,7 @@ "ApiVersion": "v1.1", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "{API key}", - "body": { + "modelInfo": { "slidingWindow": 20, "alignPolicy": { "alignMode": "Outer", diff --git a/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/openapi.json b/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/openapi.json index 87973cfe1c42..9bd2358f9cc3 100644 --- a/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/openapi.json +++ b/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/openapi.json @@ -53,12 +53,13 @@ ], "security": [ { - "ApiKeyAuth": [] + "AnomalyDetectorApiKeyAuth": [] } ], "securityDefinitions": { - "ApiKeyAuth": { + "AnomalyDetectorApiKeyAuth": { "type": "apiKey", + "description": "The secret key for your Azure Cognitive Services subscription.", "in": "header", "name": "Ocp-Apim-Subscription-Key" } @@ -161,21 +162,10 @@ "description": "List models of a resource.", "parameters": [ { - "name": "skip", - "in": "query", - "required": false, - "description": "Skip indicates how many models will be skipped.", - "default": 0, - "type": "integer", - "format": "int32" + "$ref": "#/parameters/Azure.Core.SkipQueryParameter" }, { - "name": "top", - "in": "query", - "required": false, - "description": "Top indicates how many models will be fetched.", - "type": "integer", - "format": "int32" + "$ref": "#/parameters/Azure.Core.TopQueryParameter" } ], "responses": { @@ -312,11 +302,11 @@ "202": { "description": "The request has been accepted for processing, but processing has not yet completed.", "headers": { - "operation-id": { + "Operation-Id": { "description": "ID of the detection result.", "type": "string" }, - "operation-location": { + "Operation-Location": { "description": "Location of the detection result.", "type": "string" } @@ -526,22 +516,6 @@ } }, "definitions": { - "APIVersion": { - "type": "string", - "enum": [ - "v1.1" - ], - "x-ms-enum": { - "name": "APIVersion", - "modelAsString": true, - "values": [ - { - "name": "v1_1", - "value": "v1.1" - } - ] - } - }, "Multivariate.AlignMode": { "type": "string", "enum": [ @@ -550,7 +524,7 @@ ], "x-ms-enum": { "name": "AlignMode", - "modelAsString": false + "modelAsString": true } }, "Multivariate.AlignPolicy": { @@ -578,8 +552,7 @@ "modelId": { "type": "string", "description": "Model identifier.", - "format": "uuid", - "readOnly": true + "format": "uuid" }, "createdTime": { "type": "string", @@ -814,7 +787,8 @@ }, "status": { "$ref": "#/definitions/Multivariate.ModelStatus", - "description": "Model status." + "description": "Model status.", + "readOnly": true }, "errors": { "type": "array", @@ -828,7 +802,8 @@ }, "diagnosticsInfo": { "$ref": "#/definitions/Multivariate.DiagnosticsInfo", - "description": "Diagnostics information to help inspect the states of a model or variable." + "description": "Diagnostics information to help inspect the states of a model or variable.", + "readOnly": true } }, "description": "Training result of a model, including its status, errors, and diagnostics\ninformation.", @@ -924,7 +899,7 @@ ], "x-ms-enum": { "name": "ModelStatus", - "modelAsString": false, + "modelAsString": true, "values": [ { "name": "Created", @@ -1022,7 +997,7 @@ ], "x-ms-enum": { "name": "MultivariateBatchDetectionStatus", - "modelAsString": false, + "modelAsString": true, "values": [ { "name": "Created", @@ -1049,8 +1024,7 @@ "resultId": { "type": "string", "description": "Result identifier that's used to fetch the results of an inference call.", - "format": "uuid", - "readOnly": true + "format": "uuid" }, "summary": { "$ref": "#/definitions/Multivariate.MultivariateBatchDetectionResultSummary", @@ -1088,13 +1062,13 @@ "topContributorCount": { "type": "integer", "format": "int32", - "description": "Number of top contributed\nvariables for one anomalous time stamp in the response. The default is\n10." + "description": "Number of top contributed\nvariables for one anomalous time stamp in the response. The default is\n10.", + "default": 10 } }, "description": "Request of the last detection.", "required": [ - "variables", - "topContributorCount" + "variables" ] }, "Multivariate.MultivariateLastDetectionResult": { @@ -1215,7 +1189,11 @@ "description": "Message that explains the error that the service reported." } }, - "description": "Error information that the API returned." + "description": "Error information that the API returned.", + "required": [ + "code", + "message" + ] }, "Univariate.AnomalyDetectorErrorCodes": { "type": "string", @@ -1293,7 +1271,7 @@ ], "x-ms-enum": { "name": "TimeGranularity", - "modelAsString": false, + "modelAsString": true, "values": [ { "name": "Yearly", @@ -1615,5 +1593,24 @@ ] } }, - "parameters": {} + "parameters": { + "Azure.Core.SkipQueryParameter": { + "name": "skip", + "in": "query", + "required": false, + "description": "The number of result items to skip.", + "type": "integer", + "format": "int32", + "x-ms-parameter-location": "method" + }, + "Azure.Core.TopQueryParameter": { + "name": "top", + "in": "query", + "required": false, + "description": "The number of result items to return.", + "type": "integer", + "format": "int32", + "x-ms-parameter-location": "method" + } + } } diff --git a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2023-05-01/examples/OperationsList.json b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2023-05-01/examples/OperationsList.json index 7b53de49f9e2..57267e685a7c 100644 --- a/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2023-05-01/examples/OperationsList.json +++ b/specification/containerinstance/resource-manager/Microsoft.ContainerInstance/stable/2023-05-01/examples/OperationsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-09-01" + "api-version": "2023-05-01" }, "responses": { "200": { diff --git a/specification/containerinstance/resource-manager/readme.md b/specification/containerinstance/resource-manager/readme.md index 31421b1577a9..954bfe8cd6f4 100644 --- a/specification/containerinstance/resource-manager/readme.md +++ b/specification/containerinstance/resource-manager/readme.md @@ -29,6 +29,15 @@ openapi-type: arm tag: package-2023-05 ``` +### Tag: package-2023-05 + +These settings apply only when `--tag=package-2023-05` is specified on the command line. + +```yaml $(tag) == 'package-2023-05' +input-file: + - Microsoft.ContainerInstance/stable/2023-05-01/containerInstance.json +tag: package-preview-2023-02 +``` ### Tag: package-2023-05 @@ -48,6 +57,7 @@ These settings apply only when `--tag=package-preview-2023-02` is specified on t input-file: - Microsoft.ContainerInstance/preview/2023-02-01-preview/containerInstance.json ``` + ### Tag: package-preview-2022-10 These settings apply only when `--tag=package-preview-2022-10` is specified on the command line. diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/DeleteManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/DeleteManagementGroup.json index 8c4dd0f49cc1..26afc66e1f53 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/DeleteManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/DeleteManagementGroup.json @@ -11,6 +11,9 @@ "type": "Microsoft.Management/managementGroups", "name": "GroupToDelete", "status": "NotStarted" + }, + "headers": { + "azure-asyncoperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/GroupToDelete?api-version=2020-05-01" } }, "204": {} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/ListHierarchySettings.json b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/ListHierarchySettings.json index feb1fbbd26a7..d2a671a7321e 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/ListHierarchySettings.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/ListHierarchySettings.json @@ -18,7 +18,7 @@ } } ], - "nextLink": null + "@nextLink": null } } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/ListManagementGroups.json b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/ListManagementGroups.json index d855dc9f2a46..05edff6d6897 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/ListManagementGroups.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/ListManagementGroups.json @@ -26,7 +26,7 @@ } } ], - "nextLink": null + "@nextLink": null } } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/ListOperations.json b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/ListOperations.json new file mode 100644 index 000000000000..f3e4f5af369e --- /dev/null +++ b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/ListOperations.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "display": { + "provider": "aaaaaaaaaaaaaaaaaaaaa", + "resource": "aaaaaaaaaaaaa", + "operation": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "description": "aaaaaaaaaaaaaaaaaaaaaa" + } + } + ], + "nextLink": "aaaaaaaaaaaaaaaaaaa" + } + } + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/management.json b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/management.json index 9b17bfba4f29..f2e63e799a95 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/management.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-05-01/management.json @@ -81,7 +81,7 @@ } }, "x-ms-pageable": { - "nextLinkName": "nextLink" + "nextLinkName": "@nextLink" }, "x-ms-examples": { "ListManagementGroups": { @@ -712,6 +712,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Operations": { + "$ref": "./examples/ListOperations.json" + } } } }, @@ -1059,7 +1064,7 @@ "$ref": "#/definitions/ManagementGroupInfo" } }, - "nextLink": { + "@nextLink": { "description": "The URL to use for getting the next set of results.", "type": "string", "readOnly": true @@ -1431,7 +1436,7 @@ "$ref": "#/definitions/HierarchySettingsInfo" } }, - "nextLink": { + "@nextLink": { "description": "The URL to use for getting the next set of results.", "type": "string", "readOnly": true diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-10-01/examples/GetAllSubscriptionsFromManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-10-01/examples/GetAllSubscriptionsFromManagementGroup.json index 5f72aeeeeba6..c7f222b00311 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-10-01/examples/GetAllSubscriptionsFromManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-10-01/examples/GetAllSubscriptionsFromManagementGroup.json @@ -14,9 +14,7 @@ "properties": { "displayName": "S5", "parent": { - "id": "/providers/Microsoft.Management/managementGroups/Group", - "name": "name", - "displayName": "displayName" + "id": "/providers/Microsoft.Management/managementGroups/Group" }, "state": "Active", "tenant": "e751ac82-623b-4913-8d74-22637c832373" diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-10-01/examples/ListHierarchySettings.json b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-10-01/examples/ListHierarchySettings.json index 05aa8a9e391b..66c937743621 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-10-01/examples/ListHierarchySettings.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-10-01/examples/ListHierarchySettings.json @@ -18,7 +18,7 @@ } } ], - "nextLink": null + "@nextLink": null } } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-10-01/examples/ListManagementGroups.json b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-10-01/examples/ListManagementGroups.json index 707b791f87e7..cfaa77bb35d8 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-10-01/examples/ListManagementGroups.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-10-01/examples/ListManagementGroups.json @@ -26,7 +26,7 @@ } } ], - "nextLink": null + "@nextLink": null } } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-10-01/management.json b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-10-01/management.json index 2f1c71e11430..7b41f52b9cf9 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-10-01/management.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2020-10-01/management.json @@ -81,7 +81,7 @@ } }, "x-ms-pageable": { - "nextLinkName": "nextLink" + "nextLinkName": "@nextLink" }, "x-ms-examples": { "ListManagementGroups": { @@ -1070,7 +1070,7 @@ "$ref": "#/definitions/ManagementGroupInfo" } }, - "nextLink": { + "@nextLink": { "description": "The URL to use for getting the next set of results.", "type": "string", "readOnly": true @@ -1173,7 +1173,7 @@ }, "parent": { "title": "Parent", - "$ref": "#/definitions/ParentGroupBagInfo", + "$ref": "#/definitions/DescendantParentGroupInfo", "x-nullable": true }, "state": { @@ -1450,7 +1450,7 @@ "$ref": "#/definitions/HierarchySettingsInfo" } }, - "nextLink": { + "@nextLink": { "description": "The URL to use for getting the next set of results.", "type": "string", "readOnly": true @@ -1579,24 +1579,6 @@ } } }, - "ParentGroupBagInfo": { - "description": "The ID, name and displayName of the parent management group.", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000" - }, - "name": { - "type": "string", - "description": "The name of the parent management group. For example, 00000000-0000-0000-0000-000000000000" - }, - "displayName": { - "type": "string", - "description": "The friendly name of the parent management group." - } - } - }, "EntityListResult": { "description": "Describes the result of the request to view entities.", "properties": { diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/AddManagementGroupSubscription.json b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/AddManagementGroupSubscription.json index 56f591f1177d..1e62ffcd9c5b 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/AddManagementGroupSubscription.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/AddManagementGroupSubscription.json @@ -14,9 +14,7 @@ "properties": { "displayName": "Group", "parent": { - "id": "/providers/Microsoft.Management/managementGroups/Group", - "name": "name", - "displayName": "displayName" + "id": "/providers/Microsoft.Management/managementGroups/Group" }, "state": "Active", "tenant": "e751ac82-623b-4913-8d74-22637c832373" diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/GetAllSubscriptionsFromManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/GetAllSubscriptionsFromManagementGroup.json index 711fb0738a62..ef5c1c9161eb 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/GetAllSubscriptionsFromManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/GetAllSubscriptionsFromManagementGroup.json @@ -14,9 +14,7 @@ "properties": { "displayName": "S5", "parent": { - "id": "/providers/Microsoft.Management/managementGroups/Group", - "name": "name", - "displayName": "displayName" + "id": "/providers/Microsoft.Management/managementGroups/Group" }, "state": "Active", "tenant": "e751ac82-623b-4913-8d74-22637c832373" diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/management.json b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/management.json index 3bdcb8d6d739..cf453e867241 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/management.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/management.json @@ -1176,7 +1176,7 @@ }, "parent": { "title": "Parent", - "$ref": "#/definitions/ParentGroupBagInfo", + "$ref": "#/definitions/DescendantParentGroupInfo", "x-nullable": true }, "state": { @@ -1608,24 +1608,6 @@ } } }, - "ParentGroupBagInfo": { - "description": "The ID, name and displayName of the parent management group.", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000" - }, - "name": { - "type": "string", - "description": "The name of the parent management group. For example, 00000000-0000-0000-0000-000000000000" - }, - "displayName": { - "type": "string", - "description": "The friendly name of the parent management group." - } - } - }, "EntityListResult": { "description": "Describes the result of the request to view entities.", "properties": { diff --git a/specification/maps/data-plane/Route/preview/2023-08-01-preview/route.json b/specification/maps/data-plane/Route/preview/2023-08-01-preview/route.json index 8dddfb523873..5aa68d2828a1 100644 --- a/specification/maps/data-plane/Route/preview/2023-08-01-preview/route.json +++ b/specification/maps/data-plane/Route/preview/2023-08-01-preview/route.json @@ -514,7 +514,6 @@ "$ref": "#/definitions/Geometry" }, "properties": { - "x-ms-client-flatten": true, "$ref": "#/definitions/FeatureProperties" }, "bbox": { diff --git a/specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/OperationResultsGet.json b/specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/OperationResultsGet.json index 5656d6c36e31..4bcd9f306c5e 100644 --- a/specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/OperationResultsGet.json +++ b/specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/OperationResultsGet.json @@ -14,6 +14,43 @@ "startTime": "2022-06-10T13:54:53.6554616Z", "endTime": "2022-06-10T13:54:55.7025301Z", "percentComplete": 1.0, + "value": [ + { + "spacecraft": { + "id": "/subscriptions/c1be1141-a7c9-4aac-9608-3c2e2f1152c3/resourceGroups/contoso-Rgp/providers/Microsoft.Orbital/spacecrafts/CONTOSO_SAT" + }, + "groundStationName": "EASTUS2_0", + "properties": { + "maximumElevationDegrees": 26.617297, + "txStartTime": "2022-11-01T11:55:01Z", + "txEndTime": "2022-11-01T12:05:25Z", + "rxStartTime": "2022-11-01T11:55:01Z", + "rxEndTime": "2022-11-01T12:05:25Z", + "startAzimuthDegrees": 201.340472, + "endAzimuthDegrees": 330.489627, + "startElevationDegrees": 5.0, + "endElevationDegrees": 5.040625 + } + }, + { + "spacecraft": { + "id": "/subscriptions/c1be1141-a7c9-4aac-9608-3c2e2f1152c3/resourceGroups/contoso-Rgp/providers/Microsoft.Orbital/spacecrafts/CONTOSO_SAT" + }, + "groundStationName": "EASTUS2_0", + "properties": { + "maximumElevationDegrees": 85.9796, + "txStartTime": "2022-11-02T10:58:30Z", + "txEndTime": "2022-11-02T11:10:45Z", + "rxStartTime": "2022-11-02T10:58:30Z", + "rxEndTime": "2022-11-02T11:10:45Z", + "startAzimuthDegrees": 165.758896, + "endAzimuthDegrees": 345.848482, + "startElevationDegrees": 5.0, + "endElevationDegrees": 5.048656 + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/c1be1141-a7c9-4aac-9608-3c2e2f1152c3/resourceGroups/contoso-Rgp/providers/Microsoft.Orbital/spacecrafts/CONTOSO_SAT/listAvailableContacts?api-version=2022-11-01&$skiptoken=opaqueString", "properties": {}, "error": { "code": "ReadOnlyPropertyError", diff --git a/specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/orbital.json b/specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/orbital.json index a1ac3b5b8142..560c972bbdad 100644 --- a/specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/orbital.json +++ b/specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/orbital.json @@ -1239,12 +1239,7 @@ "properties": { "x-ms-client-flatten": true, "$ref": "#/definitions/SpacecraftsProperties", - "description": "Spacecraft Properties", - "allOf": [ - { - "$ref": "#/definitions/SpacecraftsProperties" - } - ] + "description": "Spacecraft Properties" } }, "allOf": [