Alerting: Pass queryType parameter to the query model in recording rules preview (#83950)

pull/84809/head
Konrad Lalik 1 year ago committed by GitHub
parent d767c4f694
commit 708aeb0682
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      public/app/features/alerting/unified/components/rule-editor/RecordingRuleEditor.tsx

@ -68,8 +68,11 @@ export const RecordingRuleEditor: FC<RecordingRuleEditorProps> = ({
datasource: changedQuery.datasource,
refId: changedQuery.refId,
editorMode: changedQuery.editorMode,
instant: Boolean(changedQuery.instant),
range: Boolean(changedQuery.range),
// Instant and range are used by Prometheus queries
instant: changedQuery.instant,
range: changedQuery.range,
// Query type is used by Loki queries
queryType: changedQuery.queryType,
legendFormat: changedQuery.legendFormat,
},
};

Loading…
Cancel
Save