@aws-cdk/service-spec-importers 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +89 -0
  3. package/bin/analyze-db +2 -0
  4. package/bin/diff-db +2 -0
  5. package/bin/import-db +2 -0
  6. package/lib/cli/analyze-db.d.ts +1 -0
  7. package/lib/cli/analyze-db.js +56 -0
  8. package/lib/cli/diff-db.d.ts +1 -0
  9. package/lib/cli/diff-db.js +36 -0
  10. package/lib/cli/import-db.d.ts +1 -0
  11. package/lib/cli/import-db.js +123 -0
  12. package/lib/cli/util.d.ts +4 -0
  13. package/lib/cli/util.js +23 -0
  14. package/lib/db-builder.d.ts +74 -0
  15. package/lib/db-builder.js +144 -0
  16. package/lib/db-diff.d.ts +24 -0
  17. package/lib/db-diff.js +104 -0
  18. package/lib/diff-fmt.d.ts +16 -0
  19. package/lib/diff-fmt.js +218 -0
  20. package/lib/diff-helpers.d.ts +21 -0
  21. package/lib/diff-helpers.js +123 -0
  22. package/lib/importers/import-canned-metrics.d.ts +4 -0
  23. package/lib/importers/import-canned-metrics.js +65 -0
  24. package/lib/importers/import-cloudformation-docs.d.ts +3 -0
  25. package/lib/importers/import-cloudformation-docs.js +44 -0
  26. package/lib/importers/import-cloudformation-registry.d.ts +10 -0
  27. package/lib/importers/import-cloudformation-registry.js +326 -0
  28. package/lib/importers/import-resource-spec.d.ts +67 -0
  29. package/lib/importers/import-resource-spec.js +255 -0
  30. package/lib/importers/import-sam.d.ts +42 -0
  31. package/lib/importers/import-sam.js +115 -0
  32. package/lib/importers/import-stateful-resources.d.ts +3 -0
  33. package/lib/importers/import-stateful-resources.js +12 -0
  34. package/lib/index.d.ts +6 -0
  35. package/lib/index.js +36 -0
  36. package/lib/loaders/index.d.ts +8 -0
  37. package/lib/loaders/index.js +25 -0
  38. package/lib/loaders/load-cloudformation-docs.d.ts +3 -0
  39. package/lib/loaders/load-cloudformation-docs.js +15 -0
  40. package/lib/loaders/load-cloudformation-registry.d.ts +16 -0
  41. package/lib/loaders/load-cloudformation-registry.js +72 -0
  42. package/lib/loaders/load-cloudwatch-console-service-directory.d.ts +3 -0
  43. package/lib/loaders/load-cloudwatch-console-service-directory.js +13 -0
  44. package/lib/loaders/load-resource-spec.d.ts +3 -0
  45. package/lib/loaders/load-resource-spec.js +54 -0
  46. package/lib/loaders/load-sam-schema.d.ts +11 -0
  47. package/lib/loaders/load-sam-schema.js +21 -0
  48. package/lib/loaders/load-sam-spec.d.ts +6 -0
  49. package/lib/loaders/load-sam-spec.js +20 -0
  50. package/lib/loaders/load-stateful-resources.d.ts +3 -0
  51. package/lib/loaders/load-stateful-resources.js +15 -0
  52. package/lib/loaders/loader.d.ts +77 -0
  53. package/lib/loaders/loader.js +181 -0
  54. package/lib/patches/index.d.ts +2 -0
  55. package/lib/patches/index.js +21 -0
  56. package/lib/patches/json-schema-patches.d.ts +70 -0
  57. package/lib/patches/json-schema-patches.js +215 -0
  58. package/lib/patches/registry-patches.d.ts +49 -0
  59. package/lib/patches/registry-patches.js +250 -0
  60. package/lib/patching/field-witnesses.d.ts +18 -0
  61. package/lib/patching/field-witnesses.js +93 -0
  62. package/lib/patching/format-patch-report.d.ts +5 -0
  63. package/lib/patching/format-patch-report.js +157 -0
  64. package/lib/patching/fp/index.d.ts +1 -0
  65. package/lib/patching/fp/index.js +18 -0
  66. package/lib/patching/fp/patch.d.ts +15 -0
  67. package/lib/patching/fp/patch.js +54 -0
  68. package/lib/patching/index.d.ts +6 -0
  69. package/lib/patching/index.js +36 -0
  70. package/lib/patching/json-lens.d.ts +54 -0
  71. package/lib/patching/json-lens.js +10 -0
  72. package/lib/patching/json-patch-set.d.ts +33 -0
  73. package/lib/patching/json-patch-set.js +269 -0
  74. package/lib/patching/patching.d.ts +65 -0
  75. package/lib/patching/patching.js +210 -0
  76. package/lib/patching/reason.d.ts +22 -0
  77. package/lib/patching/reason.js +37 -0
  78. package/lib/printable-tree.d.ts +19 -0
  79. package/lib/printable-tree.js +117 -0
  80. package/lib/report/index.d.ts +1 -0
  81. package/lib/report/index.js +18 -0
  82. package/lib/report/problem-report.d.ts +34 -0
  83. package/lib/report/problem-report.js +119 -0
  84. package/lib/report/sorting.d.ts +4 -0
  85. package/lib/report/sorting.js +29 -0
  86. package/lib/resource-builder.d.ts +88 -0
  87. package/lib/resource-builder.js +331 -0
  88. package/lib/schema-manipulation/unify-schemas.d.ts +8 -0
  89. package/lib/schema-manipulation/unify-schemas.js +213 -0
  90. package/lib/types/cloudformation-docs/CloudFormationDocumentation.d.ts +18 -0
  91. package/lib/types/cloudformation-docs/CloudFormationDocumentation.js +3 -0
  92. package/lib/types/cloudwatch-console-service-directory/CloudWatchConsoleServiceDirectory.d.ts +189 -0
  93. package/lib/types/cloudwatch-console-service-directory/CloudWatchConsoleServiceDirectory.js +12 -0
  94. package/lib/types/index.d.ts +7 -0
  95. package/lib/types/index.js +24 -0
  96. package/lib/types/registry-schema/CloudFormationRegistrySchema.d.ts +169 -0
  97. package/lib/types/registry-schema/CloudFormationRegistrySchema.js +17 -0
  98. package/lib/types/registry-schema/JsonSchema.d.ts +166 -0
  99. package/lib/types/registry-schema/JsonSchema.js +173 -0
  100. package/lib/types/resource-specification/resource-spec.d.ts +83 -0
  101. package/lib/types/resource-specification/resource-spec.js +17 -0
  102. package/lib/types/sam/SamTemplateSchema.d.ts +5 -0
  103. package/lib/types/sam/SamTemplateSchema.js +3 -0
  104. package/lib/types/stateful-resources/StatefulResources.d.ts +8 -0
  105. package/lib/types/stateful-resources/StatefulResources.js +3 -0
  106. package/package.json +119 -0
  107. package/schemas/CloudFormationDocumentation.schema.json +43 -0
  108. package/schemas/CloudFormationRegistryResource.schema.json +818 -0
  109. package/schemas/CloudFormationResourceSpecification.schema.json +184 -0
  110. package/schemas/CloudWatchConsoleServiceDirectory.schema.json +536 -0
  111. package/schemas/ResourceSpecification.schema.json +144 -0
  112. package/schemas/SAMResourceSpecification.schema.json +228 -0
  113. package/schemas/SamTemplateSchema.schema.json +534 -0
  114. package/schemas/StatefulResources.schema.json +30 -0
@@ -0,0 +1,184 @@
1
+ {
2
+ "$ref": "#/definitions/CloudFormationResourceSpecification",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "CloudFormationResourceSpecification": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "PropertyTypes": {
9
+ "additionalProperties": {
10
+ "anyOf": [
11
+ {
12
+ "$ref": "#/definitions/resourcespec.PropertyType"
13
+ },
14
+ {
15
+ "$ref": "#/definitions/resourcespec.SingleTypeAlias"
16
+ }
17
+ ]
18
+ },
19
+ "description": "Not really valid for this to be a plain property, but it happens in practice anyway",
20
+ "type": "object"
21
+ },
22
+ "ResourceSpecificationVersion": {
23
+ "type": "string"
24
+ },
25
+ "ResourceTypes": {
26
+ "additionalProperties": {
27
+ "$ref": "#/definitions/resourcespec.ResourceType"
28
+ },
29
+ "type": "object"
30
+ }
31
+ },
32
+ "required": [
33
+ "ResourceSpecificationVersion",
34
+ "ResourceTypes",
35
+ "PropertyTypes"
36
+ ],
37
+ "type": "object"
38
+ },
39
+ "resourcespec.Attribute": {
40
+ "additionalProperties": false,
41
+ "properties": {
42
+ "Documentation": {
43
+ "type": "string"
44
+ },
45
+ "DuplicatesAllowed": {
46
+ "type": "boolean"
47
+ },
48
+ "ItemType": {
49
+ "type": "string"
50
+ },
51
+ "PrimitiveItemType": {
52
+ "type": "string"
53
+ },
54
+ "PrimitiveType": {
55
+ "type": "string"
56
+ },
57
+ "Required": {
58
+ "type": "boolean"
59
+ },
60
+ "Type": {
61
+ "type": "string"
62
+ }
63
+ },
64
+ "type": "object"
65
+ },
66
+ "resourcespec.Property": {
67
+ "additionalProperties": false,
68
+ "properties": {
69
+ "Documentation": {
70
+ "type": "string"
71
+ },
72
+ "DuplicatesAllowed": {
73
+ "type": "boolean"
74
+ },
75
+ "ItemType": {
76
+ "type": "string"
77
+ },
78
+ "PrimitiveItemType": {
79
+ "type": "string"
80
+ },
81
+ "PrimitiveType": {
82
+ "type": "string"
83
+ },
84
+ "Required": {
85
+ "type": "boolean"
86
+ },
87
+ "Type": {
88
+ "type": "string"
89
+ },
90
+ "UpdateType": {
91
+ "enum": [
92
+ "Mutable",
93
+ "Immutable",
94
+ "Conditional"
95
+ ],
96
+ "type": "string"
97
+ }
98
+ },
99
+ "required": [
100
+ "UpdateType"
101
+ ],
102
+ "type": "object"
103
+ },
104
+ "resourcespec.PropertyType": {
105
+ "additionalProperties": false,
106
+ "properties": {
107
+ "Documentation": {
108
+ "type": "string"
109
+ },
110
+ "DuplicatesAllowed": {
111
+ "type": "boolean"
112
+ },
113
+ "ItemType": {
114
+ "type": "string"
115
+ },
116
+ "PrimitiveItemType": {
117
+ "type": "string"
118
+ },
119
+ "PrimitiveType": {
120
+ "type": "string"
121
+ },
122
+ "Properties": {
123
+ "additionalProperties": {
124
+ "$ref": "#/definitions/resourcespec.Property"
125
+ },
126
+ "type": "object"
127
+ },
128
+ "Type": {
129
+ "type": "string"
130
+ }
131
+ },
132
+ "type": "object"
133
+ },
134
+ "resourcespec.ResourceType": {
135
+ "additionalProperties": false,
136
+ "properties": {
137
+ "AdditionalProperties": {
138
+ "type": "boolean"
139
+ },
140
+ "Attributes": {
141
+ "additionalProperties": {
142
+ "$ref": "#/definitions/resourcespec.Attribute"
143
+ },
144
+ "type": "object"
145
+ },
146
+ "Documentation": {
147
+ "type": "string"
148
+ },
149
+ "Properties": {
150
+ "additionalProperties": {
151
+ "$ref": "#/definitions/resourcespec.Property"
152
+ },
153
+ "type": "object"
154
+ }
155
+ },
156
+ "type": "object"
157
+ },
158
+ "resourcespec.SingleTypeAlias": {
159
+ "additionalProperties": false,
160
+ "description": "Used for PropertyTypes that alias a single other type (usually Json)",
161
+ "properties": {
162
+ "Documentation": {
163
+ "type": "string"
164
+ },
165
+ "DuplicatesAllowed": {
166
+ "type": "boolean"
167
+ },
168
+ "ItemType": {
169
+ "type": "string"
170
+ },
171
+ "PrimitiveItemType": {
172
+ "type": "string"
173
+ },
174
+ "PrimitiveType": {
175
+ "type": "string"
176
+ },
177
+ "Type": {
178
+ "type": "string"
179
+ }
180
+ },
181
+ "type": "object"
182
+ }
183
+ }
184
+ }
@@ -0,0 +1,536 @@
1
+ {
2
+ "$ref": "#/definitions/CloudWatchConsoleServiceDirectory",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "AlarmPattern": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "dimensions": {
9
+ "items": {
10
+ "$ref": "#/definitions/Dimension"
11
+ },
12
+ "type": "array"
13
+ },
14
+ "namespace": {
15
+ "type": "string"
16
+ }
17
+ },
18
+ "required": [
19
+ "namespace",
20
+ "dimensions"
21
+ ],
22
+ "type": "object"
23
+ },
24
+ "Axis": {
25
+ "additionalProperties": false,
26
+ "properties": {
27
+ "label": {
28
+ "type": "string"
29
+ },
30
+ "max": {
31
+ "type": "number"
32
+ },
33
+ "min": {
34
+ "type": "number"
35
+ },
36
+ "showUnits": {
37
+ "type": "boolean"
38
+ }
39
+ },
40
+ "type": "object"
41
+ },
42
+ "CloudWatchConsoleServiceDirectory": {
43
+ "description": "CloudWatchConsoleServiceDirectory\n\nThis source of AWS metrics is kindly provided to us by the CloudWatch Explorer team (and used in their console).\n\n!! While this file contains types for the full source spec, !! only `metricTemplates` data is currently used.",
44
+ "items": {
45
+ "$ref": "#/definitions/ServiceDirectoryEntry"
46
+ },
47
+ "type": "array"
48
+ },
49
+ "Control": {
50
+ "additionalProperties": false,
51
+ "properties": {
52
+ "labelField": {
53
+ "type": "string"
54
+ },
55
+ "resourceDashboard": {
56
+ "type": "string"
57
+ },
58
+ "resourceType": {
59
+ "type": "string"
60
+ },
61
+ "serviceDashboard": {
62
+ "type": "string"
63
+ },
64
+ "type": {
65
+ "type": "string"
66
+ },
67
+ "valueField": {
68
+ "type": "string"
69
+ }
70
+ },
71
+ "required": [
72
+ "type",
73
+ "resourceType",
74
+ "labelField",
75
+ "valueField"
76
+ ],
77
+ "type": "object"
78
+ },
79
+ "Dashboard": {
80
+ "additionalProperties": false,
81
+ "properties": {
82
+ "controls": {
83
+ "items": {
84
+ "type": "string"
85
+ },
86
+ "type": "array"
87
+ },
88
+ "dependencies": {
89
+ "items": {
90
+ "$ref": "#/definitions/Dependency"
91
+ },
92
+ "type": "array"
93
+ },
94
+ "id": {
95
+ "type": "string"
96
+ },
97
+ "name": {
98
+ "type": "string"
99
+ },
100
+ "rows": {
101
+ "items": {
102
+ "$ref": "#/definitions/Row"
103
+ },
104
+ "type": "array"
105
+ },
106
+ "tables": {
107
+ "items": {
108
+ "$ref": "#/definitions/Table"
109
+ },
110
+ "type": "array"
111
+ }
112
+ },
113
+ "required": [
114
+ "id"
115
+ ],
116
+ "type": "object"
117
+ },
118
+ "Dependency": {
119
+ "additionalProperties": false,
120
+ "properties": {
121
+ "namespace": {
122
+ "type": "string"
123
+ }
124
+ },
125
+ "required": [
126
+ "namespace"
127
+ ],
128
+ "type": "object"
129
+ },
130
+ "Dimension": {
131
+ "additionalProperties": false,
132
+ "description": "Dimension for this set of metric templates",
133
+ "properties": {
134
+ "dimensionName": {
135
+ "description": "Name of the dimension",
136
+ "type": "string"
137
+ },
138
+ "dimensionValue": {
139
+ "description": "A potential fixed value for this dimension\n\n(Currently unused by the spec reader, but could be used)",
140
+ "type": "string"
141
+ },
142
+ "labelName": {
143
+ "description": "Label for this dimension",
144
+ "type": "string"
145
+ }
146
+ },
147
+ "required": [
148
+ "dimensionName"
149
+ ],
150
+ "type": "object"
151
+ },
152
+ "ForeignKey": {
153
+ "additionalProperties": false,
154
+ "properties": {
155
+ "fields": {
156
+ "items": {
157
+ "type": "string"
158
+ },
159
+ "type": "array"
160
+ },
161
+ "resourceType": {
162
+ "type": "string"
163
+ }
164
+ },
165
+ "required": [
166
+ "resourceType",
167
+ "fields"
168
+ ],
169
+ "type": "object"
170
+ },
171
+ "Metric": {
172
+ "additionalProperties": false,
173
+ "description": "A description of an available metric",
174
+ "properties": {
175
+ "defaultPeriod": {
176
+ "description": "Default (suggested) period for this metric",
177
+ "type": "number"
178
+ },
179
+ "defaultStat": {
180
+ "description": "Default (suggested) statistic for this metric",
181
+ "type": "string"
182
+ },
183
+ "id": {
184
+ "description": "Id of the metric",
185
+ "type": "string"
186
+ },
187
+ "name": {
188
+ "description": "Name of the metric",
189
+ "type": "string"
190
+ }
191
+ },
192
+ "required": [
193
+ "id",
194
+ "name",
195
+ "defaultStat"
196
+ ],
197
+ "type": "object"
198
+ },
199
+ "MetricTemplate": {
200
+ "additionalProperties": false,
201
+ "description": "A single metric template for a resource",
202
+ "properties": {
203
+ "defaultPeriod": {
204
+ "description": "The recommended default period for this set of metrics",
205
+ "type": "number"
206
+ },
207
+ "dimensions": {
208
+ "description": "Set of dimensions for this set of metrics",
209
+ "items": {
210
+ "$ref": "#/definitions/Dimension"
211
+ },
212
+ "type": "array"
213
+ },
214
+ "id": {
215
+ "type": "string"
216
+ },
217
+ "metrics": {
218
+ "description": "Set of metrics these dimensions apply to",
219
+ "items": {
220
+ "$ref": "#/definitions/Metric"
221
+ },
222
+ "type": "array"
223
+ },
224
+ "namespace": {
225
+ "description": "Metric namespace",
226
+ "type": "string"
227
+ },
228
+ "resourceType": {
229
+ "description": "CloudFormation resource name",
230
+ "type": "string"
231
+ }
232
+ },
233
+ "required": [
234
+ "resourceType",
235
+ "namespace",
236
+ "dimensions",
237
+ "metrics"
238
+ ],
239
+ "type": "object"
240
+ },
241
+ "ResourceType": {
242
+ "additionalProperties": false,
243
+ "description": "!! Here be dragons !! The following types and associated data are not currently used",
244
+ "properties": {
245
+ "alarmPatterns": {
246
+ "items": {
247
+ "$ref": "#/definitions/AlarmPattern"
248
+ },
249
+ "type": "array"
250
+ },
251
+ "arnRegex": {
252
+ "type": "string"
253
+ },
254
+ "consoleLink": {
255
+ "type": "string"
256
+ },
257
+ "dashboard": {
258
+ "type": "string"
259
+ },
260
+ "describe": {
261
+ "type": "string"
262
+ },
263
+ "drawerDashboard": {
264
+ "type": "string"
265
+ },
266
+ "entityType": {
267
+ "type": "string"
268
+ },
269
+ "foreignKeys": {
270
+ "items": {
271
+ "$ref": "#/definitions/ForeignKey"
272
+ },
273
+ "type": "array"
274
+ },
275
+ "identifyingLabels": {
276
+ "items": {
277
+ "type": "string"
278
+ },
279
+ "type": "array"
280
+ },
281
+ "isResourceNode": {
282
+ "type": "boolean"
283
+ },
284
+ "keyMetric": {
285
+ "type": "string"
286
+ },
287
+ "list": {
288
+ "type": "string"
289
+ },
290
+ "metricTransformer": {
291
+ "type": "string"
292
+ },
293
+ "nodeNameRegex": {
294
+ "type": "string"
295
+ },
296
+ "resourceDecorator": {
297
+ "type": "string"
298
+ },
299
+ "type": {
300
+ "type": "string"
301
+ }
302
+ },
303
+ "required": [
304
+ "type",
305
+ "keyMetric"
306
+ ],
307
+ "type": "object"
308
+ },
309
+ "Row": {
310
+ "additionalProperties": false,
311
+ "properties": {
312
+ "widgets": {
313
+ "items": {
314
+ "$ref": "#/definitions/Widget"
315
+ },
316
+ "type": "array"
317
+ }
318
+ },
319
+ "required": [
320
+ "widgets"
321
+ ],
322
+ "type": "object"
323
+ },
324
+ "ServiceDirectoryEntry": {
325
+ "additionalProperties": false,
326
+ "properties": {
327
+ "controls": {
328
+ "additionalProperties": {
329
+ "$ref": "#/definitions/Control"
330
+ },
331
+ "type": "object"
332
+ },
333
+ "crossServiceDashboard": {
334
+ "type": "string"
335
+ },
336
+ "dashboard": {
337
+ "type": "string"
338
+ },
339
+ "dashboards": {
340
+ "items": {
341
+ "$ref": "#/definitions/Dashboard"
342
+ },
343
+ "type": "array"
344
+ },
345
+ "id": {
346
+ "type": "string"
347
+ },
348
+ "metricTemplates": {
349
+ "items": {
350
+ "$ref": "#/definitions/MetricTemplate"
351
+ },
352
+ "type": "array"
353
+ },
354
+ "resourceTypes": {
355
+ "items": {
356
+ "$ref": "#/definitions/ResourceType"
357
+ },
358
+ "type": "array"
359
+ }
360
+ },
361
+ "required": [
362
+ "id"
363
+ ],
364
+ "type": "object"
365
+ },
366
+ "Table": {
367
+ "additionalProperties": false,
368
+ "properties": {
369
+ "columns": {
370
+ "items": {
371
+ "type": "string"
372
+ },
373
+ "type": "array"
374
+ },
375
+ "resourceType": {
376
+ "type": "string"
377
+ }
378
+ },
379
+ "required": [
380
+ "resourceType",
381
+ "columns"
382
+ ],
383
+ "type": "object"
384
+ },
385
+ "Widget": {
386
+ "additionalProperties": false,
387
+ "properties": {
388
+ "height": {
389
+ "type": "number"
390
+ },
391
+ "metrics": {
392
+ "items": {
393
+ "$ref": "#/definitions/WidgetMetric"
394
+ },
395
+ "type": "array"
396
+ },
397
+ "properties": {
398
+ "$ref": "#/definitions/WidgetProperties"
399
+ },
400
+ "source": {
401
+ "type": "string"
402
+ },
403
+ "type": {
404
+ "type": "string"
405
+ },
406
+ "width": {
407
+ "type": "number"
408
+ }
409
+ },
410
+ "required": [
411
+ "type"
412
+ ],
413
+ "type": "object"
414
+ },
415
+ "WidgetLegend": {
416
+ "additionalProperties": false,
417
+ "properties": {
418
+ "position": {
419
+ "type": "string"
420
+ }
421
+ },
422
+ "required": [
423
+ "position"
424
+ ],
425
+ "type": "object"
426
+ },
427
+ "WidgetMetric": {
428
+ "additionalProperties": false,
429
+ "properties": {
430
+ "metricExpression": {
431
+ "type": "string"
432
+ },
433
+ "metricOptions": {
434
+ "$ref": "#/definitions/WidgetMetricOptions"
435
+ },
436
+ "metricTemplate": {
437
+ "type": "string"
438
+ },
439
+ "resourceType": {
440
+ "anyOf": [
441
+ {
442
+ "type": "string"
443
+ },
444
+ {
445
+ "const": false,
446
+ "type": "boolean"
447
+ }
448
+ ]
449
+ }
450
+ },
451
+ "type": "object"
452
+ },
453
+ "WidgetMetricOptions": {
454
+ "additionalProperties": false,
455
+ "properties": {
456
+ "color": {
457
+ "type": "string"
458
+ },
459
+ "expression": {
460
+ "type": "string"
461
+ },
462
+ "id": {
463
+ "type": "string"
464
+ },
465
+ "label": {
466
+ "type": "string"
467
+ },
468
+ "period": {
469
+ "type": "number"
470
+ },
471
+ "stat": {
472
+ "type": "string"
473
+ },
474
+ "visible": {
475
+ "type": "boolean"
476
+ },
477
+ "yAxis": {
478
+ "type": "string"
479
+ }
480
+ },
481
+ "type": "object"
482
+ },
483
+ "WidgetProperties": {
484
+ "additionalProperties": false,
485
+ "properties": {
486
+ "legend": {
487
+ "$ref": "#/definitions/WidgetLegend"
488
+ },
489
+ "markdown": {
490
+ "type": "string"
491
+ },
492
+ "metrics": {
493
+ "items": {
494
+ "items": {
495
+ "anyOf": [
496
+ {
497
+ "type": "string"
498
+ },
499
+ {
500
+ "$ref": "#/definitions/WidgetMetricOptions"
501
+ }
502
+ ]
503
+ },
504
+ "type": "array"
505
+ },
506
+ "type": "array"
507
+ },
508
+ "stat": {
509
+ "type": "string"
510
+ },
511
+ "title": {
512
+ "type": "string"
513
+ },
514
+ "view": {
515
+ "type": "string"
516
+ },
517
+ "yAxis": {
518
+ "$ref": "#/definitions/WidgetYAxis"
519
+ }
520
+ },
521
+ "type": "object"
522
+ },
523
+ "WidgetYAxis": {
524
+ "additionalProperties": false,
525
+ "properties": {
526
+ "left": {
527
+ "$ref": "#/definitions/Axis"
528
+ },
529
+ "right": {
530
+ "$ref": "#/definitions/Axis"
531
+ }
532
+ },
533
+ "type": "object"
534
+ }
535
+ }
536
+ }