stackdriver: correct aligner name

pull/14007/head
Erik Sundell 7 years ago
parent f307fc4760
commit 3b9eda2561
  1. 2
      public/app/plugins/datasource/stackdriver/StackdriverMetricFindQuery.ts
  2. 4
      public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.tsx
  3. 2
      public/app/plugins/datasource/stackdriver/components/__snapshots__/TemplateQueryComponent.test.tsx.snap
  4. 2
      public/app/plugins/datasource/stackdriver/types.ts

@ -17,7 +17,7 @@ export default class StackdriverMetricFindQuery {
return this.handleLabelQuery(query);
case MetricFindQueryTypes.ResourceTypes:
return this.handleResourceTypeQuery(query);
case MetricFindQueryTypes.Alignerns:
case MetricFindQueryTypes.Aligners:
return this.handleAlignersQuery(query);
case MetricFindQueryTypes.AlignmentPeriods:
return this.handleAlignmentPeriodQuery();

@ -12,7 +12,7 @@ export class StackdriverTemplateQueryComponent extends PureComponent<TemplateQue
{ value: MetricFindQueryTypes.ResourceLabels, name: 'Resource Labels' },
{ value: MetricFindQueryTypes.ResourceTypes, name: 'Resource Types' },
{ value: MetricFindQueryTypes.Aggregations, name: 'Aggregations' },
{ value: MetricFindQueryTypes.Alignerns, name: 'Aligners' },
{ value: MetricFindQueryTypes.Aligners, name: 'Aligners' },
{ value: MetricFindQueryTypes.AlignmentPeriods, name: 'Alignment Periods' },
];
@ -162,7 +162,7 @@ export class StackdriverTemplateQueryComponent extends PureComponent<TemplateQue
)}
</React.Fragment>
);
case MetricFindQueryTypes.Alignerns:
case MetricFindQueryTypes.Aligners:
case MetricFindQueryTypes.Aggregations:
return (
<React.Fragment>

@ -45,7 +45,7 @@ Array [
Aggregations
</option>
<option
value="alignerns"
value="aligners"
>
Aligners
</option>

@ -5,7 +5,7 @@ export enum MetricFindQueryTypes {
ResourceLabels = 'resourceLabels',
ResourceTypes = 'resourceTypes',
Aggregations = 'aggregations',
Alignerns = 'alignerns',
Aligners = 'aligners',
AlignmentPeriods = 'alignmentPeriods',
}

Loading…
Cancel
Save