Skip to content

Commit

Permalink
CodeGen from PR 12090 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Add autorest.az configurations for azure monitor control service (#12090)

* add AMCS config for codegen

* reorganize command group

* rename command group

* Codegen modify try to rename DataCollectionRules create parameters

* hide DataCollectionRules Create & Update commands and DataCollectionRuleAssociations Create command

* use alias instand of rename in code-gen

* use monitor-control-service as the extension name

* Update readme.python.md
  • Loading branch information
SDKAuto committed Dec 23, 2020
1 parent 9cd73d3 commit 0728153
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 0728153

Please sign in to comment.