dashboards
Creates, updates, deletes, gets or lists a dashboards resource.
Overview
| Name | dashboards |
| Type | Resource |
| Id | google.contactcenterinsights.dashboards |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. Dashboard resource name. Format: projects/{project}/locations/{location}/dashboards/{dashboard} |
createTime | string (google-datetime) | Output only. Dashboard creation time. |
dateRangeConfig | object | Date range config applied to all charts in the dashboard. (id: GoogleCloudContactcenterinsightsV1DateRangeConfig) |
description | string | Dashboard description |
displayName | string | User provided display name of the dashboard. |
filter | string | Filter applied to all charts in the dashboard. Should support scope later. |
readOnly | boolean | Output only. Whether the dashboard is read-only. All predefined dashboards are read-only and cannot be modified by the user. |
rootContainer | object | The dashboard's root widget container. We want to display the dashboard layout in a tree-like structure, where the root container contains other widgets (containers or charts) as children. (id: GoogleCloudContactcenterinsightsV1Container) |
updateTime | string (google-datetime) | Output only. Dashboard last update time. |
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. Dashboard resource name. Format: projects/{project}/locations/{location}/dashboards/{dashboard} |
createTime | string (google-datetime) | Output only. Dashboard creation time. |
dateRangeConfig | object | Date range config applied to all charts in the dashboard. (id: GoogleCloudContactcenterinsightsV1DateRangeConfig) |
description | string | Dashboard description |
displayName | string | User provided display name of the dashboard. |
filter | string | Filter applied to all charts in the dashboard. Should support scope later. |
readOnly | boolean | Output only. Whether the dashboard is read-only. All predefined dashboards are read-only and cannot be modified by the user. |
rootContainer | object | The dashboard's root widget container. We want to display the dashboard layout in a tree-like structure, where the root container contains other widgets (containers or charts) as children. (id: GoogleCloudContactcenterinsightsV1Container) |
updateTime | string (google-datetime) | Output only. Dashboard last update time. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, dashboardsId | Gets a Dashboard. | |
list | select | projectsId, locationsId | filter, orderBy, pageSize, pageToken | Lists Dashboards. |
create | insert | projectsId, locationsId | dashboardId | Creates a Dashboard. |
patch | update | projectsId, locationsId, dashboardsId | updateMask | Updates a Dashboard. |
delete | delete | projectsId, locationsId, dashboardsId | Deletes a Dashboard. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
dashboardsId | string | |
locationsId | string | |
projectsId | string | |
dashboardId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
updateMask | string (google-fieldmask) |
SELECT examples
- get
- list
Gets a Dashboard.
SELECT
name,
createTime,
dateRangeConfig,
description,
displayName,
filter,
readOnly,
rootContainer,
updateTime
FROM google.contactcenterinsights.dashboards
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND dashboardsId = '{{ dashboardsId }}' -- required
;
Lists Dashboards.
SELECT
name,
createTime,
dateRangeConfig,
description,
displayName,
filter,
readOnly,
rootContainer,
updateTime
FROM google.contactcenterinsights.dashboards
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;
INSERT examples
- create
- Manifest
Creates a Dashboard.
INSERT INTO google.contactcenterinsights.dashboards (
data__dateRangeConfig,
data__description,
data__displayName,
data__filter,
data__name,
data__rootContainer,
projectsId,
locationsId,
dashboardId
)
SELECT
'{{ dateRangeConfig }}',
'{{ description }}',
'{{ displayName }}',
'{{ filter }}',
'{{ name }}',
'{{ rootContainer }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ dashboardId }}'
RETURNING
name,
createTime,
dateRangeConfig,
description,
displayName,
filter,
readOnly,
rootContainer,
updateTime
;
# Description fields are for documentation purposes
- name: dashboards
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the dashboards resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the dashboards resource.
- name: dateRangeConfig
description: |
Date range config applied to all charts in the dashboard.
value:
absoluteDateRange:
endTime: "{{ endTime }}"
startTime: "{{ startTime }}"
relativeDateRange:
quantity: "{{ quantity }}"
unit: "{{ unit }}"
- name: description
value: "{{ description }}"
description: |
Dashboard description
- name: displayName
value: "{{ displayName }}"
description: |
User provided display name of the dashboard.
- name: filter
value: "{{ filter }}"
description: |
Filter applied to all charts in the dashboard. Should support scope later.
- name: name
value: "{{ name }}"
description: |
Identifier. Dashboard resource name. Format: projects/{project}/locations/{location}/dashboards/{dashboard}
- name: rootContainer
description: |
The dashboard's root widget container. We want to display the dashboard layout in a tree-like structure, where the root container contains other widgets (containers or charts) as children.
value:
containerId: "{{ containerId }}"
dateRangeConfig:
absoluteDateRange:
endTime: "{{ endTime }}"
startTime: "{{ startTime }}"
relativeDateRange:
quantity: "{{ quantity }}"
unit: "{{ unit }}"
description: "{{ description }}"
displayName: "{{ displayName }}"
filter: "{{ filter }}"
height: {{ height }}
widgets:
- chart:
action:
conversationFilter: "{{ conversationFilter }}"
redirectAction:
queryParams: "{{ queryParams }}"
relativePath: "{{ relativePath }}"
chartType: "{{ chartType }}"
chartVisualizationType: "{{ chartVisualizationType }}"
createTime: "{{ createTime }}"
dataSource:
generativeInsights:
chartCheckpoint: "{{ chartCheckpoint }}"
chartConversations: "{{ chartConversations }}"
chartSpec: "{{ chartSpec }}"
request: "{{ request }}"
sqlComparisonKey: "{{ sqlComparisonKey }}"
sqlQuery: "{{ sqlQuery }}"
queryMetrics:
request: "{{ request }}"
dateRangeConfig:
absoluteDateRange:
endTime: "{{ endTime }}"
startTime: "{{ startTime }}"
relativeDateRange:
quantity: "{{ quantity }}"
unit: "{{ unit }}"
description: "{{ description }}"
displayName: "{{ displayName }}"
filter: "{{ filter }}"
height: {{ height }}
name: "{{ name }}"
updateTime: "{{ updateTime }}"
width: {{ width }}
chartReference: "{{ chartReference }}"
container:
containerId: "{{ containerId }}"
dateRangeConfig:
absoluteDateRange:
endTime: "{{ endTime }}"
startTime: "{{ startTime }}"
relativeDateRange:
quantity: "{{ quantity }}"
unit: "{{ unit }}"
description: "{{ description }}"
displayName: "{{ displayName }}"
filter: "{{ filter }}"
height: {{ height }}
widgets:
- chart:
action: "{{ action }}"
chartType: "{{ chartType }}"
chartVisualizationType: "{{ chartVisualizationType }}"
createTime: "{{ createTime }}"
dataSource: "{{ dataSource }}"
dateRangeConfig: "{{ dateRangeConfig }}"
description: "{{ description }}"
displayName: "{{ displayName }}"
filter: "{{ filter }}"
height: {{ height }}
name: "{{ name }}"
updateTime: "{{ updateTime }}"
width: {{ width }}
chartReference: "{{ chartReference }}"
container:
containerId: "{{ containerId }}"
dateRangeConfig: "{{ dateRangeConfig }}"
description: "{{ description }}"
displayName: "{{ displayName }}"
filter: "{{ filter }}"
height: {{ height }}
widgets: "{{ widgets }}"
width: {{ width }}
filter: "{{ filter }}"
width: {{ width }}
filter: "{{ filter }}"
width: {{ width }}
- name: dashboardId
value: "{{ dashboardId }}"
UPDATE examples
- patch
Updates a Dashboard.
UPDATE google.contactcenterinsights.dashboards
SET
data__dateRangeConfig = '{{ dateRangeConfig }}',
data__description = '{{ description }}',
data__displayName = '{{ displayName }}',
data__filter = '{{ filter }}',
data__name = '{{ name }}',
data__rootContainer = '{{ rootContainer }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND dashboardsId = '{{ dashboardsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
dateRangeConfig,
description,
displayName,
filter,
readOnly,
rootContainer,
updateTime;
DELETE examples
- delete
Deletes a Dashboard.
DELETE FROM google.contactcenterinsights.dashboards
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND dashboardsId = '{{ dashboardsId }}' --required
;