File tree 3 files changed +695
-39
lines changed
3 files changed +695
-39
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @grafana/azure-sdk" ,
3
- "version" : " 0.0.1 " ,
3
+ "version" : " 0.0.2 " ,
4
4
"description" : " Common Azure features for Grafana" ,
5
5
"main" : " dist/index.js" ,
6
6
"module" : " dist/esm/index.js" ,
32
32
"devDependencies" : {
33
33
"@grafana/data" : " 10.2.3" ,
34
34
"@grafana/eslint-config" : " ^7.0.0" ,
35
- "@grafana/runtime" : " 10.2.3 " ,
35
+ "@grafana/runtime" : " nightly " ,
36
36
"@grafana/tsconfig" : " ^1.3.0-rc1" ,
37
37
"@grafana/ui" : " 10.2.3" ,
38
38
"@rollup/plugin-commonjs" : " 25.0.7" ,
Original file line number Diff line number Diff line change 1
- import { AzureSettings , config } from '@grafana/runtime' ;
2
-
3
- // TODO: Remove when the list of clouds added directly to @grafana /runtime
4
- // https://github.com/grafana/grafana/pull/84039
5
- interface AzureSettings2 extends AzureSettings {
6
- clouds ?: AzureCloudInfo [ ] ;
7
- }
8
-
9
- export interface AzureCloudInfo {
10
- name : string ;
11
- displayName : string ;
12
- }
1
+ import { AzureCloudInfo , config } from '@grafana/runtime' ;
13
2
14
3
const predefinedClouds : AzureCloudInfo [ ] = [
15
4
{
16
- name : 'AzureCloud' , displayName : 'Azure'
5
+ name : 'AzureCloud' ,
6
+ displayName : 'Azure' ,
17
7
} ,
18
8
{
19
- name : 'AzureChinaCloud' , displayName : 'Azure China'
9
+ name : 'AzureChinaCloud' ,
10
+ displayName : 'Azure China' ,
20
11
} ,
21
12
{
22
- name : 'AzureUSGovernment' , displayName : 'Azure US Government'
23
- }
13
+ name : 'AzureUSGovernment' ,
14
+ displayName : 'Azure US Government' ,
15
+ } ,
24
16
] ;
25
17
26
18
export function getAzureClouds ( ) : AzureCloudInfo [ ] {
27
- const settingsEx = ( config . azure as unknown as AzureSettings2 ) ;
19
+ const settingsEx = config . azure ;
28
20
29
21
// Return list of clouds from Grafana configuration if they are provided
30
22
if ( Array . isArray ( settingsEx . clouds ) ) {
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments