mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
AzureMonitor: Improve Log Analytics query efficiency (#74675)
* Promisify loading schema - Move schema loading to LogsQueryEditor - Improve typing - Switch callbacks to promises * Update types * Refactor backend for new props - Rename intersectTime - Support setting timeColumn - Add additional properties to logs request body * Update applyTemplateVariables * Update set functions * Add new TimeManagement component * Update LogsQueryEditor * Hardcode timestamp column for traces queries * Ensure timeColumn is always set for log queries * Update tests * Update frontend tests * Readd type to make migration easier * Add migration * Add fake schema * Use predefined type * Update checks and defaults * Add tests * README updates * README update * Type update * Lint * More linting and type fixing * Error silently * More linting and typing * Update betterer * Update test * Simplify default column setting * Fix default column setting * Add tracking * Review - Fix typo on comment - Destructure and remove type assertion - Break out await into two variables - Remove lets and rename variable for clarity
This commit is contained in:
@@ -165,7 +165,11 @@ export const defaultAzureMetricQuery: Partial<AzureMetricQuery> = {
|
||||
*/
|
||||
export interface AzureLogsQuery {
|
||||
/**
|
||||
* If set to true the intersection of time ranges specified in the query and Grafana will be used. Otherwise the query time ranges will be used. Defaults to false
|
||||
* If set to true the dashboard time range will be used as a filter for the query. Otherwise the query time ranges will be used. Defaults to false.
|
||||
*/
|
||||
dashboardTime?: boolean;
|
||||
/**
|
||||
* @deprecated Use dashboardTime instead
|
||||
*/
|
||||
intersectTime?: boolean;
|
||||
/**
|
||||
@@ -185,7 +189,11 @@ export interface AzureLogsQuery {
|
||||
*/
|
||||
resultFormat?: ResultFormat;
|
||||
/**
|
||||
* Workspace ID. This was removed in Grafana 8, but remains for backwards compat
|
||||
* If dashboardTime is set to true this value dictates which column the time filter will be applied to. Defaults to the first tables timeSpan column, the first datetime column found, or TimeGenerated
|
||||
*/
|
||||
timeColumn?: string;
|
||||
/**
|
||||
* Workspace ID. This was removed in Grafana 8, but remains for backwards compat.
|
||||
*/
|
||||
workspace?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user