AzureMonitor: Explain custom and metric namespace properties (#55048)

This commit is contained in:
Adam Simpson 2022-09-14 10:28:25 -04:00 committed by GitHub
parent 5c40b053d0
commit 65bdee3a90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -86,7 +86,7 @@ const Advanced = ({ resource, onChange }: ResourcePickerProps<string | AzureMetr
/>
</InlineField>
<InlineField
label="Metric Namespace"
label="Namespace"
grow
transparent
htmlFor="input-advanced-resource-picker-metricNamespace"

View File

@ -45,8 +45,12 @@ export interface AzureMonitorQuery extends DataQuery {
export interface AzureMetricQuery {
resourceGroup?: string;
resourceName?: string;
/** Resource type */
/** metricNamespace is used as the resource type (or resource namespace).
* It's usually equal to the target metric namespace.
* Kept the name of the variable as metricNamespace to avoid backward incompatibility issues.
*/
metricNamespace?: string;
/** used as the value for the metricNamespace param when different from the resource namespace */
customNamespace?: string;
metricName?: string;
timeGrain?: string;