File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 2
2
Changelog
3
3
=========
4
4
5
-
6
5
x.x.x ?
7
6
=======
8
7
8
+ * Add `QueryMode ` parameter in CloudwatchMetricsTarget
9
9
* Added support `alias ` via the `legendFormat ` option for `Target `
10
10
* Added `neutral ` option for `GaugePanel ` (supported by Grafana 9.3.0 - https://github.com/grafana/grafana/discussions/38273)
11
11
* Added support `alias ` via the `legendFormat ` option for `Target `
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class CloudwatchMetricsTarget(Target):
33
33
:param statistic: Cloudwatch mathematic statistic
34
34
:param hide: controls if given metric is displayed on visualization
35
35
:param datasource: Grafana datasource name
36
+ :param queryMode: queryMode for cloudwatch metric request
36
37
"""
37
38
38
39
alias = attr .ib (default = "" )
@@ -51,6 +52,7 @@ class CloudwatchMetricsTarget(Target):
51
52
statistic = attr .ib (default = "Average" )
52
53
hide = attr .ib (default = False , validator = instance_of (bool ))
53
54
datasource = attr .ib (default = None )
55
+ queryMode = attr .ib (default = "" )
54
56
55
57
def to_json_data (self ):
56
58
return {
@@ -70,6 +72,7 @@ def to_json_data(self):
70
72
"statistic" : self .statistic ,
71
73
"hide" : self .hide ,
72
74
"datasource" : self .datasource ,
75
+ "queryMode" : self .queryMode ,
73
76
}
74
77
75
78
You can’t perform that action at this time.
0 commit comments