Commit 629ce689 by Ryan McKinley Committed by GitHub

Azure Logs: use executedQueryString in metadata (#25755)

parent fda9b1f0
......@@ -44,7 +44,6 @@ export interface QueryResultMeta {
* */
gmdMeta?: any[]; // used by cloudwatch
alignmentPeriod?: string; // used by stackdriver
query?: string; // used by azure log
searchWords?: string[]; // used by log models and loki
limit?: number; // used by log models and loki
json?: boolean; // used to keep track of old json doc values
......
......@@ -65,7 +65,7 @@ export default class ResponseParser {
bucket.datapoints.push([row[valueIndex], epoch]);
bucket.refId = query.refId;
bucket.meta = {
query: query.query,
executedQueryString: query.query,
};
});
......@@ -81,7 +81,7 @@ export default class ResponseParser {
rows: rows,
refId: query.refId,
meta: {
query: query.query,
executedQueryString: query.query,
},
};
......
import { DataQuery, DataSourceJsonData, DataSourceSettings } from '@grafana/data';
import { DataQuery, DataSourceJsonData, DataSourceSettings, TableData } from '@grafana/data';
export type AzureDataSourceSettings = DataSourceSettings<AzureDataSourceJsonData, AzureDataSourceSecureJsonData>;
......@@ -124,14 +124,10 @@ export interface AzureLogsVariable {
value: string;
}
export interface AzureLogsTableData {
export interface AzureLogsTableData extends TableData {
columns: AzureLogsTableColumn[];
rows: any[];
type: string;
refId: string;
meta: {
query: string;
};
}
export interface AzureLogsTableColumn {
......
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