Skip to content

Commit e2f0283

Browse files
authored
Move QueryPacks to OperationalInsights (#11785)
* Move QueryPacks to OperationalInsights * Some LintDiff fixes * fix * next issue * fix * fix * merge * fix merge
1 parent 7aab498 commit e2f0283

21 files changed

+79
-78
lines changed

specification/applicationinsights/resource-manager/readme.azureresourceschema.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ batch:
1111
- tag: schema-insights-2020-02-10-preview
1212
- tag: schema-insights-2020-02-02-preview
1313
- tag: schema-insights-2019-10-17-preview
14-
- tag: schema-insights-2019-09-01-preview
1514
- tag: schema-insights-2018-06-17-preview
1615
- tag: schema-insights-2018-05-01-preview
1716
- tag: schema-insights-2017-10-01
@@ -76,18 +75,6 @@ input-file:
7675

7776
```
7877

79-
### Tag: schema-insights-2019-09-01-preview and azureresourceschema
80-
81-
``` yaml $(tag) == 'schema-insights-2019-09-01-preview' && $(azureresourceschema)
82-
output-folder: $(azureresourceschema-folder)/schemas
83-
84-
# all the input files in this apiVersion
85-
input-file:
86-
- Microsoft.Insights/preview/2019-09-01-preview/QueryPackQueries_API.json
87-
- Microsoft.Insights/preview/2019-09-01-preview/QueryPacks_API.json
88-
89-
```
90-
9178
### Tag: schema-insights-2018-06-17-preview and azureresourceschema
9279

9380
``` yaml $(tag) == 'schema-insights-2018-06-17-preview' && $(azureresourceschema)

specification/applicationinsights/resource-manager/readme.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -336,16 +336,6 @@ input-file:
336336
- Microsoft.Insights/preview/2018-05-01-preview/components_API.json
337337
```
338338

339-
### Tag: package-2019-09-01-preview
340-
341-
These settings apply only when `--tag=package-2019-09-01-preview` is specified on the command line.
342-
343-
``` yaml $(tag) == 'package-2019-09-01-preview'
344-
input-file:
345-
- Microsoft.Insights/preview/2019-09-01-preview/QueryPackQueries_API.json
346-
- Microsoft.Insights/preview/2019-09-01-preview/QueryPacks_API.json
347-
```
348-
349339
### Tag: package-2020-02-02-preview
350340

351341
These settings apply only when `--tag=package-2020-02-02-preview` is specified on the command line.

specification/applicationinsights/resource-manager/readme.python.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ batch:
2121
- tag: package-2017-10
2222
- tag: package-2018-05-01-preview
2323
- tag: package-2018-06-17-preview
24-
- tag: package-2019-09-01-preview
2524
- tag: package-2019-10-17-preview
2625
- tag: package-2020-02-02-preview
2726
- tag: package-2020-03-01-preview
@@ -78,16 +77,6 @@ python:
7877
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview
7978
```
8079

81-
### Tag: package-2019-09-01-preview and python
82-
83-
These settings apply only when `--tag=package-2019-09-01-preview --python` is specified on the command line.
84-
85-
``` yaml $(tag) == 'package-2019-09-01-preview' && $(python)
86-
python:
87-
namespace: azure.mgmt.applicationinsights.v2019_09_01_preview
88-
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2019_09_01_preview
89-
```
90-
9180
### Tag: package-2020-02-02-preview and python
9281

9382
These settings apply only when `--tag=package-2020-02-02-preview --python` is specified on the command line.
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535
},
3636
"paths": {
37-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/queryPacks/{queryPackName}/queries": {
37+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries": {
3838
"get": {
3939
"description": "Gets a list of Queries defined within a Log Analytics QueryPack.",
4040
"operationId": "Queries_List",
@@ -85,7 +85,7 @@
8585
}
8686
}
8787
},
88-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/queryPacks/{queryPackName}/queries/search": {
88+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/search": {
8989
"post": {
9090
"description": "Search a list of Queries defined within a Log Analytics QueryPack according to given search properties.",
9191
"operationId": "Queries_Search",
@@ -145,7 +145,7 @@
145145
}
146146
}
147147
},
148-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/queryPacks/{queryPackName}/queries/{id}": {
148+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}": {
149149
"get": {
150150
"description": "Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.",
151151
"operationId": "Queries_Get",
@@ -445,10 +445,12 @@
445445
"$ref": "#/definitions/AzureResourceProperties"
446446
}
447447
],
448-
"description": "A Log Analytics QueryPack-Query definition."
448+
"description": "A Log Analytics QueryPack-Query definition.",
449+
"x-ms-azure-resource": true
449450
},
450451
"LogAnalyticsQueryPackQueryProperties": {
451452
"description": "Properties that define an Log Analytics QueryPack-Query resource.",
453+
"x-ms-azure-resource": true,
452454
"properties": {
453455
"id": {
454456
"type": "string",
@@ -672,6 +674,7 @@
672674
"in": "query",
673675
"required": false,
674676
"type": "integer",
677+
"format": "int64",
675678
"description": "Maximum items returned in page.",
676679
"x-ms-parameter-location": "method"
677680
},
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535
},
3636
"paths": {
37-
"/providers/Microsoft.Insights/operations": {
37+
"/providers/Microsoft.OperationalInsights/operations": {
3838
"get": {
3939
"tags": [
4040
"Operations"
@@ -71,7 +71,7 @@
7171
]
7272
}
7373
},
74-
"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/queryPacks": {
74+
"/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/queryPacks": {
7575
"get": {
7676
"description": "Gets a list of all Log Analytics QueryPacks within a subscription.",
7777
"operationId": "QueryPacks_List",
@@ -107,7 +107,7 @@
107107
}
108108
}
109109
},
110-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/queryPacks": {
110+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks": {
111111
"get": {
112112
"description": "Gets a list of Log Analytics QueryPacks within a resource group.",
113113
"operationId": "QueryPacks_ListByResourceGroup",
@@ -146,7 +146,7 @@
146146
}
147147
}
148148
},
149-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/queryPacks/{queryPackName}": {
149+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}": {
150150
"delete": {
151151
"description": "Deletes a Log Analytics QueryPack.",
152152
"operationId": "QueryPacks_Delete",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"responses": {
1010
"200": {
1111
"body": {
12-
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.insights/queryPacks/my-querypack/queries/a449f8af-8e64-4b3a-9b16-5a7165ff98c4",
12+
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/a449f8af-8e64-4b3a-9b16-5a7165ff98c4",
1313
"name": "a449f8af-8e64-4b3a-9b16-5a7165ff98c4",
14-
"type": "microsoft.insights/queryPacks/queries",
14+
"type": "microsoft.operationalinsights/queryPacks/queries",
1515
"systemData": {
1616
"createdBy": "string",
1717
"createdByType": "application",
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"body": {
1212
"value": [
1313
{
14-
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.insights/queryPacks/my-querypack/queries/4337bb16-d6fe-4ff7-97cf-59df25941476",
14+
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/4337bb16-d6fe-4ff7-97cf-59df25941476",
1515
"name": "4337bb16-d6fe-4ff7-97cf-59df25941476",
16-
"type": "microsoft.insights/queryPacks/queries",
16+
"type": "microsoft.operationalinsights/queryPacks/queries",
1717
"systemData": {
1818
"createdBy": "string",
1919
"createdByType": "application",
@@ -33,9 +33,9 @@
3333
}
3434
},
3535
{
36-
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.insights/queryPacks/my-querypack/queries/bf015bf7-be70-49c2-8d52-4cce85c42ef1",
36+
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/bf015bf7-be70-49c2-8d52-4cce85c42ef1",
3737
"name": "bf015bf7-be70-49c2-8d52-4cce85c42ef1",
38-
"type": "microsoft.insights/queryPacks/queries",
38+
"type": "microsoft.operationalinsights/queryPacks/queries",
3939
"systemData": {
4040
"createdBy": "string",
4141
"createdByType": "application",
@@ -55,9 +55,9 @@
5555
}
5656
},
5757
{
58-
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.insights/queryPacks/my-querypack/queries/8d91c6ca-9c56-49c6-b3ae-112a68871acd",
58+
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/8d91c6ca-9c56-49c6-b3ae-112a68871acd",
5959
"name": "8d91c6ca-9c56-49c6-b3ae-112a68871acd",
60-
"type": "microsoft.insights/queryPacks/queries",
60+
"type": "microsoft.operationalinsights/queryPacks/queries",
6161
"systemData": {
6262
"createdBy": "string",
6363
"createdByType": "application",
@@ -77,9 +77,9 @@
7777
}
7878
},
7979
{
80-
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.insights/queryPacks/my-querypack/queries/a5a9010e-e4b7-45ad-8b14-09d7e6082819",
80+
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/a5a9010e-e4b7-45ad-8b14-09d7e6082819",
8181
"name": "a5a9010e-e4b7-45ad-8b14-09d7e6082819",
82-
"type": "microsoft.insights/queryPacks/queries",
82+
"type": "microsoft.operationalinsights/queryPacks/queries",
8383
"systemData": {
8484
"createdBy": "string",
8585
"createdByType": "application",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
"responses": {
3030
"200": {
3131
"body": {
32-
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.insights/queryPacks/my-querypack/queries/a449f8af-8e64-4b3a-9b16-5a7165ff98c4",
32+
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/a449f8af-8e64-4b3a-9b16-5a7165ff98c4",
3333
"name": "a449f8af-8e64-4b3a-9b16-5a7165ff98c4",
34-
"type": "microsoft.insights/queryPacks/queries",
34+
"type": "microsoft.operationalinsights/queryPacks/queries",
3535
"systemData": {
3636
"createdBy": "string",
3737
"createdByType": "application",
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"body": {
2626
"value": [
2727
{
28-
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.insights/queryPacks/my-querypack/queries/4337bb16-d6fe-4ff7-97cf-59df25941476",
28+
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/4337bb16-d6fe-4ff7-97cf-59df25941476",
2929
"name": "4337bb16-d6fe-4ff7-97cf-59df25941476",
30-
"type": "microsoft.insights/queryPacks/queries",
30+
"type": "microsoft.operationalinsights/queryPacks/queries",
3131
"systemData": {
3232
"createdBy": "string",
3333
"createdByType": "application",
@@ -60,9 +60,9 @@
6060
}
6161
},
6262
{
63-
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.insights/queryPacks/my-querypack/queries/bf015bf7-be70-49c2-8d52-4cce85c42ef1",
63+
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/bf015bf7-be70-49c2-8d52-4cce85c42ef1",
6464
"name": "bf015bf7-be70-49c2-8d52-4cce85c42ef1",
65-
"type": "microsoft.insights/queryPacks/queries",
65+
"type": "microsoft.operationalinsights/queryPacks/queries",
6666
"systemData": {
6767
"createdBy": "string",
6868
"createdByType": "application",
@@ -95,9 +95,9 @@
9595
}
9696
},
9797
{
98-
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.insights/queryPacks/my-querypack/queries/8d91c6ca-9c56-49c6-b3ae-112a68871acd",
98+
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks/my-querypack/queries/8d91c6ca-9c56-49c6-b3ae-112a68871acd",
9999
"name": "8d91c6ca-9c56-49c6-b3ae-112a68871acd",
100-
"type": "microsoft.insights/queryPacks/queries",
100+
"type": "microsoft.operationalinsights/queryPacks/queries",
101101
"systemData": {
102102
"createdBy": "string",
103103
"createdByType": "application",

0 commit comments

Comments
 (0)