Merge pull request #9753 from mtanda/cw_period

(cloudwatch) add period alias
This commit is contained in:
Carl Bergquist 2017-11-01 14:02:41 +01:00 committed by GitHub
commit c783bdac39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -287,6 +287,7 @@ func formatAlias(query *CloudWatchQuery, stat string, dimensions map[string]stri
data["namespace"] = query.Namespace
data["metric"] = query.MetricName
data["stat"] = stat
data["period"] = strconv.Itoa(query.Period)
for k, v := range dimensions {
data[k] = v
}

View File

@ -49,6 +49,7 @@
<li>{{stat}}</li>
<li>{{namespace}}</li>
<li>{{region}}</li>
<li>{{period}}</li>
<li>{{YOUR_DIMENSION_NAME}}</li>
</ul>
</info-popover>