Commit ebcb8be1 by Mitsuhiro Tanda

add period alias

parent e1765e36
...@@ -287,6 +287,7 @@ func formatAlias(query *CloudWatchQuery, stat string, dimensions map[string]stri ...@@ -287,6 +287,7 @@ func formatAlias(query *CloudWatchQuery, stat string, dimensions map[string]stri
data["namespace"] = query.Namespace data["namespace"] = query.Namespace
data["metric"] = query.MetricName data["metric"] = query.MetricName
data["stat"] = stat data["stat"] = stat
data["period"] = strconv.Itoa(query.Period)
for k, v := range dimensions { for k, v := range dimensions {
data[k] = v data[k] = v
} }
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
<li>{{stat}}</li> <li>{{stat}}</li>
<li>{{namespace}}</li> <li>{{namespace}}</li>
<li>{{region}}</li> <li>{{region}}</li>
<li>{{period}}</li>
<li>{{YOUR_DIMENSION_NAME}}</li> <li>{{YOUR_DIMENSION_NAME}}</li>
</ul> </ul>
</info-popover> </info-popover>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment