Skip to content

Commit

Permalink
CodeGen from PR 11643 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Add api-version monitor to go SDK (#11643)

* Add api-version monitor

* try to fix autorest error

* Fix

* replace subscription id and api-version parameters by the ones from common-types

* resolve conflicts

* remove 2020-03
  • Loading branch information
SDKAuto committed Jan 8, 2021
1 parent ec927e4 commit 53a84ad
Show file tree
Hide file tree
Showing 17 changed files with 5,972 additions and 203 deletions.
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."
}
}
}
Loading

0 comments on commit 53a84ad

Please sign in to comment.