Available in Classic and VPC
This is the metric information in a widget.
Syntax
The syntax is as follows:
private String displayName;
private String prodKey;
private String prodName;
private String metric;
private Map<String, String> dimensions;
private Calculation statistic;
private Interval period;
private String color;
private JSONArray data;
Field
The following describes the fields:
Field | Type | Required | Description |
---|---|---|---|
displayName |
String | - | Name of metric displayed in widget |
prodKey |
String | - | cw_key of the product |
prodName |
String | - | Name of product |
metric |
String | - | Metric name to be searched |
dimensions |
Map<String, String> | - | Dimension name of the data to query
|
statistic |
Calculation | - | Aggregation function to query
|
period |
Interval | - | Aggregation interval to query
|
color |
String | - | Color of the chart displayed in the widget |
data |
JSONArray | - | Search results |