IWorkspaceDashboardsService
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Service to list, create and update analytical dashboards
export interface IWorkspaceDashboardsService
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| string | (ALPHA) |
Methods
Method | Description |
|---|---|
(ALPHA) Create and save dashboard for the provided dashboard definition | |
(ALPHA) Creates a record about a dashboard plugin. Creating a new dashboard plugin does not impact any existing dashboards in the workspace. In order to use a plugin on a dashboard, you need to create a link between the dashboard and the plugin. Multiple dashboards may link to a single plugin; each dashboard may link to the plugin with different plugin-specific parameters. | |
(ALPHA) Create a new filter view. | |
(ALPHA) Create scheduled mail for the dashboard | |
(ALPHA) Create widget alert for the provided widget alert definition | |
(ALPHA) Delete dashboard | |
(ALPHA) Deletes a record about a dashboard plugin from the backend. | |
(ALPHA) Delete a filter view identified by the provided ref. | |
(ALPHA) Delete scheduled mail | |
(ALPHA) Delete widget alert with the given reference | |
(ALPHA) Widget alerts bulk delete | |
exportDashboardToCSVRaw(definition, fileName, customOverrides, options) | (ALPHA) Export dashboard to CSV raw. CSV raw file is downloaded and attached as Blob data to the current window instance. |
(ALPHA) Export dashboard to png. PNG file is downloaded and attached as Blob data to the current window instance. If title is not provided, the dashboard title will be fetched. | |
(ALPHA) Export dashboard to pdf. You can override dashboard filters with custom filters. When no custom filters are set, the persisted dashboard filters will be used. PDF file is downloaded and attached as Blob data to the current window instance. | |
exportDashboardToPresentation(ref, format, filters, filtersByTab, options) | (ALPHA) Export dashboard to pdf. You can override dashboard filters with custom filters. When no custom filters are set, the persisted dashboard filters will be used. PDF file is downloaded and attached as Blob data to the current window instance. |
(ALPHA) Export dashboard to tabular. Tabular file is downloaded and attached as Blob data to the current window instance. If title is not provided, the dashboard title will be fetched. | |
(ALPHA) Get all widget alerts for the current user | |
(ALPHA) Load dashboard by its reference, and override filter context with the given custom filter context (custom filter context is used mainly for exporting) | |
(ALPHA) Get current user’s permissions to the dashboard. | |
(ALPHA) Load dashboard plugin by it’s reference. | |
(ALPHA) Gets all dashboard plugins registered in the current workspace. | |
(ALPHA) Get objects referenced by a given dashboard. | |
(ALPHA) Gets all dashboards available in current workspace. | |
(ALPHA) List dashboards | |
(ALPHA) (Optional) Gets the status of the dashboard summary workflow. Used for polling the status of the workflow run. | |
(ALPHA) Get all widget alerts for the current user for the given dashboard | |
getDashboardWithReferences(ref, filterContextRef, options, types) | (ALPHA) Loads a dashboard and objects that the dashboard references. |
(ALPHA) Get the metadata stored with the export identified by the provided export id: the inlined filter context together with other export-render inputs (title, widget-title visibility, custom metadata and the explicit timezone). | |
(ALPHA) Get a list of filter views for the current user. | |
getResolvedFiltersForWidget(widget, filters, attributeFilterConfigs) | (ALPHA) Takes a widget and a list of filters and returns filters that can be used for the widget. - for attribute filters, these are filters that should NOT be ignored according to the ignoreDashboardFilters property. - for date filters it is the last filter with the same date dimension as specified in dateDataSet property. DOES NOT SUPPORT MULTIPLE DATE FILTERS. If you want to provide multiple date filters, pls refer to getResolvedFiltersForWidgetWithMultipleDateFilters The implementation MUST take different ObjRef types into account, for example if an incoming filter uses idRef and an ignoreDashboardFilters item uses uriRef but they point to the same metadata object, the filter MUST NOT be included in the result. |
(ALPHA) Takes a widget, commonDateFilters and a list of other filters and returns filters that can be used for the widget. - common date filters are used only when match widget’s date data set. If multiple of them match the last one is used - other date filters - these are filters that should NOT be ignored according to the ignoreDashboardFilters property. May have date data sets different from one in widget’s definition - for attribute filters - these are filters that should NOT be ignored according to the ignoreDashboardFilters property. The implementation MUST take different ObjRef types into account, for example if an incoming filter uses idRef and an ignoreDashboardFilters item uses uriRef but they point to the same metadata object, the filter MUST NOT be included in the result. | |
(ALPHA) Get the number of scheduled emails for particular dashboard | |
(ALPHA) Get scheduled emails for particular dashboard | |
(ALPHA) Get the number of widget alerts (created by any user) for particular widgets | |
(ALPHA) Get all metadata objects referenced by a given widget. | |
(ALPHA) Sets dashboard certification metadata. | |
(ALPHA) Set a filter view identified by the provided ref as the default one. The other filter views for the same dashboard that are marked as default ones will be unmarked. | |
(ALPHA) (Optional) Starts the process of generating AI summary for the dashboard. | |
(ALPHA) Update dashboard | |
(ALPHA) Patch dashboard | |
(ALPHA) Update existing scheduled mail for the dashboard | |
(ALPHA) Update widget alert | |
(ALPHA) Checks whether dashboards exist for current user. Returns sanitized array of existing dashboards according to user’s permissions to access or drill to them. |
Property details
IWorkspaceDashboardsService.workspacepropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
readonly workspace: string;
Method details
IWorkspaceDashboardsService.createDashboard()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Create and save dashboard for the provided dashboard definition
createDashboard(dashboard: IDashboardDefinition, generateId?: boolean): Promise<IDashboard>;
Parameters
Parameter | Type | Description |
|---|---|---|
dashboard | dashboard definition | |
generateId | boolean | (Optional) whether to generate a new identifier for the dashboard, default is true |
Returns
Promise<IDashboard>
promise of the created dashboard
IWorkspaceDashboardsService.createDashboardPlugin()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Creates a record about a dashboard plugin. Creating a new dashboard plugin does not impact any existing dashboards in the workspace.
In order to use a plugin on a dashboard, you need to create a link between the dashboard and the plugin. Multiple dashboards may link to a single plugin; each dashboard may link to the plugin with different plugin-specific parameters.
createDashboardPlugin(plugin: IDashboardPluginDefinition): Promise<IDashboardPlugin>;
Parameters
Parameter | Type | Description |
|---|---|---|
plugin | definition of plugin to create |
Returns
Promise<IDashboardPlugin>
Remarks
Analytical Backend only allows creating new dashboard plugins or deleting existing plugins. The goal behind this decision is to encourage safe, phased rollout of new plugin versions. You must first create a new dashboard plugin and then explicitly start using this new version on dashboards in order for changes to take effect.
IWorkspaceDashboardsService.createFilterView()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Create a new filter view.
createFilterView(filterView: IDashboardFilterViewSaveRequest): Promise<IDashboardFilterView>;
Parameters
Parameter | Type | Description |
|---|---|---|
filterView | filter view that must be created. |
Returns
Promise<IDashboardFilterView>
IWorkspaceDashboardsService.createScheduledMail()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Create scheduled mail for the dashboard
createScheduledMail(scheduledMail: IScheduledMailDefinition, exportFilterContext?: IFilterContextDefinition): Promise<IScheduledMail>;
Parameters
Parameter | Type | Description |
|---|---|---|
scheduledMail | scheduled email definition | |
exportFilterContext | (Optional) override dashboard filter context with the custom filter context during the export |
Returns
Promise<IScheduledMail>
promise of the created scheduled email
IWorkspaceDashboardsService.createWidgetAlert()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Create widget alert for the provided widget alert definition
createWidgetAlert(alert: IWidgetAlertDefinition): Promise<IWidgetAlert>;
Parameters
Parameter | Type | Description |
|---|---|---|
alert | widget alert definition |
Returns
Promise<IWidgetAlert>
promise with the created alert
IWorkspaceDashboardsService.deleteDashboard()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Delete dashboard
deleteDashboard(ref: ObjRef): Promise<void>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | dashboard reference |
Returns
Promise<void>
promise
IWorkspaceDashboardsService.deleteDashboardPlugin()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Deletes a record about a dashboard plugin from the backend.
deleteDashboardPlugin(ref: ObjRef): Promise<void>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | reference to plugin to |
Returns
Promise<void>
Remarks
- some backend implementations may reject to delete a dashboard plugin that is used on existing dashboards
IWorkspaceDashboardsService.deleteFilterView()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Delete a filter view identified by the provided ref.
deleteFilterView(ref: ObjRef): Promise<void>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | ref of the filter view that must be deleted. |
Returns
Promise<void>
IWorkspaceDashboardsService.deleteScheduledMail()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Delete scheduled mail
deleteScheduledMail(ref: ObjRef): Promise<void>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | scheduled email reference |
Returns
Promise<void>
promise
IWorkspaceDashboardsService.deleteWidgetAlert()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Delete widget alert with the given reference
deleteWidgetAlert(ref: ObjRef): Promise<void>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | widget alert reference |
Returns
Promise<void>
promise
IWorkspaceDashboardsService.deleteWidgetAlerts()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Widget alerts bulk delete
deleteWidgetAlerts(refs: ObjRef[]): Promise<void>;
Parameters
Parameter | Type | Description |
|---|---|---|
refs | ObjRef[] | widget alerts references |
Returns
Promise<void>
promise
IWorkspaceDashboardsService.exportDashboardToCSVRaw()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Export dashboard to CSV raw.
CSV raw file is downloaded and attached as Blob data to the current window instance.
exportDashboardToCSVRaw(definition: IExecutionDefinition, fileName: string, customOverrides?: IRawExportCustomOverrides, options?: IDashboardExportRawOptions): Promise<IExportResult>;
Parameters
Parameter | Type | Description |
|---|---|---|
definition | execution definition | |
fileName | string | name of the file |
customOverrides | (Optional) custom title overrides for measures and display forms | |
options | (Optional) export options |
Returns
Promise<IExportResult>
promise with object URL pointing to a Blob data of downloaded exported dashboard
IWorkspaceDashboardsService.exportDashboardToImage()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Export dashboard to png.
PNG file is downloaded and attached as Blob data to the current window instance. If title is not provided, the dashboard title will be fetched.
exportDashboardToImage(ref: ObjRef, filters?: FilterContextItem[], filtersByTab?: FiltersByTab, options?: IDashboardExportImageOptions): Promise<IExportResult>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | dashboard reference | |
filters | (Optional) Override stored dashboard filters with custom filters | |
filtersByTab | (Optional) Override stored dashboard filters per tab with custom filters | |
options | (Optional) export options |
Returns
Promise<IExportResult>
promise with object URL pointing to a Blob data of downloaded exported dashboard
IWorkspaceDashboardsService.exportDashboardToPdf()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Export dashboard to pdf. You can override dashboard filters with custom filters. When no custom filters are set, the persisted dashboard filters will be used.
PDF file is downloaded and attached as Blob data to the current window instance.
exportDashboardToPdf(ref: ObjRef, filters?: FilterContextItem[], filtersByTab?: FiltersByTab, options?: IDashboardExportPdfOptions): Promise<IExportResult>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | dashboard reference | |
filters | (Optional) Override stored dashboard filters with custom filters | |
filtersByTab | (Optional) | |
options | (Optional) export options |
Returns
Promise<IExportResult>
promise with object URL pointing to a Blob data of downloaded exported dashboard
IWorkspaceDashboardsService.exportDashboardToPresentation()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Export dashboard to pdf. You can override dashboard filters with custom filters. When no custom filters are set, the persisted dashboard filters will be used.
PDF file is downloaded and attached as Blob data to the current window instance.
exportDashboardToPresentation(ref: ObjRef, format: "PDF" | "PPTX", filters?: FilterContextItem[], filtersByTab?: FiltersByTab, options?: IDashboardExportPresentationOptions): Promise<IExportResult>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | dashboard reference | |
format | “PDF” | “PPTX” | export format |
filters | (Optional) Override stored dashboard filters with custom filters | |
filtersByTab | (Optional) Override stored dashboard filters per tab with custom filters | |
options | (Optional) additional options |
Returns
Promise<IExportResult>
promise with object URL pointing to a Blob data of downloaded exported dashboard
IWorkspaceDashboardsService.exportDashboardToTabular()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Export dashboard to tabular.
Tabular file is downloaded and attached as Blob data to the current window instance. If title is not provided, the dashboard title will be fetched.
exportDashboardToTabular(ref: ObjRef, options?: IDashboardExportTabularOptions): Promise<IExportResult>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | dashboard reference | |
options | (Optional) export options |
Returns
Promise<IExportResult>
promise with object URL pointing to a Blob data of downloaded exported dashboard
IWorkspaceDashboardsService.getAllWidgetAlertsForCurrentUser()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Get all widget alerts for the current user
getAllWidgetAlertsForCurrentUser(): Promise<IWidgetAlert[]>;
Returns
Promise<IWidgetAlert[]>
promise with all user widget alerts
IWorkspaceDashboardsService.getDashboard()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Load dashboard by its reference, and override filter context with the given custom filter context (custom filter context is used mainly for exporting)
getDashboard(ref: ObjRef, filterContextRef?: ObjRef, options?: IGetDashboardOptions): Promise<IDashboard>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | dashboard ref | |
filterContextRef | (Optional) Override dashboard filter context with the custom filter context (This allows to modify filter context when exporting the dashboard) | |
options | (Optional) Specify additional options |
Returns
Promise<IDashboard>
promise of the dashboard
IWorkspaceDashboardsService.getDashboardPermissions()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Get current user’s permissions to the dashboard.
getDashboardPermissions(ref: ObjRef): Promise<IDashboardPermissions>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | dashboard reference |
Returns
Promise<IDashboardPermissions>
IWorkspaceDashboardsService.getDashboardPlugin()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Load dashboard plugin by it’s reference.
getDashboardPlugin(ref: ObjRef, options?: IGetDashboardPluginOptions): Promise<IDashboardPlugin>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | plugin reference | |
options | (Optional) options that specify how the plugin should be loaded |
Returns
Promise<IDashboardPlugin>
IWorkspaceDashboardsService.getDashboardPlugins()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Gets all dashboard plugins registered in the current workspace.
getDashboardPlugins(options?: IGetDashboardPluginOptions): Promise<IDashboardPlugin[]>;
Parameters
Parameter | Type | Description |
|---|---|---|
options | (Optional) options that specify how the plugin should be loaded |
Returns
Promise<IDashboardPlugin[]>
IWorkspaceDashboardsService.getDashboardReferencedObjects()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Get objects referenced by a given dashboard.
getDashboardReferencedObjects(dashboard: IDashboard, types?: SupportedDashboardReferenceTypes[]): Promise<IDashboardReferences>;
Parameters
Parameter | Type | Description |
|---|---|---|
dashboard | dashboard to get referenced objects for | |
types | (Optional) optional array of object types to include, when not specified, all supported references will be retrieved |
Returns
Promise<IDashboardReferences>
IWorkspaceDashboardsService.getDashboards()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Gets all dashboards available in current workspace.
getDashboards(options?: IGetDashboardOptions): Promise<IListedDashboard[]>;
Parameters
Parameter | Type | Description |
|---|---|---|
options | (Optional) Specify additional options |
Returns
Promise<IListedDashboard[]>
promise of list of the dashboards
IWorkspaceDashboardsService.getDashboardsQuery()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
List dashboards
getDashboardsQuery(): IDashboardsQuery;
Returns
methods for querying dashboards
IWorkspaceDashboardsService.getDashboardSummaryWorkflowStatus()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Gets the status of the dashboard summary workflow. Used for polling the status of the workflow run.
getDashboardSummaryWorkflowStatus?(runId: string): Promise<IDashboardSummaryWorkflowStatusResult>;
Parameters
Parameter | Type | Description |
|---|---|---|
runId | string | id of the workflow run |
Returns
Promise<IDashboardSummaryWorkflowStatusResult>
IWorkspaceDashboardsService.getDashboardWidgetAlertsForCurrentUser()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Get all widget alerts for the current user for the given dashboard
getDashboardWidgetAlertsForCurrentUser(ref: ObjRef): Promise<IWidgetAlert[]>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | dashboard reference |
Returns
Promise<IWidgetAlert[]>
promise with all user widget alerts for the dashboard
IWorkspaceDashboardsService.getDashboardWithReferences()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Loads a dashboard and objects that the dashboard references.
getDashboardWithReferences(ref: ObjRef, filterContextRef?: ObjRef, options?: IGetDashboardOptions, types?: SupportedDashboardReferenceTypes[]): Promise<IDashboardWithReferences>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | dashboard ref | |
filterContextRef | (Optional) Override dashboard filter context with the custom filter context (This allows to modify filter context when exporting the dashboard) | |
options | (Optional) Specify additional options | |
types | (Optional) types of dashboard references to load; if the types are undefined, the service must default to loading insights related to the dashboard |
Returns
Promise<IDashboardWithReferences>
promise of the dashboard and references
IWorkspaceDashboardsService.getExportDataByExportId()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Get the metadata stored with the export identified by the provided export id: the inlined filter context together with other export-render inputs (title, widget-title visibility, custom metadata and the explicit timezone).
getExportDataByExportId(exportId: string, type: "visual" | "slides" | undefined, tabId?: string): Promise<{
filterContext?: IFilterContext;
title?: string;
hideWidgetTitles?: boolean;
exportMetadata?: Record<string, string>;
timezoneId?: string;
} | null>;
Parameters
Parameter | Type | Description |
|---|---|---|
exportId | string | export id |
type | “visual” | “slides” | undefined | export type |
tabId | string | (Optional) id of the tab to export |
Returns
Promise<{ filterContext?: IFilterContext; title?: string; hideWidgetTitles?: boolean; exportMetadata?: Record<string, string>; timezoneId?: string; } | null>
Remarks
The timezone is present only when it cannot be derived at export time (an ad-hoc view-mode override or a resolved browser-detected timezone); otherwise the dashboard’s own stored timezone applies.
IWorkspaceDashboardsService.getFilterViewsForCurrentUser()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Get a list of filter views for the current user.
getFilterViewsForCurrentUser(dashboardRef: ObjRef): Promise<IDashboardFilterView[]>;
Parameters
Parameter | Type | Description |
|---|---|---|
dashboardRef | ref of the dashboard for which we want to get the filter views. |
Returns
Promise<IDashboardFilterView[]>
IWorkspaceDashboardsService.getResolvedFiltersForWidget()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Takes a widget and a list of filters and returns filters that can be used for the widget. - for attribute filters, these are filters that should NOT be ignored according to the ignoreDashboardFilters property. - for date filters it is the last filter with the same date dimension as specified in dateDataSet property. DOES NOT SUPPORT MULTIPLE DATE FILTERS. If you want to provide multiple date filters, pls refer to getResolvedFiltersForWidgetWithMultipleDateFilters
The implementation MUST take different ObjRef types into account, for example if an incoming filter uses idRef and an ignoreDashboardFilters item uses uriRef but they point to the same metadata object, the filter MUST NOT be included in the result.
getResolvedFiltersForWidget(widget: IWidget, filters: IFilter[], attributeFilterConfigs: IDashboardAttributeFilterConfig[]): Promise<IFilter[]>;
Parameters
Parameter | Type | Description |
|---|---|---|
widget | widget to get filters for | |
filters | IFilter[] | filters to apply on the widget |
attributeFilterConfigs | filter configs |
Returns
Promise<IFilter[]>
promise with the filters with the ignored filters removed
IWorkspaceDashboardsService.getResolvedFiltersForWidgetWithMultipleDateFilters()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Takes a widget, commonDateFilters and a list of other filters and returns filters that can be used for the widget. - common date filters are used only when match widget’s date data set. If multiple of them match the last one is used - other date filters - these are filters that should NOT be ignored according to the ignoreDashboardFilters property. May have date data sets different from one in widget’s definition - for attribute filters - these are filters that should NOT be ignored according to the ignoreDashboardFilters property.
The implementation MUST take different ObjRef types into account, for example if an incoming filter uses idRef and an ignoreDashboardFilters item uses uriRef but they point to the same metadata object, the filter MUST NOT be included in the result.
getResolvedFiltersForWidgetWithMultipleDateFilters(widget: IWidget, commonDateFilters: IDateFilter[], otherFilters: IFilter[], attributeFilterConfigs: IDashboardAttributeFilterConfig[]): Promise<IFilter[]>;
Parameters
Parameter | Type | Description |
|---|---|---|
widget | widget to get filters for | |
commonDateFilters | date filters to apply on the widget only when matching its date dataSet | |
otherFilters | IFilter[] | filters to apply on the widget |
attributeFilterConfigs | filter configs |
Returns
Promise<IFilter[]>
promise with the filters with the ignored filters removed
IWorkspaceDashboardsService.getScheduledMailsCountForDashboard()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Get the number of scheduled emails for particular dashboard
getScheduledMailsCountForDashboard(ref: ObjRef): Promise<number>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | dashboard reference |
Returns
Promise<number>
promise with the number of scheduled emails connected to the dashboard
IWorkspaceDashboardsService.getScheduledMailsForDashboard()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Get scheduled emails for particular dashboard
getScheduledMailsForDashboard(ref: ObjRef, options?: IGetScheduledMailOptions): Promise<IScheduledMail[]>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | dashboard reference | |
options | (Optional) specify additional options |
Returns
Promise<IScheduledMail[]>
promise with scheduled emails connected to the dashboard
IWorkspaceDashboardsService.getWidgetAlertsCountForWidgets()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Get the number of widget alerts (created by any user) for particular widgets
getWidgetAlertsCountForWidgets(refs: ObjRef[]): Promise<IWidgetAlertCount[]>;
Parameters
Parameter | Type | Description |
|---|---|---|
refs | ObjRef[] | widget references |
Returns
Promise<IWidgetAlertCount[]>
promise with array of pairs of widget ref and alert count
IWorkspaceDashboardsService.getWidgetReferencedObjects()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Get all metadata objects referenced by a given widget.
getWidgetReferencedObjects(widget: IWidget, types?: SupportedWidgetReferenceTypes[]): Promise<IWidgetReferences>;
Parameters
Parameter | Type | Description |
|---|---|---|
widget | widget to get referenced objects for | |
types | (Optional) optional array of object types to include, when not specified, all supported references will be retrieved |
Returns
Promise<IWidgetReferences>
IWorkspaceDashboardsService.setCertification()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Sets dashboard certification metadata.
setCertification(ref: ObjRef, certification?: IObjectCertificationWrite): Promise<void>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | dashboard reference | |
certification | IObjectCertificationWrite | (Optional) certification state; undefined clears certification |
Returns
Promise<void>
IWorkspaceDashboardsService.setFilterViewAsDefault()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Set a filter view identified by the provided ref as the default one. The other filter views for the same dashboard that are marked as default ones will be unmarked.
setFilterViewAsDefault(ref: ObjRef, isDefault: boolean): Promise<void>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | ref of the filter view that must be set as default. | |
isDefault | boolean | determine if filter view identified by the provided ref should be marked as a default one. If yes, any existing filter view for the same user and dashboard will be marked as non default as only one can be set as default at the same time. |
Returns
Promise<void>
IWorkspaceDashboardsService.startDashboardSummaryWorkflow()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Starts the process of generating AI summary for the dashboard.
startDashboardSummaryWorkflow?(dashboardId: string): Promise<IDashboardSummaryWorkflowStartResult>;
Parameters
Parameter | Type | Description |
|---|---|---|
dashboardId | string | id of the dashboard for which summary should be generated |
Returns
Promise<IDashboardSummaryWorkflowStartResult>
IWorkspaceDashboardsService.updateDashboard()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Update dashboard
updateDashboard(dashboard: IDashboard, updatedDashboard: IDashboardDefinition): Promise<IDashboard>;
Parameters
Parameter | Type | Description |
|---|---|---|
dashboard | original dashboard before modifications | |
updatedDashboard | modified dashboard |
Returns
Promise<IDashboard>
promise of the updated dashboard
IWorkspaceDashboardsService.updateDashboardMeta()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Patch dashboard
updateDashboardMeta(updatedDashboard: IDashboardObjectIdentity & Partial<IDashboardBase>): Promise<IDashboard>;
Parameters
Parameter | Type | Description |
|---|---|---|
updatedDashboard | IDashboardObjectIdentity & Partial<IDashboardBase> | modified dashboard |
Returns
Promise<IDashboard>
promise of the updated dashboard
IWorkspaceDashboardsService.updateScheduledMail()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Update existing scheduled mail for the dashboard
updateScheduledMail(ref: ObjRef, scheduledMail: IScheduledMailDefinition, filterContextRef?: ObjRef): Promise<void>;
Parameters
Parameter | Type | Description |
|---|---|---|
ref | reference to the existing scheduled email object | |
scheduledMail | scheduled email definition | |
filterContextRef | (Optional) optional reference to an existing filter context to be used in all attachments |
Returns
Promise<void>
promise of the updated scheduled email
IWorkspaceDashboardsService.updateWidgetAlert()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Update widget alert
updateWidgetAlert(alert: IWidgetAlert | IWidgetAlertDefinition): Promise<IWidgetAlert>;
Parameters
Parameter | Type | Description |
|---|---|---|
alert | updated widget alert |
Returns
Promise<IWidgetAlert>
promise with the updated alert
IWorkspaceDashboardsService.validateDashboardsExistence()methodAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Checks whether dashboards exist for current user. Returns sanitized array of existing dashboards according to user’s permissions to access or drill to them.
validateDashboardsExistence(dashboardRefs: ObjRef[]): Promise<IExistingDashboard[]>;
Parameters
Parameter | Type | Description |
|---|---|---|
dashboardRefs | ObjRef[] | dashboard references to validate |
Returns
Promise<IExistingDashboard[]>