Skip to content

Commit

Permalink
Logz/metrcis new version (Azure#17268)
Browse files Browse the repository at this point in the history
* adding new api version

* updating version and adding new apis

* adding apis

* swagger fixes

* prettier fix

* adding api version for operations api

* adding api versions param for operatiosn for previous and stable version

Co-authored-by: Gaurav Bang <[email protected]>
  • Loading branch information
banggaurav and Gaurav Bang authored Jan 18, 2022
1 parent d29e6eb commit 37b6a98
Show file tree
Hide file tree
Showing 45 changed files with 4,481 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Success",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtual1",
"agentVersion": "1.0.0beta"
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor"
},
"responses": {
"200": {
"body": {
"apiKey": "00000000-0000-0000-0000-000000000000",
"region": "West US 2"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor",
"requestBody": {
"state": "Install",
"vmResources": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtual1",
"agentVersion": "1.0.0beta"
}
]
}
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtual1",
"agentVersion": "1.0.0beta"
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor"
},
"responses": {
"200": {
"body": {
"value": [
{
"role": "Admin"
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor",
"metricsSourceName": "MetricsSource1",
"ruleSetName": "default",
"requestBody": {
"name": "default",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/metricsSource/MetricsSource1/tagRules/default",
"type": "Microsoft.Logz/monitors/tagRules",
"properties": {
"sendMetrics": true,
"metricRules": [
{
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"filteringTags": [
{
"name": "Environment",
"value": "Prod",
"action": "Include"
},
{
"name": "Environment",
"value": "Dev",
"action": "Exclude"
}
]
}
]
}
}
},
"responses": {
"200": {
"body": {
"name": "default",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/metricsSource/MetricsSource1/tagRules/default",
"type": "Microsoft.Logz/monitors/tagRules",
"properties": {
"sendMetrics": true,
"metricRules": [
{
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"filteringTags": [
{
"name": "Environment",
"value": "Prod",
"action": "Include"
},
{
"name": "Environment",
"value": "Dev",
"action": "Exclude"
}
]
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor",
"metricsSourceName": "MetricsSource1",
"ruleSetName": "default"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor",
"metricsSourceName": "MetricsSource1",
"ruleSetName": "default"
},
"responses": {
"200": {
"body": {
"name": "default",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/tagRules/default",
"type": "Microsoft.Logz/monitors/tagRules",
"properties": {
"sendMetrics": true,
"metricRules": [
{
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"filteringTags": [
{
"name": "Environment",
"value": "Prod",
"action": "Include"
},
{
"name": "Environment",
"value": "Dev",
"action": "Exclude"
}
]
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor",
"metricsSourceName": "MetricsSource1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "default",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logz/monitors/myMonitor/metricsSource/metricsSource1/tagRules/default",
"type": "Microsoft.Logz/monitors/tagRules",
"properties": {
"sendMetrics": true,
"metricRules": [
{
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"filteringTags": [
{
"name": "Environment",
"value": "Prod",
"action": "Include"
},
{
"name": "Environment",
"value": "Dev",
"action": "Exclude"
}
]
}
]
}
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor",
"metricsSourceName": "MetricsSource1",
"requestBody": {
"name": "myMonitor",
"type": "Microsoft.Logz/monitors",
"properties": {
"provisioningState": "Accepted",
"monitoringStatus": "Enabled"
},
"tags": {
"Environment": "Dev"
},
"location": "West US"
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor/metricsSource/MetricsSource1",
"name": "myMonitor",
"type": "Microsoft.Logz/monitors",
"properties": {
"provisioningState": "Succeeded"
},
"tags": {
"Environment": "Dev"
},
"location": "West US 2"
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor/metricsSource/MetricsSource1",
"name": "myMonitor",
"type": "Microsoft.Logz/monitors",
"properties": {
"provisioningState": "Succeeded"
},
"tags": {
"Environment": "Dev"
},
"location": "West US 2"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"metricsSourceName": "someName",
"monitorName": "myMonitor"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor",
"metricsSourceName": "MetricsSource1"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor/metricsSource/metricsSource1",
"name": "myMonitor",
"type": "Microsoft.Logz/monitors",
"properties": {
"provisioningState": "Succeeded",
"monitoringStatus": "Enabled"
},
"tags": {
"Environment": "Dev"
},
"location": "West US"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor",
"metricsSourceName": "metricsacname"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor/metricsSource",
"name": "myMonitor",
"type": "Microsoft.Logz/monitors",
"properties": {
"provisioningState": "Succeeded",
"monitoringStatus": "Enabled"
},
"tags": {
"Environment": "Dev"
},
"location": "West US"
}
],
"nextLink": null
}
}
}
}
Loading

0 comments on commit 37b6a98

Please sign in to comment.