mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Datasource/CloudWatch: Makes CloudWatch Logs query history more readable (#24795)
Now just displays query expression rather than stringified JSON
This commit is contained in:
parent
cbf68c8ecc
commit
2f01f1320f
@ -900,6 +900,14 @@ export class CloudWatchDatasource extends DataSourceApi<CloudWatchQuery, CloudWa
|
||||
|
||||
return this.templateSrv.replace(target, scopedVars);
|
||||
}
|
||||
|
||||
getQueryDisplayText(query: CloudWatchQuery) {
|
||||
if (query.queryMode === 'Logs') {
|
||||
return query.expression;
|
||||
} else {
|
||||
return JSON.stringify(query);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function withTeardown<T = any>(observable: Observable<T>, onUnsubscribe: () => void): Observable<T> {
|
||||
|
Loading…
Reference in New Issue
Block a user