mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* Create cue file and gen ts/go types * Use generated schema in ts/go * Run make den-cue to update report * Manually extend Phlare query * Updates * Add default queryType * Run make gen-cue to Update report.json
38 lines
841 B
TypeScript
38 lines
841 B
TypeScript
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
|
//
|
|
// Generated by:
|
|
// public/app/plugins/gen.go
|
|
// Using jennies:
|
|
// TSTypesJenny
|
|
// PluginTSTypesJenny
|
|
//
|
|
// Run 'make gen-cue' from repository root to regenerate.
|
|
|
|
import * as common from '@grafana/schema';
|
|
|
|
export const DataQueryModelVersion = Object.freeze([0, 0]);
|
|
|
|
export type PhlareQueryType = ('metrics' | 'profile' | 'both');
|
|
|
|
export const defaultPhlareQueryType: PhlareQueryType = 'both';
|
|
|
|
export interface Phlare extends common.DataQuery {
|
|
/**
|
|
* Allows to group the results.
|
|
*/
|
|
groupBy: Array<string>;
|
|
/**
|
|
* Specifies the query label selectors.
|
|
*/
|
|
labelSelector: string;
|
|
/**
|
|
* Specifies the type of profile to query.
|
|
*/
|
|
profileTypeId: string;
|
|
}
|
|
|
|
export const defaultPhlare: Partial<Phlare> = {
|
|
groupBy: [],
|
|
labelSelector: '{}',
|
|
};
|