mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 06:41:49 +08:00

* Pyroscope: Add annotations frame to series response * Adapt to API change, add tests * Run make lint-go * Fix conflicts after rebase * Add annotation via a separate data frame * Process annotations fully at the datasource * Add mod owner for go-humanize * Pyroscope: Annotations in Query Response can be optional --------- Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
53 lines
1.2 KiB
TypeScript
53 lines
1.2 KiB
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 type PyroscopeQueryType = ('metrics' | 'profile' | 'both');
|
|
|
|
export const defaultPyroscopeQueryType: PyroscopeQueryType = 'both';
|
|
|
|
export interface GrafanaPyroscopeDataQuery extends common.DataQuery {
|
|
/**
|
|
* If set to true, the response will contain annotations
|
|
*/
|
|
annotations?: boolean;
|
|
/**
|
|
* Allows to group the results.
|
|
*/
|
|
groupBy: Array<string>;
|
|
/**
|
|
* Specifies the query label selectors.
|
|
*/
|
|
labelSelector: string;
|
|
/**
|
|
* Sets the maximum number of time series.
|
|
*/
|
|
limit?: number;
|
|
/**
|
|
* Sets the maximum number of nodes in the flamegraph.
|
|
*/
|
|
maxNodes?: number;
|
|
/**
|
|
* Specifies the type of profile to query.
|
|
*/
|
|
profileTypeId: string;
|
|
/**
|
|
* Specifies the query span selectors.
|
|
*/
|
|
spanSelector?: Array<string>;
|
|
}
|
|
|
|
export const defaultGrafanaPyroscopeDataQuery: Partial<GrafanaPyroscopeDataQuery> = {
|
|
groupBy: [],
|
|
labelSelector: '{}',
|
|
spanSelector: [],
|
|
};
|