Skip to content

Commit

Permalink
Add xms-ids for monitor (Azure#17851)
Browse files Browse the repository at this point in the history
* add xms-ids for monitor

* inner properties

* change operator to name
  • Loading branch information
LinglingTong authored and FredericHeem committed May 16, 2022
1 parent c4eb952 commit 58f7ae9
Show file tree
Hide file tree
Showing 16 changed files with 179 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,13 +304,19 @@
"items": {
"$ref": "#/definitions/MetricSettings"
},
"x-ms-identifiers": [
"category"
],
"description": "The list of metric settings."
},
"logs": {
"type": "array",
"items": {
"$ref": "#/definitions/LogSettings"
},
"x-ms-identifiers": [
"category"
],
"description": "The list of logs settings."
},
"workspaceId": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@
"items": {
"$ref": "#/definitions/DataContainer"
},
"x-ms-identifiers": [
"/workspace/id"
],
"description": "Containers that currently store VM Insights data for the specified resource."
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,9 @@
"items": {
"$ref": "#/definitions/ErrorResponseCommon"
},
"x-ms-identifiers": [
"code"
],
"description": "The error details."
},
"additionalInfo": {
Expand All @@ -1130,6 +1133,7 @@
"items": {
"$ref": "#/definitions/ErrorAdditionalInfo"
},
"x-ms-identifiers": [],
"description": "The error additional info."
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,9 @@
"items": {
"$ref": "#/definitions/ScaleRuleMetricDimension"
},
"x-ms-identifiers": [
"DimensionName"
],
"description": "List of dimension conditions. For example: [{\"DimensionName\":\"AppName\",\"Operator\":\"Equals\",\"Values\":[\"App1\"]},{\"DimensionName\":\"Deployment\",\"Operator\":\"Equals\",\"Values\":[\"default\"]}]."
},
"dividePerInstance": {
Expand Down Expand Up @@ -642,6 +645,9 @@
"items": {
"$ref": "#/definitions/ScaleRule"
},
"x-ms-identifiers": [
"/metricTrigger/metricName"
],
"description": "the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified."
},
"fixedDate": {
Expand Down Expand Up @@ -718,6 +724,9 @@
"items": {
"$ref": "#/definitions/WebhookNotification"
},
"x-ms-identifiers": [
"serviceUri"
],
"description": "the collection of webhook notifications."
}
},
Expand All @@ -734,13 +743,17 @@
"items": {
"$ref": "#/definitions/AutoscaleProfile"
},
"x-ms-identifiers": [
"name"
],
"description": "the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified."
},
"notifications": {
"type": "array",
"items": {
"$ref": "#/definitions/AutoscaleNotification"
},
"x-ms-identifiers": [],
"description": "the collection of notifications."
},
"enabled": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@
"items": {
"$ref": "#/definitions/LocalizableString"
},
"x-ms-identifiers": [
"value"
],
"description": "the list that includes the Azure event categories."
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
"items": {
"$ref": "#/definitions/Operation"
},
"x-ms-identifiers": [
"name"
],
"description": "List of operations supported by the Microsoft.Insights provider."
},
"nextLink": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@
"items": {
"$ref": "#/definitions/Incident"
},
"x-ms-identifiers": [
"name"
],
"description": "the incident collection."
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@
"items": {
"$ref": "#/definitions/RuleAction"
},
"x-ms-identifiers": [],
"description": "the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved."
},
"lastUpdatedTime": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@
"items": {
"$ref": "#/definitions/MetricAvailability"
},
"x-ms-identifiers": [],
"description": "the collection of what aggregation intervals are available to be queried."
},
"id": {
Expand All @@ -231,6 +232,9 @@
"items": {
"$ref": "#/definitions/LocalizableString"
},
"x-ms-identifiers": [
"value"
],
"description": "the name and the display name of the dimension, i.e. it is a localizable string."
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@
"items": {
"$ref": "#/definitions/TimeSeriesElement"
},
"x-ms-identifiers": [],
"description": "the time series returned when a data query is performed."
}
},
Expand All @@ -297,13 +298,19 @@
"items": {
"$ref": "#/definitions/MetadataValue"
},
"x-ms-identifiers": [
"name"
],
"description": "the metadata values returned if $filter was specified in the call."
},
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/MetricValue"
},
"x-ms-identifiers": [
"timeStamp"
],
"description": "An array of data points representing the metric values. This is only returned if a result type of data is specified."
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,9 @@
"items": {
"$ref": "#/definitions/MetricAlertAction"
},
"x-ms-identifiers": [
"actionGroupId"
],
"description": "the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved."
},
"lastUpdatedTime": {
Expand Down Expand Up @@ -611,6 +614,9 @@
"items": {
"$ref": "#/definitions/MetricAlertAction"
},
"x-ms-identifiers": [
"actionGroupId"
],
"description": "the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved."
},
"lastUpdatedTime": {
Expand Down Expand Up @@ -769,6 +775,9 @@
"items": {
"$ref": "#/definitions/MetricCriteria"
},
"x-ms-identifiers": [
"name"
],
"description": "The list of metric criteria for this 'all of' operation. "
}
},
Expand Down Expand Up @@ -878,6 +887,9 @@
"items": {
"$ref": "#/definitions/MultiMetricCriteria"
},
"x-ms-identifiers": [
"name"
],
"description": "the list of multiple metric criteria for this 'all of' operation. "
}
},
Expand Down Expand Up @@ -934,6 +946,9 @@
"items": {
"$ref": "#/definitions/MetricDimension"
},
"x-ms-identifiers": [
"name"
],
"description": "List of dimension conditions."
},
"skipMetricValidation": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,9 @@
"items": {
"$ref": "#/definitions/Dimension"
},
"x-ms-identifiers": [
"name"
],
"description": "List of Dimensions for creating metric"
}
},
Expand All @@ -798,6 +801,9 @@
"items": {
"$ref": "#/definitions/Criteria"
},
"x-ms-identifiers": [
"metricName"
],
"description": "Criteria of Metric"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
"items": {
"$ref": "#/definitions/TimeSeriesBaseline"
},
"x-ms-identifiers": [],
"description": "The baseline for each time series that was queried."
}
},
Expand All @@ -202,6 +203,9 @@
"items": {
"$ref": "#/definitions/MetricSingleDimension"
},
"x-ms-identifiers": [
"name"
],
"description": "The dimensions of this time series."
},
"timestamps": {
Expand All @@ -218,13 +222,17 @@
"items": {
"$ref": "#/definitions/SingleBaseline"
},
"x-ms-identifiers": [],
"description": "The baseline values for each sensitivity."
},
"metadataValues": {
"type": "array",
"items": {
"$ref": "#/definitions/BaselineMetadata"
},
"x-ms-identifiers": [
"name"
],
"description": "The baseline metadata values."
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,10 @@
"type": "array",
"items": {
"$ref": "#/definitions/ActivityLogAlertResource"
}
},
"x-ms-identifiers": [
"id"
]
},
"nextLink": {
"description": "Provides the link to retrieve the next set of elements.",
Expand Down Expand Up @@ -407,7 +410,8 @@
"type": "array",
"items": {
"$ref": "#/definitions/AlertRuleAnyOfOrLeafCondition"
}
},
"x-ms-identifiers": []
}
},
"required": [
Expand All @@ -429,7 +433,8 @@
"type": "array",
"items": {
"$ref": "#/definitions/AlertRuleLeafCondition"
}
},
"x-ms-identifiers": []
}
}
},
Expand Down Expand Up @@ -462,7 +467,10 @@
"type": "array",
"items": {
"$ref": "#/definitions/ActionGroup"
}
},
"x-ms-identifiers": [
"actionGroupId"
]
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,28 +520,40 @@
"type": "array",
"items": {
"$ref": "#/definitions/PerfCounterDataSource"
}
},
"x-ms-identifiers": [
"name"
]
},
"windowsEventLogs": {
"description": "The list of Windows Event Log data source configurations.",
"type": "array",
"items": {
"$ref": "#/definitions/WindowsEventLogDataSource"
}
},
"x-ms-identifiers": [
"name"
]
},
"syslog": {
"description": "The list of Syslog data source configurations.",
"type": "array",
"items": {
"$ref": "#/definitions/SyslogDataSource"
}
},
"x-ms-identifiers": [
"name"
]
},
"extensions": {
"description": "The list of Azure VM extension data source configurations.",
"type": "array",
"items": {
"$ref": "#/definitions/ExtensionDataSource"
}
},
"x-ms-identifiers": [
"name"
]
}
}
},
Expand Down Expand Up @@ -590,7 +602,10 @@
"type": "array",
"items": {
"$ref": "#/definitions/LogAnalyticsDestination"
}
},
"x-ms-identifiers": [
"name"
]
},
"azureMonitorMetrics": {
"description": "Azure Monitor Metrics destination.",
Expand Down Expand Up @@ -671,7 +686,8 @@
"type": "array",
"items": {
"$ref": "#/definitions/DataFlow"
}
},
"x-ms-identifiers": []
},
"provisioningState": {
"description": "The resource provisioning state.",
Expand Down
Loading

0 comments on commit 58f7ae9

Please sign in to comment.