Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR monitor] New api version 2021-02-01-preview #1684

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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