Skip to content

Commit 8818212

Browse files
author
SDKAuto
committed
CodeGen from PR 12371 in Azure/azure-rest-api-specs
Merge 5481aacd70c581bd45d8a8cd97536153e200b08c into 14313ea8bb4807f71b970334262b4e199797a4a1
1 parent 77650ab commit 8818212

File tree

17 files changed

+5841
-3
lines changed

17 files changed

+5841
-3
lines changed

schemas/2015-04-01/microsoft.insights.json

Lines changed: 697 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 222 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,222 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2015-07-01/microsoft.insights.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "microsoft.insights",
5+
"description": "microsoft insights Resource Types",
6+
"resourceDefinitions": {},
7+
"unknown_resourceDefinitions": {
8+
"diagnosticSettings": {
9+
"type": "object",
10+
"properties": {
11+
"apiVersion": {
12+
"type": "string",
13+
"enum": [
14+
"2015-07-01"
15+
]
16+
},
17+
"location": {
18+
"type": "string",
19+
"description": "Resource location"
20+
},
21+
"name": {
22+
"type": "string",
23+
"enum": [
24+
"service"
25+
]
26+
},
27+
"properties": {
28+
"oneOf": [
29+
{
30+
"$ref": "#/definitions/ServiceDiagnosticSettings"
31+
},
32+
{
33+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
34+
}
35+
],
36+
"description": "The diagnostic settings for service."
37+
},
38+
"tags": {
39+
"oneOf": [
40+
{
41+
"type": "object",
42+
"additionalProperties": {
43+
"type": "string"
44+
},
45+
"properties": {}
46+
},
47+
{
48+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
49+
}
50+
],
51+
"description": "Resource tags"
52+
},
53+
"type": {
54+
"type": "string",
55+
"enum": [
56+
"microsoft.insights/diagnosticSettings"
57+
]
58+
}
59+
},
60+
"required": [
61+
"apiVersion",
62+
"location",
63+
"name",
64+
"properties",
65+
"type"
66+
],
67+
"description": "microsoft.insights/diagnosticSettings"
68+
}
69+
},
70+
"definitions": {
71+
"LogSettings": {
72+
"type": "object",
73+
"properties": {
74+
"category": {
75+
"type": "string",
76+
"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."
77+
},
78+
"enabled": {
79+
"oneOf": [
80+
{
81+
"type": "boolean"
82+
},
83+
{
84+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
85+
}
86+
],
87+
"description": "a value indicating whether this log is enabled."
88+
},
89+
"retentionPolicy": {
90+
"oneOf": [
91+
{
92+
"$ref": "#/definitions/RetentionPolicy"
93+
},
94+
{
95+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
96+
}
97+
],
98+
"description": "Specifies the retention policy for the log."
99+
}
100+
},
101+
"required": [
102+
"enabled"
103+
],
104+
"description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log."
105+
},
106+
"MetricSettings": {
107+
"type": "object",
108+
"properties": {
109+
"enabled": {
110+
"oneOf": [
111+
{
112+
"type": "boolean"
113+
},
114+
{
115+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
116+
}
117+
],
118+
"description": "a value indicating whether this timegrain is enabled."
119+
},
120+
"retentionPolicy": {
121+
"oneOf": [
122+
{
123+
"$ref": "#/definitions/RetentionPolicy"
124+
},
125+
{
126+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
127+
}
128+
],
129+
"description": "Specifies the retention policy for the log."
130+
},
131+
"timeGrain": {
132+
"type": "string",
133+
"format": "duration",
134+
"description": "the timegrain of the metric in ISO8601 format."
135+
}
136+
},
137+
"required": [
138+
"enabled",
139+
"timeGrain"
140+
],
141+
"description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric."
142+
},
143+
"RetentionPolicy": {
144+
"type": "object",
145+
"properties": {
146+
"days": {
147+
"oneOf": [
148+
{
149+
"type": "integer"
150+
},
151+
{
152+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
153+
}
154+
],
155+
"description": "the number of days for the retention in days. A value of 0 will retain the events indefinitely."
156+
},
157+
"enabled": {
158+
"oneOf": [
159+
{
160+
"type": "boolean"
161+
},
162+
{
163+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
164+
}
165+
],
166+
"description": "a value indicating whether the retention policy is enabled."
167+
}
168+
},
169+
"required": [
170+
"days",
171+
"enabled"
172+
],
173+
"description": "Specifies the retention policy for the log."
174+
},
175+
"ServiceDiagnosticSettings": {
176+
"type": "object",
177+
"properties": {
178+
"logs": {
179+
"oneOf": [
180+
{
181+
"type": "array",
182+
"items": {
183+
"$ref": "#/definitions/LogSettings"
184+
}
185+
},
186+
{
187+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
188+
}
189+
],
190+
"description": "the list of logs settings."
191+
},
192+
"metrics": {
193+
"oneOf": [
194+
{
195+
"type": "array",
196+
"items": {
197+
"$ref": "#/definitions/MetricSettings"
198+
}
199+
},
200+
{
201+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
202+
}
203+
],
204+
"description": "the list of metric settings."
205+
},
206+
"serviceBusRuleId": {
207+
"type": "string",
208+
"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}'."
209+
},
210+
"storageAccountId": {
211+
"type": "string",
212+
"description": "The resource ID of the storage account to which you would like to send Diagnostic Logs."
213+
},
214+
"workspaceId": {
215+
"type": "string",
216+
"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"
217+
}
218+
},
219+
"description": "The diagnostic settings for service."
220+
}
221+
}
222+
}

0 commit comments

Comments
 (0)