Commit 2f01f132 by kay delaney Committed by GitHub

Datasource/CloudWatch: Makes CloudWatch Logs query history more readable (#24795)

Now just displays query expression rather than stringified JSON
parent cbf68c8e
......@@ -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> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment