Alerting: Fix file import/export of recording rules with target datasource uid (#115663)

Alerting: Fix export of recording rules with target datasource uid
This commit is contained in:
Alexander Akhmetov
2025-12-23 11:26:15 +01:00
committed by GitHub
parent 096208202e
commit 84120fb210
13 changed files with 426 additions and 59 deletions
@@ -72,6 +72,33 @@
},
"isPaused": false,
"missing_series_evals_to_resolve": 2
},
{
"uid": "<dynamic>",
"title": "RecordingRule1",
"data": [
{
"refId": "A",
"relativeTimeRange": {
"from": 0,
"to": 0
},
"datasourceUid": "__expr__",
"model": {
"expression": "1 + 1",
"intervalMs": 1000,
"maxDataPoints": 43200,
"refId": "A",
"type": "math"
}
}
],
"isPaused": false,
"record": {
"metric": "test_metric",
"from": "A",
"targetDatasourceUid": "test-datasource-uid"
}
}
]
}