Alerting: Add Triage feature toggle (#110326)
* Add state history config to frontend config object * Add alertingTriage feature toggle * Add Triage menu entry * Add old state history config props for backward compatibility
This commit is contained in:
@@ -100,15 +100,24 @@ export interface GrafanaJavascriptAgentConfig {
|
||||
apiKey: string;
|
||||
}
|
||||
|
||||
export interface UnifiedAlertingStateHistoryConfig {
|
||||
backend?: string;
|
||||
primary?: string;
|
||||
prometheusTargetDatasourceUID?: string;
|
||||
prometheusMetricName?: string;
|
||||
}
|
||||
|
||||
export interface UnifiedAlertingConfig {
|
||||
minInterval: string;
|
||||
// will be undefined if alerStateHistory is not enabled
|
||||
alertStateHistoryBackend?: string;
|
||||
// will be undefined if implementation is not "multiple"
|
||||
alertStateHistoryPrimary?: string;
|
||||
stateHistory?: UnifiedAlertingStateHistoryConfig;
|
||||
recordingRulesEnabled?: boolean;
|
||||
// will be undefined if no default datasource is configured
|
||||
defaultRecordingRulesTargetDatasourceUID?: string;
|
||||
|
||||
// Backward compatibility aliases - deprecated
|
||||
/** @deprecated Use stateHistory.backend instead */
|
||||
alertStateHistoryBackend?: string;
|
||||
/** @deprecated Use stateHistory.primary instead */
|
||||
alertStateHistoryPrimary?: string;
|
||||
}
|
||||
|
||||
/** Supported OAuth services
|
||||
|
||||
@@ -1106,4 +1106,9 @@ export interface FeatureToggles {
|
||||
* @default false
|
||||
*/
|
||||
teamFolders?: boolean;
|
||||
/**
|
||||
* Enables the alerting triage feature
|
||||
* @default false
|
||||
*/
|
||||
alertingTriage?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user