openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 36.8 kB
JSON
{"openapi":"3.0.0","info":{"title":"MonitorManagementClient","version":"2015-04-01","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-ms-code-generation-settings":{"name":"MonitorManagementClient"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/autoscale_API.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"monitor-autoscale_API","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/subscriptions/{subscriptionId}/providers/microsoft.insights/autoscalesettings":{"get":{"description":"Lists the autoscale settings for a subscription","operationId":"AutoscaleSettings_ListBySubscription","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"}],"responses":{"200":{"description":"Successful request for a list of autoscale settings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoscaleSettingResourceCollection"},"examples":{"List autoscale settings":{"$ref":"#/components/examples/List_autoscale_settings"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["AutoscaleSettings"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/autoscalesettings":{"get":{"description":"Lists the autoscale settings for a resource group","operationId":"AutoscaleSettings_ListByResourceGroup","parameters":[{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"}],"responses":{"200":{"description":"Successful request for a list of autoscale settings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoscaleSettingResourceCollection"},"examples":{"List autoscale settings":{"$ref":"#/components/examples/List_autoscale_settings"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["AutoscaleSettings"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/autoscalesettings/{autoscaleSettingName}":{"delete":{"description":"Deletes and autoscale setting","operationId":"AutoscaleSettings_Delete","parameters":[{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/AutoscaleSettingNameParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"}],"responses":{"200":{"description":"Successful request to delete an autoscale setting"},"204":{"description":"No content: Successful request to delete an autoscale setting, but the response is intentionally empty"},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["AutoscaleSettings"]},"get":{"description":"Gets an autoscale setting","operationId":"AutoscaleSettings_Get","parameters":[{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/AutoscaleSettingNameParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"}],"responses":{"200":{"description":"Successful request to get one autoscale setting","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoscaleSettingResource"},"examples":{"Get an autoscale setting":{"$ref":"#/components/examples/Get_an_autoscale_setting"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["AutoscaleSettings"]},"patch":{"description":"Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.","operationId":"AutoscaleSettings_Update","parameters":[{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/AutoscaleSettingNameParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoscaleSettingResourcePatch"}}},"description":"Parameters supplied to the operation.","required":true},"responses":{"200":{"description":"An existing autoscale setting resource was successfully updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoscaleSettingResource"},"examples":{"Patch an autoscale setting":{"$ref":"#/components/examples/Patch_an_autoscale_setting"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"put":{"description":"Creates or updates an autoscale setting.","operationId":"AutoscaleSettings_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/AutoscaleSettingNameParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoscaleSettingResource"}}},"description":"Parameters supplied to the operation.","required":true},"responses":{"200":{"description":"Successful request to create or update an autoscale setting","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoscaleSettingResource"},"examples":{"Create or update an autoscale setting":{"$ref":"#/components/examples/Create_or_update_an_autoscale_setting"}}}}},"201":{"description":"Created autoscale setting","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoscaleSettingResource"},"examples":{"Create or update an autoscale setting":{"$ref":"#/components/examples/Create_or_update_an_autoscale_setting"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["AutoscaleSettings"]}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"List_autoscale_settings":{"value":{"nextLink":"https://management.azure.com/########-####-####-####-############$skiptoken=######","value":[{"id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/microsoft.insights/autoscalesettings/MySetting","location":"West US","name":"MySetting","properties":{"enabled":true,"name":"MySetting","notifications":[{"email":{"customEmails":["gu@ms.com","ge@ns.net"],"sendToSubscriptionAdministrator":true,"sendToSubscriptionCoAdministrators":true},"operation":"Scale","webhooks":[{"properties":{},"serviceUri":"http://myservice.com"}]}],"profiles":[{"capacity":{"default":"1","maximum":"10","minimum":"1"},"fixedDate":{"end":"2015-03-05T14:30:00Z","start":"2015-03-05T14:00:00Z","timeZone":"UTC"},"name":"adios","rules":[{"metricTrigger":{"metricName":"Percentage CPU","metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc","operator":"GreaterThan","statistic":"Average","threshold":10,"timeAggregation":"Average","timeGrain":"PT1M","timeWindow":"PT5M"},"scaleAction":{"cooldown":"PT5M","direction":"Increase","type":"ChangeCount","value":"1"}},{"metricTrigger":{"metricName":"Percentage CPU","metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc","operator":"GreaterThan","statistic":"Average","threshold":15,"timeAggregation":"Average","timeGrain":"PT2M","timeWindow":"PT5M"},"scaleAction":{"cooldown":"PT6M","direction":"Decrease","type":"ChangeCount","value":"2"}}]},{"capacity":{"default":"1","maximum":"10","minimum":"1"},"name":"saludos","recurrence":{"frequency":"Week","schedule":{"days":["1"],"hours":[5],"minutes":[15],"timeZone":"UTC"}},"rules":[{"metricTrigger":{"metricName":"Percentage CPU","metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc","operator":"GreaterThan","statistic":"Average","threshold":10,"timeAggregation":"Average","timeGrain":"PT1M","timeWindow":"PT5M"},"scaleAction":{"cooldown":"PT5M","direction":"Increase","type":"ChangeCount","value":"1"}},{"metricTrigger":{"metricName":"Percentage CPU","metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc","operator":"GreaterThan","statistic":"Average","threshold":15,"timeAggregation":"Average","timeGrain":"PT2M","timeWindow":"PT5M"},"scaleAction":{"cooldown":"PT6M","direction":"Decrease","type":"ChangeCount","value":"2"}}]}],"targetResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc"},"tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage"},"type":"Microsoft.Insights/autoscaleSettings"}]}},"Get_an_autoscale_setting":{"value":{"id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/microsoft.insights/autoscalesettings/MySetting","location":"West US","name":"MySetting","properties":{"enabled":true,"name":"MySetting","notifications":[{"email":{"customEmails":["gu@ms.com","ge@ns.net"],"sendToSubscriptionAdministrator":true,"sendToSubscriptionCoAdministrators":true},"operation":"Scale","webhooks":[{"properties":{},"serviceUri":"http://myservice.com"}]}],"profiles":[{"capacity":{"default":"1","maximum":"10","minimum":"1"},"fixedDate":{"end":"2015-03-05T14:30:00Z","start":"2015-03-05T14:00:00Z","timeZone":"UTC"},"name":"adios","rules":[{"metricTrigger":{"metricName":"Percentage CPU","metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc","operator":"GreaterThan","statistic":"Average","threshold":10,"timeAggregation":"Average","timeGrain":"PT1M","timeWindow":"PT5M"},"scaleAction":{"cooldown":"PT5M","direction":"Increase","type":"ChangeCount","value":"1"}},{"metricTrigger":{"metricName":"Percentage CPU","metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc","operator":"GreaterThan","statistic":"Average","threshold":15,"timeAggregation":"Average","timeGrain":"PT2M","timeWindow":"PT5M"},"scaleAction":{"cooldown":"PT6M","direction":"Decrease","type":"ChangeCount","value":"2"}}]},{"capacity":{"default":"1","maximum":"10","minimum":"1"},"name":"saludos","recurrence":{"frequency":"Week","schedule":{"days":["1"],"hours":[5],"minutes":[15],"timeZone":"UTC"}},"rules":[{"metricTrigger":{"metricName":"Percentage CPU","metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc","operator":"GreaterThan","statistic":"Average","threshold":10,"timeAggregation":"Average","timeGrain":"PT1M","timeWindow":"PT5M"},"scaleAction":{"cooldown":"PT5M","direction":"Increase","type":"ChangeCount","value":"1"}},{"metricTrigger":{"metricName":"Percentage CPU","metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc","operator":"GreaterThan","statistic":"Average","threshold":15,"timeAggregation":"Average","timeGrain":"PT2M","timeWindow":"PT5M"},"scaleAction":{"cooldown":"PT6M","direction":"Decrease","type":"ChangeCount","value":"2"}}]}],"targetResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc"},"tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage"},"type":"Microsoft.Insights/autoscaleSettings"}},"Patch_an_autoscale_setting":{"value":{"id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/microsoft.insights/autoscalesettings/MySetting","location":"West US","name":"MySetting","properties":{"enabled":true,"name":"MySetting","notifications":[{"email":{"customEmails":["gu@ms.com","ge@ns.net"],"sendToSubscriptionAdministrator":true,"sendToSubscriptionCoAdministrators":true},"operation":"Scale","webhooks":[{"properties":{},"serviceUri":"http://myservice.com"}]}],"profiles":[{"capacity":{"default":"1","maximum":"10","minimum":"1"},"fixedDate":{"end":"2015-03-05T14:30:00Z","start":"2015-03-05T14:00:00Z","timeZone":"UTC"},"name":"adios","rules":[{"metricTrigger":{"metricName":"Percentage CPU","metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc","operator":"GreaterThan","statistic":"Average","threshold":10,"timeAggregation":"Average","timeGrain":"PT1M","timeWindow":"PT5M"},"scaleAction":{"cooldown":"PT5M","direction":"Increase","type":"ChangeCount","value":"1"}},{"metricTrigger":{"metricName":"Percentage CPU","metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc","operator":"GreaterThan","statistic":"Average","threshold":15,"timeAggregation":"Average","timeGrain":"PT2M","timeWindow":"PT5M"},"scaleAction":{"cooldown":"PT6M","direction":"Decrease","type":"ChangeCount","value":"2"}}]},{"capacity":{"default":"1","maximum":"10","minimum":"1"},"name":"saludos","recurrence":{"frequency":"Week","schedule":{"days":["1"],"hours":[5],"minutes":[15],"timeZone":"UTC"}},"rules":[{"metricTrigger":{"metricName":"Percentage CPU","metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc","operator":"GreaterThan","statistic":"Average","threshold":10,"timeAggregation":"Average","timeGrain":"PT1M","timeWindow":"PT5M"},"scaleAction":{"cooldown":"PT5M","direction":"Increase","type":"ChangeCount","value":"1"}},{"metricTrigger":{"metricName":"Percentage CPU","metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc","operator":"GreaterThan","statistic":"Average","threshold":15,"timeAggregation":"Average","timeGrain":"PT2M","timeWindow":"PT5M"},"scaleAction":{"cooldown":"PT6M","direction":"Decrease","type":"ChangeCount","value":"2"}}]}],"targetResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc"},"tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary"},"type":"Microsoft.Insights/autoscaleSettings"}},"Create_or_update_an_autoscale_setting":{"value":{"id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/microsoft.insights/autoscalesettings/MySetting","location":"West US","name":"MySetting","properties":{"enabled":true,"name":"MySetting","notifications":[{"email":{"customEmails":["gu@ms.com","ge@ns.net"],"sendToSubscriptionAdministrator":true,"sendToSubscriptionCoAdministrators":true},"operation":"Scale","webhooks":[{"properties":{},"serviceUri":"http://myservice.com"}]}],"profiles":[{"capacity":{"default":"1","maximum":"10","minimum":"1"},"fixedDate":{"end":"2015-03-05T14:30:00Z","start":"2015-03-05T14:00:00Z","timeZone":"UTC"},"name":"adios","rules":[{"metricTrigger":{"metricName":"Percentage CPU","metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc","operator":"GreaterThan","statistic":"Average","threshold":10,"timeAggregation":"Average","timeGrain":"PT1M","timeWindow":"PT5M"},"scaleAction":{"cooldown":"PT5M","direction":"Increase","type":"ChangeCount","value":"1"}},{"metricTrigger":{"metricName":"Percentage CPU","metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc","operator":"GreaterThan","statistic":"Average","threshold":15,"timeAggregation":"Average","timeGrain":"PT2M","timeWindow":"PT5M"},"scaleAction":{"cooldown":"PT6M","direction":"Decrease","type":"ChangeCount","value":"2"}}]},{"capacity":{"default":"1","maximum":"10","minimum":"1"},"name":"saludos","recurrence":{"frequency":"Week","schedule":{"days":["1"],"hours":[5],"minutes":[15],"timeZone":"UTC"}},"rules":[{"metricTrigger":{"metricName":"Percentage CPU","metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc","operator":"GreaterThan","statistic":"Average","threshold":10,"timeAggregation":"Average","timeGrain":"PT1M","timeWindow":"PT5M"},"scaleAction":{"cooldown":"PT5M","direction":"Increase","type":"ChangeCount","value":"1"}},{"metricTrigger":{"metricName":"Percentage CPU","metricResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc","operator":"GreaterThan","statistic":"Average","threshold":15,"timeAggregation":"Average","timeGrain":"PT2M","timeWindow":"PT5M"},"scaleAction":{"cooldown":"PT6M","direction":"Decrease","type":"ChangeCount","value":"2"}}]}],"targetResourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc"},"tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage"},"type":"Microsoft.Insights/autoscaleSettings"}}},"parameters":{"ApiVersionParameter":{"description":"Client Api Version.","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"List autoscale settings":{"value":"2015-04-01"},"Delete an autoscale setting":{"value":"2015-04-01"},"Get an autoscale setting":{"value":"2015-04-01"},"Patch an autoscale setting":{"value":"2015-04-01"},"Create or update an autoscale setting":{"value":"2015-04-01"}}},"AutoscaleSettingNameParameter":{"description":"The autoscale setting name.","in":"path","name":"autoscaleSettingName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Delete an autoscale setting":{"value":"MySetting"},"Get an autoscale setting":{"value":"MySetting"},"Patch an autoscale setting":{"value":"MySetting"},"Create or update an autoscale setting":{"value":"MySetting"}}},"ResourceGroupNameParameter":{"description":"The name of the resource group.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"List autoscale settings":{"value":"TestingMetricsScaleSet"},"Delete an autoscale setting":{"value":"TestingMetricsScaleSet"},"Get an autoscale setting":{"value":"TestingMetricsScaleSet"},"Patch an autoscale setting":{"value":"TestingMetricsScaleSet"},"Create or update an autoscale setting":{"value":"TestingMetricsScaleSet"}}},"SubscriptionIdParameter":{"description":"The Azure subscription Id.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string"},"examples":{"List autoscale settings":{"value":"b67f7fec-69fc-4974-9099-a26bd6ffeda3"},"Delete an autoscale setting":{"value":"b67f7fec-69fc-4974-9099-a26bd6ffeda3"},"Get an autoscale setting":{"value":"b67f7fec-69fc-4974-9099-a26bd6ffeda3"},"Patch an autoscale setting":{"value":"b67f7fec-69fc-4974-9099-a26bd6ffeda3"},"Create or update an autoscale setting":{"value":"b67f7fec-69fc-4974-9099-a26bd6ffeda3"}}}},"securitySchemes":{"azure_auth":{"description":"Azure Active Directory OAuth2 Flow","type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize","scopes":{"user_impersonation":"impersonate your user account"}}}}},"schemas":{"AutoscaleNotification":{"description":"Autoscale notification.","properties":{"email":{"$ref":"#/components/schemas/EmailNotification"},"operation":{"description":"the operation associated with the notification and its value must be \"scale\"","enum":["Scale"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"OperationType"}},"webhooks":{"description":"the collection of webhook notifications.","items":{"$ref":"#/components/schemas/WebhookNotification"},"type":"array"}},"required":["operation"]},"AutoscaleProfile":{"description":"Autoscale profile.","properties":{"capacity":{"$ref":"#/components/schemas/ScaleCapacity"},"fixedDate":{"$ref":"#/components/schemas/TimeWindow"},"name":{"description":"the name of the profile.","type":"string"},"recurrence":{"$ref":"#/components/schemas/Recurrence"},"rules":{"description":"the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified.","items":{"$ref":"#/components/schemas/ScaleRule"},"type":"array"}},"required":["rules","name","capacity"]},"AutoscaleSetting":{"description":"A setting that contains all of the configuration for the automatic scaling of a resource.","properties":{"enabled":{"default":true,"description":"the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'.","type":"boolean"},"name":{"description":"the name of the autoscale setting.","type":"string"},"notifications":{"description":"the collection of notifications.","items":{"$ref":"#/components/schemas/AutoscaleNotification"},"type":"array"},"profiles":{"description":"the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.","items":{"$ref":"#/components/schemas/AutoscaleProfile"},"maxItems":20,"type":"array"},"targetResourceUri":{"description":"the resource identifier of the resource that the autoscale setting should be added to.","type":"string"}},"required":["profiles"]},"AutoscaleSettingResource":{"allOf":[{"$ref":"#/components/schemas/Resource"}],"description":"The autoscale setting resource.","properties":{"properties":{"$ref":"#/components/schemas/AutoscaleSetting"}},"required":["properties"],"type":"object"},"AutoscaleSettingResourceCollection":{"description":"Represents a collection of autoscale setting resources.","properties":{"nextLink":{"description":"URL to get the next set of results.","type":"string"},"value":{"description":"the values for the autoscale setting resources.","items":{"$ref":"#/components/schemas/AutoscaleSettingResource"},"type":"array"}},"required":["value"]},"AutoscaleSettingResourcePatch":{"description":"The autoscale setting object for patch operations.","properties":{"properties":{"$ref":"#/components/schemas/AutoscaleSetting"},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags"}}},"EmailNotification":{"description":"Email notification of an autoscale event.","properties":{"customEmails":{"description":"the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.","items":{"type":"string"},"type":"array"},"sendToSubscriptionAdministrator":{"description":"a value indicating whether to send email to subscription administrator.","type":"boolean"},"sendToSubscriptionCoAdministrators":{"description":"a value indicating whether to send email to subscription co-administrators.","type":"boolean"}}},"ErrorResponse":{"description":"Describes the format of Error response.","properties":{"code":{"description":"Error code","type":"string"},"message":{"description":"Error message indicating why the operation failed.","type":"string"}},"type":"object"},"MetricTrigger":{"description":"The trigger that results in a scaling action.","properties":{"metricName":{"description":"the name of the metric that defines what the rule monitors.","type":"string"},"metricResourceUri":{"description":"the resource identifier of the resource the rule monitors.","type":"string"},"operator":{"description":"the operator that is used to compare the metric data and the threshold.","enum":["Equals","NotEquals","GreaterThan","GreaterThanOrEqual","LessThan","LessThanOrEqual"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"ComparisonOperationType"}},"statistic":{"description":"the metric statistic type. How the metrics from multiple instances are combined.","enum":["Average","Min","Max","Sum"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"MetricStatisticType"}},"threshold":{"description":"the threshold of the metric that triggers the scale action.","format":"double","type":"number"},"timeAggregation":{"description":"time aggregation type. How the data that is collected should be combined over time. The default value is Average.","enum":["Average","Minimum","Maximum","Total","Count","Last"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"TimeAggregationType"}},"timeGrain":{"description":"the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute.","format":"duration","type":"string"},"timeWindow":{"description":"the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes.","format":"duration","type":"string"}},"required":["metricName","metricResourceUri","timeGrain","statistic","timeWindow","timeAggregation","operator","threshold"]},"Recurrence":{"description":"The repeating times at which this profile begins. This element is not used if the FixedDate element is used.","properties":{"frequency":{"description":"the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly.","enum":["None","Second","Minute","Hour","Day","Week","Month","Year"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"RecurrenceFrequency"}},"schedule":{"$ref":"#/components/schemas/RecurrentSchedule"}},"required":["frequency","schedule"]},"RecurrentSchedule":{"description":"The scheduling constraints for when the profile begins.","properties":{"days":{"description":"the collection of days that the profile takes effect on. Possible values are Sunday through Saturday.","items":{"type":"string"},"type":"array"},"hours":{"description":"A collection of hours that the profile takes effect on. Values supported are 0 to 23 on the 24-hour clock (AM/PM times are not supported).","items":{"format":"int32","type":"integer"},"type":"array"},"minutes":{"description":"A collection of minutes at which the profile takes effect at.","items":{"format":"int32","type":"integer"},"type":"array"},"timeZone":{"description":"the timezone for the hours of the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time","type":"string"}},"required":["timeZone","days","hours","minutes"]},"Resource":{"description":"An azure resource object","properties":{"id":{"description":"Azure resource Id","readOnly":true,"type":"string"},"location":{"description":"Resource location","type":"string","x-ms-mutability":["create","read"]},"name":{"description":"Azure resource name","readOnly":true,"type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags"},"type":{"description":"Azure resource type","readOnly":true,"type":"string"}},"required":["location"],"x-ms-azure-resource":true},"ScaleAction":{"description":"The parameters for the scaling action.","properties":{"cooldown":{"description":"the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format.","format":"duration","type":"string"},"direction":{"description":"the scale direction. Whether the scaling action increases or decreases the number of instances.","enum":["None","Increase","Decrease"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"ScaleDirection"}},"type":{"description":"the type of action that should occur when the scale rule fires.","enum":["ChangeCount","PercentChangeCount","ExactCount"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"ScaleType"}},"value":{"default":"1","description":"the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1.","type":"string"}},"required":["direction","type","cooldown"]},"ScaleCapacity":{"description":"The number of instances that can be used during this profile.","properties":{"default":{"description":"the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default.","type":"string"},"maximum":{"description":"the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription.","type":"string"},"minimum":{"description":"the minimum number of instances for the resource.","type":"string"}},"required":["minimum","maximum","default"]},"ScaleRule":{"description":"A rule that provide the triggers and parameters for the scaling action.","properties":{"metricTrigger":{"$ref":"#/components/schemas/MetricTrigger"},"scaleAction":{"$ref":"#/components/schemas/ScaleAction"}},"required":["scaleAction","metricTrigger"]},"TimeWindow":{"description":"A specific date-time for the profile.","properties":{"end":{"description":"the end time for the profile in ISO 8601 format.","format":"date-time","type":"string"},"start":{"description":"the start time for the profile in ISO 8601 format.","format":"date-time","type":"string"},"timeZone":{"description":"the timezone of the start and end times for the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time","type":"string"}},"required":["start","end"]},"WebhookNotification":{"description":"Webhook notification of an autoscale event.","properties":{"properties":{"additionalProperties":{"type":"string"},"description":"a property bag of settings. This value can be empty.","type":"object"},"serviceUri":{"description":"the service address to receive the notification.","type":"string"}}}}}}