Method: nativeDashboards.addChart

Full name: projects.locations.instances.nativeDashboards.addChart

Add chart in a dashboard.

HTTP request


Path parameters

Parameters
name

string

Required. The dashboard name to add chart in. Format: projects/{project}/locations/{region}/instances/{instance}/nativeDashboards/{dashboard}

Request body

The request body contains data with the following structure:

JSON representation
{
  "dashboardQuery": {
    object (DashboardQuery)
  },
  "dashboardChart": {
    object (DashboardChart)
  },
  "chartLayout": {
    object (ChartLayout)
  }
}
Fields
dashboardQuery

object (DashboardQuery)

Optional. Query used to create the chart.

dashboardChart

object (DashboardChart)

Required. Chart to be added to the dashboard.

chartLayout

object (ChartLayout)

Required. ChartLayout for newly added chart.

Response body

Response message for adding chart in a dashboard.

If successful, the response body contains data with the following structure:

JSON representation
{
  "nativeDashboard": {
    object (NativeDashboard)
  },
  "dashboardChart": {
    object (DashboardChart)
  }
}
Fields
nativeDashboard

object (NativeDashboard)

Dashboard with chart added in definition.

dashboardChart

object (DashboardChart)

Created chart resource.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the name resource:

  • chronicle.nativeDashboards.update

For more information, see the IAM documentation.