- Resource: DashboardScheduledReport
- ReportState
- UserData
- ReportScopeInfo
- SimulatedDataVisibility
- CronDetails
- DeliveryDetails
- EmailDelivery
- DeliveryType
- Format
- FileFormat
- ReportGenerationDetail
- SuccessDetails
- ErrorDetails
- DeliveryState
- Methods
Resource: DashboardScheduledReport
DashboardScheduledReport represents a scheduled report configuration.
| JSON representation |
|---|
{ "name": string, "displayName": string, "description": string, "createTime": string, "updateTime": string, "createUserId": string, "updateUserId": string, "status": enum ( |
| Fields | |
|---|---|
name |
Immutable. Identifier. The resource name of the DashboardScheduledReport. Format: projects/{project}/locations/{location}/instances/{instance}/dashboardScheduledReports/{dashboardScheduledReport} The {dashboardScheduledReport} segment is assigned by the server upon creation. |
displayName |
Required. Display name of the report, as shown in the UI. |
description |
Optional. Description of the report |
createTime |
Output only. The timestamp when the report schedule was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. The timestamp when the report schedule was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
createUserId |
Output only. The user ID who created the report schedule. |
updateUserId |
Output only. The user ID who last updated the report schedule. |
status |
Output only. Current status of the report. |
userData |
Optional. User data preference |
dashboard |
Required. The dashboard details for which report is scheduled |
scopeInfo |
Optional. Data scope for the report, defining which data is included. |
cronDetails |
Required. Cron details for scheduling a report, contains cron string and timezone |
deliveryDetails |
Required. Delivery settings for the report. |
format |
Required. Format settings for the report. |
lastSuccessfulGeneratedTime |
Output only. The timestamp when the report was last generated successfully. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
lastReportGenerationDetail |
Output only. Details of last Schedule run. |
etag |
Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
ReportState
Current status of the report. LINT.IfChange
| Enums | |
|---|---|
REPORT_STATE_UNSPECIFIED |
Unspecified report state. |
ACTIVE |
The report is active and will be generated on schedule. |
SUSPENDED |
The report is suspended and will not be generated on schedule. |
UserData
User data preference
| JSON representation |
|---|
{ "pinned": boolean } |
| Fields | |
|---|---|
pinned |
Optional. pinning information of the scheduled report |
ReportScopeInfo
ReportScopeInfo defines the scope of data included in the report.
| JSON representation |
|---|
{
"dataAccessScopes": [
string
],
"simulatedDataVisibility": enum ( |
| Fields | |
|---|---|
dataAccessScopes[] |
Optional. List of data access scopes. The scope names should be full resource names, in the format: |
simulatedDataVisibility |
Optional. Specifies visibility of simulated data to include in report results. |
SimulatedDataVisibility
Specifies visibility of simulated data to include. This enum is used in multiple protos to filter out simulated data from the data returned by the API (like events, detections, and alerts, etc.).
| Enums | |
|---|---|
SIMULATED_DATA_VISIBILITY_UNSPECIFIED |
If unspecified, simulated data will be excluded. |
SIMULATED_DATA_INCLUDED |
If specified, simulated data will be included. |
SIMULATED_DATA_EXCLUDED |
If specified, simulated data will be excluded. |
CronDetails
Cron details for scheduling a report, contains cron string and timezone
| JSON representation |
|---|
{ "cron": string, "timeZone": string } |
| Fields | |
|---|---|
cron |
Required. cron string which contains the schedule trigger time crontab format. +------------- minute (0 - 59) | +----------- hour (0 - 23) | | +--------- day of month (1 - 31) | | | +------- month (1 - 12, or {Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec}) | | | | +----- day of week (0 - 6, with Sunday=0, or {Sun,Mon,Tue,Wed,Thu,Fri,Sat}) | | | | | v v v v v timespec = '* * * * *' |
timeZone |
Optional. Timezone of the schedule delivery (UTC if not specified). |
DeliveryDetails
contains the email delivery details.
| JSON representation |
|---|
{ "emailDelivery": { object ( |
| Fields | |
|---|---|
emailDelivery |
Required. EmailDelivery specifies the email delivery settings. |
deliveryType |
Optional. Delivery type of the report. |
EmailDelivery
EmailDelivery specifies the email delivery settings.
| JSON representation |
|---|
{ "subject": string, "emailBody": string, "recipients": [ string ] } |
| Fields | |
|---|---|
subject |
Optional. Subject of the email. |
emailBody |
Optional. Body of the email. |
recipients[] |
Required. Recipients of the email. |
DeliveryType
Delivery type of the report. LINT.IfChange
| Enums | |
|---|---|
DELIVERY_TYPE_UNSPECIFIED |
Unspecified delivery type. If this value is provided, the API will return an INVALID_ARGUMENT error. |
DELIVERY_TYPE_EMAIL_ATTACHMENT |
Delivery as an email attachment. |
DELIVERY_TYPE_GCS_BUCKET |
Delivery to a Google Cloud Storage bucket. |
Format
Format specifies the desired file formats for the report.
| JSON representation |
|---|
{
"fileFormat": enum ( |
| Fields | |
|---|---|
fileFormat |
Required. File formats for the report. |
FileFormat
File formats for the report. LINT.IfChange
| Enums | |
|---|---|
FILE_FORMAT_UNSPECIFIED |
Unspecified file format. |
FILE_FORMAT_PDF |
PDF file format. |
FILE_FORMAT_CSV |
CSV file format. |
FILE_FORMAT_PNG |
PNG file format. |
ReportGenerationDetail
ReportGenerationDetail contains details about a single report generation attempt.
| JSON representation |
|---|
{ "reportTime": string, "deliveryStatus": enum ( |
| Fields | |
|---|---|
reportTime |
Output only. Timestamp is the time when the report generation was triggered. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
deliveryStatus |
Output only. Status of the generation/delivery attempt. |
Union field status_details. Details of the status. status_details can be only one of the following: |
|
successDetails |
Details of a successful delivery. |
errorDetails |
Details of a failed delivery. |
SuccessDetails
SuccessDetails contains details about a successful delivery.
| JSON representation |
|---|
{ "successMessage": string } |
| Fields | |
|---|---|
successMessage |
Optional. A success message. |
ErrorDetails
ErrorDetails contains details about a failed delivery.
| JSON representation |
|---|
{ "errorMessage": string, "detailedError": string } |
| Fields | |
|---|---|
errorMessage |
Required. An error message. |
detailedError |
Optional. A detailed error message. |
DeliveryState
Delivery state of the report. LINT.IfChange
| Enums | |
|---|---|
DELIVERY_STATE_UNSPECIFIED |
Unspecified delivery state. |
DELIVERY_STATE_SUCCEEDED |
The report was delivered successfully. |
DELIVERY_STATE_FAILED |
The report delivery failed. |
DELIVERY_STATE_IN_PROGRESS |
The report delivery is in progress. |
Methods |
|
|---|---|
|
Create a Dashboard Scheduled Report. |
|
Delete a Dashboard Scheduled Report. |
|
Duplicate a scheduled report. |
|
Retrieves details of past report runs for a specific scheduled report from the last year, including run count, status, and other success/failure information. |
|
Get a Dashboard Scheduled Report. |
|
List Dashboard Scheduled Reports. |
|
Update a Dashboard Scheduled Report. |
|
Sends the given report immediately. |