mirror of https://github.com/grafana/grafana
AzureMonitor: Move rest of deprecated code (#46109)
parent
0880e0a472
commit
cfbf58fb92
@ -1,11 +1,13 @@ |
||||
import { Alert, CodeEditor, Select } from '@grafana/ui'; |
||||
import React from 'react'; |
||||
import { AzureMonitorOption, AzureMonitorQuery } from '../../types'; |
||||
import { Field } from '../Field'; |
||||
import { Space } from '../Space'; |
||||
|
||||
import { AzureMonitorOption } from '../../../../types'; |
||||
import { Field } from '../../../Field'; |
||||
import { Space } from '../../../Space'; |
||||
import { DeprecatedAzureMonitorQuery } from '../../types'; |
||||
|
||||
interface InsightsAnalyticsEditorProps { |
||||
query: AzureMonitorQuery; |
||||
query: DeprecatedAzureMonitorQuery; |
||||
} |
||||
|
||||
const FORMAT_OPTIONS: Array<AzureMonitorOption<string>> = [ |
||||
@ -0,0 +1 @@ |
||||
export * from './query'; |
||||
@ -0,0 +1,61 @@ |
||||
import { DataQuery } from '@grafana/data'; |
||||
|
||||
import { |
||||
AzureLogsQuery, |
||||
AzureMetricQuery, |
||||
AzureQueryType, |
||||
AzureResourceGraphQuery, |
||||
DeprecatedAzureQueryType, |
||||
} from '../../../types'; |
||||
import { GrafanaTemplateVariableQuery } from '../../../types/templateVariables'; |
||||
|
||||
export interface DeprecatedAzureMonitorQuery extends DataQuery { |
||||
queryType?: AzureQueryType | DeprecatedAzureQueryType; |
||||
|
||||
subscription?: string; |
||||
|
||||
/** ARG uses multiple subscriptions */ |
||||
subscriptions?: string[]; |
||||
|
||||
azureMonitor?: AzureMetricQuery; |
||||
azureLogAnalytics?: AzureLogsQuery; |
||||
azureResourceGraph?: AzureResourceGraphQuery; |
||||
grafanaTemplateVariableFn?: GrafanaTemplateVariableQuery; |
||||
|
||||
/** @deprecated App Insights/Insights Analytics deprecated in v8 */ |
||||
appInsights?: ApplicationInsightsQuery; |
||||
|
||||
/** @deprecated App Insights/Insights Analytics deprecated in v8 */ |
||||
insightsAnalytics?: InsightsAnalyticsQuery; |
||||
} |
||||
|
||||
/** |
||||
* Azure Monitor App Insights sub-query properties |
||||
* @deprecated App Insights deprecated in v8 in favor of Metrics queries |
||||
*/ |
||||
export interface ApplicationInsightsQuery { |
||||
metricName?: string; |
||||
timeGrain?: string; |
||||
timeGrainCount?: string; |
||||
timeGrainType?: string; |
||||
timeGrainUnit?: string; |
||||
aggregation?: string; |
||||
dimension?: string[]; // Was string before 7.1
|
||||
dimensionFilter?: string; |
||||
alias?: string; |
||||
|
||||
/** @deprecated Migrated to Insights Analytics query */ |
||||
rawQuery?: string; |
||||
} |
||||
|
||||
/** |
||||
* Azure Monitor Insights Analytics sub-query properties |
||||
* @deprecated Insights Analytics deprecated in v8 in favor of Logs queries |
||||
*/ |
||||
export interface InsightsAnalyticsQuery { |
||||
query?: string; |
||||
resultFormat?: string; |
||||
|
||||
/** @deprecated Migrate field to query */ |
||||
rawQueryString?: string; |
||||
} |
||||
Loading…
Reference in new issue