Skip to main content

dashboards

Creates, updates, deletes, gets or lists a dashboards resource.

Overview

Namedashboards
TypeResource
Idgoogle.contactcenterinsights.dashboards

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Dashboard resource name. Format: projects/{project}/locations/{location}/dashboards/{dashboard}
createTimestring (google-datetime)Output only. Dashboard creation time.
dateRangeConfigobjectDate range config applied to all charts in the dashboard. (id: GoogleCloudContactcenterinsightsV1DateRangeConfig)
descriptionstringDashboard description
displayNamestringUser provided display name of the dashboard.
filterstringFilter applied to all charts in the dashboard. Should support scope later.
readOnlybooleanOutput only. Whether the dashboard is read-only. All predefined dashboards are read-only and cannot be modified by the user.
rootContainerobjectThe 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)
updateTimestring (google-datetime)Output only. Dashboard last update time.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, dashboardsIdGets a Dashboard.
listselectprojectsId, locationsIdpageSize, filter, pageToken, orderByLists Dashboards.
createinsertprojectsId, locationsIddashboardIdCreates a Dashboard.
patchupdateprojectsId, locationsId, dashboardsIdupdateMaskUpdates a Dashboard.
deletedeleteprojectsId, locationsId, dashboardsIdDeletes 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.

NameDatatypeDescription
dashboardsIdstring
locationsIdstring
projectsIdstring
dashboardIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

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
;

INSERT examples

Creates a Dashboard.

INSERT INTO google.contactcenterinsights.dashboards (
data__dateRangeConfig,
data__name,
data__filter,
data__displayName,
data__rootContainer,
data__description,
projectsId,
locationsId,
dashboardId
)
SELECT
'{{ dateRangeConfig }}',
'{{ name }}',
'{{ filter }}',
'{{ displayName }}',
'{{ rootContainer }}',
'{{ description }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ dashboardId }}'
RETURNING
name,
createTime,
dateRangeConfig,
description,
displayName,
filter,
readOnly,
rootContainer,
updateTime
;

UPDATE examples

Updates a Dashboard.

UPDATE google.contactcenterinsights.dashboards
SET
data__dateRangeConfig = '{{ dateRangeConfig }}',
data__name = '{{ name }}',
data__filter = '{{ filter }}',
data__displayName = '{{ displayName }}',
data__rootContainer = '{{ rootContainer }}',
data__description = '{{ description }}'
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

Deletes a Dashboard.

DELETE FROM google.contactcenterinsights.dashboards
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND dashboardsId = '{{ dashboardsId }}' --required
;