Skip to content

Commit

Permalink
CodeGen from PR 12736 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge e6bcbb8805791b6cafb9810fafd0c791dec355e6 into 19234797aebaac189ab89ba27ffb56695e0fea35
  • Loading branch information
SDKAuto committed Feb 26, 2021
1 parent fe0972d commit 126deff
Show file tree
Hide file tree
Showing 19 changed files with 5,925 additions and 661 deletions.
1,120 changes: 464 additions & 656 deletions schemas/2014-04-01/Microsoft.Insights.json

Large diffs are not rendered by default.

697 changes: 697 additions & 0 deletions schemas/2015-04-01/microsoft.insights.json

Large diffs are not rendered by default.

222 changes: 222 additions & 0 deletions schemas/2015-07-01/microsoft.insights.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
{
"id": "https://schema.management.azure.com/schemas/2015-07-01/microsoft.insights.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "microsoft.insights",
"description": "microsoft insights Resource Types",
"resourceDefinitions": {},
"unknown_resourceDefinitions": {
"diagnosticSettings": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2015-07-01"
]
},
"location": {
"type": "string",
"description": "Resource location"
},
"name": {
"type": "string",
"enum": [
"service"
]
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/ServiceDiagnosticSettings"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The diagnostic settings for service."
},
"tags": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Resource tags"
},
"type": {
"type": "string",
"enum": [
"microsoft.insights/diagnosticSettings"
]
}
},
"required": [
"apiVersion",
"location",
"name",
"properties",
"type"
],
"description": "microsoft.insights/diagnosticSettings"
}
},
"definitions": {
"LogSettings": {
"type": "object",
"properties": {
"category": {
"type": "string",
"description": "Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation."
},
"enabled": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "a value indicating whether this log is enabled."
},
"retentionPolicy": {
"oneOf": [
{
"$ref": "#/definitions/RetentionPolicy"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies the retention policy for the log."
}
},
"required": [
"enabled"
],
"description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log."
},
"MetricSettings": {
"type": "object",
"properties": {
"enabled": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "a value indicating whether this timegrain is enabled."
},
"retentionPolicy": {
"oneOf": [
{
"$ref": "#/definitions/RetentionPolicy"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies the retention policy for the log."
},
"timeGrain": {
"type": "string",
"format": "duration",
"description": "the timegrain of the metric in ISO8601 format."
}
},
"required": [
"enabled",
"timeGrain"
],
"description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric."
},
"RetentionPolicy": {
"type": "object",
"properties": {
"days": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "the number of days for the retention in days. A value of 0 will retain the events indefinitely."
},
"enabled": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "a value indicating whether the retention policy is enabled."
}
},
"required": [
"days",
"enabled"
],
"description": "Specifies the retention policy for the log."
},
"ServiceDiagnosticSettings": {
"type": "object",
"properties": {
"logs": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/LogSettings"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "the list of logs settings."
},
"metrics": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/MetricSettings"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "the list of metric settings."
},
"serviceBusRuleId": {
"type": "string",
"description": "The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming Diagnostic Logs. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'."
},
"storageAccountId": {
"type": "string",
"description": "The resource ID of the storage account to which you would like to send Diagnostic Logs."
},
"workspaceId": {
"type": "string",
"description": "The workspace ID (resource ID of a Log Analytics workspace) for a Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2"
}
},
"description": "The diagnostic settings for service."
}
}
}
2 changes: 1 addition & 1 deletion schemas/2016-03-01/Microsoft.Insights.json
Original file line number Diff line number Diff line change
Expand Up @@ -686,4 +686,4 @@
"description": "A rule condition based on a metric crossing a threshold."
}
}
}
}
Loading

0 comments on commit 126deff

Please sign in to comment.