Method: projects.locations.instances.nativeDashboards.editChart

Edit chart in a dashboard.

HTTP request

POST https://chronicle.googleapis.com/v1alpha/{name=projects/*/locations/*/instances/*/nativeDashboards/*}:editChart

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

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

Request body

The request body contains data with the following structure:

JSON representation
{
  "dashboard_query": {
    object (DashboardQuery)
  },
  "dashboard_chart": {
    object (DashboardChart)
  },
  "edit_mask": string
}
Fields
dashboard_query

object (DashboardQuery)

Optional. Query for the edited chart.

dashboard_chart

object (DashboardChart)

Optional. Edited chart.

edit_mask

string (FieldMask format)

Required. LINT.IfChange(edit_mask_values) The list of fields to edit for chart and query. Supported paths in chart are - dashboard_chart.display_name dashboard_chart.description dashboard_chart.chart_datasource.data_sources dashboard_chart.visualization dashboard_chart.visualization.button Supported paths in query are - dashboard_query.query dashboard_query.input

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Response body

Response message for editing chart in a dashboard.

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

JSON representation
{
  "native_dashboard": {
    object (NativeDashboard)
  },
  "dashboard_chart": {
    object (DashboardChart)
  }
}
Fields
native_dashboard

object (NativeDashboard)

Edited dashboard.

dashboard_chart

object (DashboardChart)

Edited 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.