Skip to content
View as Markdown

GetChartsDataResponse

Field Type Description
data repeated bitdrift.public.unary.dashboards.v1.ChartData Data for each of the requested data. The order of the data will match the order of the chart ids in the request.

Example

JSON
{
  "data": [
    {
      "chart_id": {
        "workflow": {
          "aggregated_action_id": "actn_ghi789",
          "chart_rule_id": "actn_ghi789",
          "workflow_id": "wrkf_abc123"
        }
      },
      "line_data": {
        "time_series": [
          {
            "aggregated_rollup": 1.0,
            "aggregation_window": "3600s",
            "cardinality_overflows": {
              "group_by_overflows": 1,
              "query_group_by_collapsed": false,
              "total_overflows": 42
            },
            "data": [
              {
                "rate_details": {
                  "denominator_count": 42,
                  "numerator_count": 42
                },
                "timestamp": "2024-01-15T09:30:00Z",
                "unique_devices": 1,
                "value": 1.0
              }
            ],
            "id": "abc-123-def",
            "labels": [
              {
                "name": "My Workflow",
                "value": "example"
              }
            ],
            "legend": {
              "title": "My Workflow"
            },
            "title": "My Workflow",
            "unique_devices": 1
          }
        ]
      }
    }
  ]
}