Alerting: interpolate variables when creating alert rule from dashboard panel (#37201)

This commit is contained in:
Domas
2021-08-10 10:59:48 +03:00
committed by GitHub
parent 488930dbe3
commit 3e124c854e
7 changed files with 401 additions and 37 deletions

View File

@@ -101,12 +101,17 @@ export enum GrafanaAlertStateDecision {
OK = 'OK',
}
interface AlertDataQuery extends DataQuery {
maxDataPoints?: number;
intervalMs?: number;
}
export interface AlertQuery {
refId: string;
queryType: string;
relativeTimeRange?: RelativeTimeRange;
datasourceUid: string;
model: DataQuery;
model: AlertDataQuery;
}
export interface PostableGrafanaRuleDefinition {