MENU
      WidgetMetricInfoDto

        WidgetMetricInfoDto


        Article summary

        Available in Classic

        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;
        Java

        Field

        The following describes the fields.

        FieldTypeRequiredDescription
        displayNameString-Name of metric displayed in widget
        prodKeyString-cw_key of the product
        prodNameString-Name of product
        metricString-Metric name to be searched
        dimensionsMap<String, String>-Dimension name of the data to query
        • Can be entered as a key/value
        statisticCalculation-Aggregation function to query
        • COUNT | SUM | MAX | MIN | AVG
        periodInterval-Aggregation interval to query
        • Min1 | Min5 | Min30 | Hour2 | Day1
        colorString-Color of the chart displayed in the widget
        dataJSONArray-Search results

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.