mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Azure Logs: use executedQueryString in metadata (#25755)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user