stackriver: rename interface
This commit is contained in:
@@ -3,9 +3,9 @@ import SimpleDropdown from './SimpleDropdown';
|
||||
import { TemplateQueryProps } from 'app/types/plugins';
|
||||
import { getMetricTypes, extractServicesFromMetricDescriptors } from '../functions';
|
||||
import defaultsDeep from 'lodash/defaultsDeep';
|
||||
import { MetricFindQueryTypes, TemplateQueryComponentState } from '../types';
|
||||
import { MetricFindQueryTypes, TemplateQueryComponentData } from '../types';
|
||||
|
||||
export class StackdriverTemplateQueryComponent extends PureComponent<TemplateQueryProps, TemplateQueryComponentState> {
|
||||
export class StackdriverTemplateQueryComponent extends PureComponent<TemplateQueryProps, TemplateQueryComponentData> {
|
||||
queryTypes: Array<{ value: string; name: string }> = [
|
||||
{ value: MetricFindQueryTypes.Services, name: 'Services' },
|
||||
{ value: MetricFindQueryTypes.MetricTypes, name: 'Metric Types' },
|
||||
@@ -17,7 +17,7 @@ export class StackdriverTemplateQueryComponent extends PureComponent<TemplateQue
|
||||
{ value: MetricFindQueryTypes.AlignmentPeriods, name: 'Alignment Periods' },
|
||||
];
|
||||
|
||||
defaults: TemplateQueryComponentState = {
|
||||
defaults: TemplateQueryComponentData = {
|
||||
selectedQueryType: '',
|
||||
metricDescriptors: [],
|
||||
selectedService: '',
|
||||
|
||||
@@ -9,7 +9,7 @@ export enum MetricFindQueryTypes {
|
||||
AlignmentPeriods = 'alignmentPeriods',
|
||||
}
|
||||
|
||||
export interface TemplateQueryComponentState {
|
||||
export interface TemplateQueryComponentData {
|
||||
selectedQueryType: string;
|
||||
metricDescriptors: any[];
|
||||
selectedService: string;
|
||||
|
||||
Reference in New Issue
Block a user