charts object[]List of charts to display on the dashboard. name string — REQUIREDPossible values: 1 ≤ length ≤ 50 Chart name (1-50 characters). | id stringChart ID. Required for updates. | metric object — REQUIREDMetric configuration for the chart. name string — REQUIREDPossible values: 1 ≤ length ≤ 50 Metric name (1-50 characters). | id stringPubNub-generated unique ID for the metric. Required in later requests to update, delete, or retrieve the metric. | businessObjectId string — REQUIREDID of the source business object. | measureId stringField ID to aggregate (required for AVG, MAX, MIN, SUM functions). References a NUMERIC field from the business object. | evaluationWindow number — REQUIREDPossible values: 1 ≤ value ≤ 86400 Time period in seconds for metric evaluation. Allowed values: 60 (1 min), 300 (5 min), 600 (10 min), 900 (15 min), 1800 (30 min), 3600 (1 hour), 86400 (1 day). | function string — REQUIREDPossible values: [AVG, SUM, MAX, MIN, COUNT, COUNT_DISTINCT] Aggregation function: AVG, COUNT, COUNT_DISTINCT, MAX, MIN, or SUM. | dimensionIds string[]Field IDs to group by (TEXT fields only). References dimensions from the business object. | filters object[]Filtering criteria for the metric. id stringPubNub-generated ID for the metric filter. Required when updating a metric (PUT). | sourceType string — REQUIREDPossible values: [MEASURE, DIMENSION] Filter source type. Value must always be DIMENSION. | sourceId string — REQUIREDID of the field or data field to filter on. | operation string — REQUIREDPossible values: [NUMERIC_GREATER_THAN, NUMERIC_GREATER_THAN_EQUALS, NUMERIC_LESS_THAN, NUMERIC_LESS_THAN_EQUALS, NUMERIC_INCLUSIVE_BETWEEN, NUMERIC_EXCLUSIVE_NOT_BETWEEN, BOOLEAN_IS_TRUE, BOOLEAN_IS_FALSE, STRING_CONTAINS, STRING_NOT_CONTAINS, STRING_STARTS_WITH, STRING_ENDS_WITH, STRING_EQUALS, STRING_IS_EMPTY, STRING_IS_NOT_EMPTY, STRING_NOT_EQUALS] Filter operation: STRING_EQUALS, STRING_NOT_EQUAL, STRING_CONTAINS, STRING_NOT_CONTAINS, STRING_IS_EMPTY, STRING_IS_NOT_EMPTY, STRING_STARTS_WITH, STRING_ENDS_WITH. | arguments string[] — REQUIREDFilter arguments (1 string). Matching is case-sensitive. |
|
| viewType string — REQUIREDPossible values: [BAR, LINE, STACKED] Chart visualization type: BAR, LINE, or STACKED. | size stringPossible values: [HALF, FULL] Chart size: FULL (full width) or HALF (half width). | showDecisions booleanWhether to display decision overlays on the chart. | dimensionIds string[]Default selected dimensions for grouping. References field IDs from the business object. | decisionIds string[]Decision IDs to overlay on the chart. |
|
dateRange string — REQUIREDPossible values: [30 minutes, 1 hour, 24 hours, 3 days, 1 week, 30 days, 3 months, Custom date] Date range for dashboard data: 30 minutes, 1 hour, 24 hours, 3 days, 1 week, 30 days, 3 months, or Custom date. |