231 строка
7.3 KiB
JSON
231 строка
7.3 KiB
JSON
{
|
|
"id": "https://schema.management.azure.com/schemas/2016-09-01/Microsoft.Insights.json#",
|
|
"title": "microsoft.insights",
|
|
"description": "microsoft insights Resource Types",
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"unknown_resourceDefinitions": {
|
|
"diagnosticSettings": {
|
|
"description": "microsoft.insights/diagnosticSettings",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"enum": [
|
|
"2016-09-01"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"location": {
|
|
"description": "Resource location",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"oneOf": [
|
|
{
|
|
"enum": [
|
|
"service"
|
|
],
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"properties": {
|
|
"description": "The service diagnostics settings of the resource.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/ServiceDiagnosticSettings"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"tags": {
|
|
"description": "Resource tags",
|
|
"oneOf": [
|
|
{
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"microsoft.insights/diagnosticSettings"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"properties",
|
|
"apiVersion",
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
"definitions": {
|
|
"LogSettings": {
|
|
"description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log.",
|
|
"properties": {
|
|
"category": {
|
|
"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.",
|
|
"type": "string"
|
|
},
|
|
"enabled": {
|
|
"description": "a value indicating whether this log is enabled.",
|
|
"oneOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"retentionPolicy": {
|
|
"description": "the retention policy for this log.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/RetentionPolicy"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"enabled"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"MetricSettings": {
|
|
"description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric.",
|
|
"properties": {
|
|
"enabled": {
|
|
"description": "a value indicating whether this timegrain is enabled.",
|
|
"oneOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"retentionPolicy": {
|
|
"description": "the retention policy for this timegrain.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/RetentionPolicy"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"timeGrain": {
|
|
"description": "the timegrain of the metric in ISO8601 format.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"timeGrain",
|
|
"enabled"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"RetentionPolicy": {
|
|
"description": "Specifies the retention policy for the log.",
|
|
"properties": {
|
|
"days": {
|
|
"description": "the number of days for the retention in days. A value of 0 will retain the events indefinitely.",
|
|
"oneOf": [
|
|
{
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"enabled": {
|
|
"description": "a value indicating whether the retention policy is enabled.",
|
|
"oneOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"enabled",
|
|
"days"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"ServiceDiagnosticSettings": {
|
|
"description": "The diagnostic settings for service.",
|
|
"properties": {
|
|
"eventHubAuthorizationRuleId": {
|
|
"description": "The resource Id for the event hub namespace authorization rule.",
|
|
"type": "string"
|
|
},
|
|
"logs": {
|
|
"description": "the list of logs settings.",
|
|
"oneOf": [
|
|
{
|
|
"items": {
|
|
"$ref": "#/definitions/LogSettings"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"metrics": {
|
|
"description": "the list of metric settings.",
|
|
"oneOf": [
|
|
{
|
|
"items": {
|
|
"$ref": "#/definitions/MetricSettings"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"serviceBusRuleId": {
|
|
"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}'.",
|
|
"type": "string"
|
|
},
|
|
"storageAccountId": {
|
|
"description": "The resource ID of the storage account to which you would like to send Diagnostic Logs.",
|
|
"type": "string"
|
|
},
|
|
"workspaceId": {
|
|
"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",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
} |