123456789101112131415161718192021222324252627282930313233343536373839 |
- export type MetricsColumnType = 'set' | 'counter' | 'duration';
- export type MetricsApiResponse = {
- end: string;
- groups: {
- by: Record<string, string>;
- series: Record<string, Array<number | null>>;
- totals: Record<string, number | null>;
- }[];
- intervals: string[];
- query: string;
- start: string;
- };
- export type MetricTagCollection = Record<string, MetricTag>;
- export type MetricTag = {
- key: string;
- };
- export type MetricTagValue = {
- key: string;
- value: string;
- };
- export type MetricMeta = {
- name: string;
- operations: string[];
- type: MetricsColumnType;
- };
- export type MetricsMetaCollection = Record<string, MetricMeta>;
- export type MetricQuery = {
- aggregation?: string;
- groupBy?: string[];
- legend?: string;
- metricMeta?: MetricMeta;
- };
|