Settings
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
通知
JSON 表示法 |
{
// Union field destination can be only one of the following:
"cloudPubsubTopic": {
object (CloudPubsubTopic )
}
// End of list of possible types for union field destination .
} |
字段 |
联合字段 destination 。只能指定一个目的地。destination 只能是下列其中一项: |
cloudPubsubTopic |
object (CloudPubsubTopic )
Google Cloud Pub/Sub 主题目的地。
|
CloudPubsubTopic
Cloud Pub/Sub 主题的引用。
如需注册接收通知,主题的所有者必须向 alerts-api-push-notifications@system.gserviceaccount.com
授予 projects.topics.publish
权限。
JSON 表示法 |
{
"topicName": string,
"payloadFormat": enum (PayloadFormat )
} |
字段 |
topicName |
string
Cloud Pub/Sub 主题的 name 字段。
|
payloadFormat |
enum (PayloadFormat )
可选。要发送的载荷的格式。如果未指定,格式将为 JSON。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Settings\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [Notification](#Notification)\n - [JSON representation](#Notification.SCHEMA_REPRESENTATION)\n- [CloudPubsubTopic](#CloudPubsubTopic)\n - [JSON representation](#CloudPubsubTopic.SCHEMA_REPRESENTATION)\n- [PayloadFormat](#PayloadFormat)\n\nCustomer-level settings.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"notifications\": [ { object (/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#Notification) } ] } ``` |\n\n| Fields ||\n|-------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| `notifications[]` | `object (`[Notification](/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#Notification)`)` The list of notifications. |\n\nNotification\n------------\n\nSettings for callback notifications. For more details see [Google Workspace Alert Notification](https://developers.google.com/workspace/admin/alertcenter/guides/notifications).\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `destination` can be only one of the following: \"cloudPubsubTopic\": { object (/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#CloudPubsubTopic) } // End of list of possible types for union field `destination`. } ``` |\n\n| Fields ||\n|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `destination`. Exactly one destination to be specified. `destination` can be only one of the following: ||\n| `cloudPubsubTopic` | `object (`[CloudPubsubTopic](/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#CloudPubsubTopic)`)` A Google Cloud Pub/sub topic destination. |\n\nCloudPubsubTopic\n----------------\n\nA reference to a Cloud Pubsub topic.\n\nTo register for notifications, the owner of the topic must grant `alerts-api-push-notifications@system.gserviceaccount.com` the `projects.topics.publish` permission.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"topicName\": string, \"payloadFormat\": enum (/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#PayloadFormat) } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `topicName` | `string` The `name` field of a Cloud Pubsub [Topic](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics#Topic). |\n| `payloadFormat` | `enum (`[PayloadFormat](/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#PayloadFormat)`)` Optional. The format of the payload that would be sent. If not specified the format will be JSON. |\n\nPayloadFormat\n-------------\n\nThe format of the payload.\n\n| Enums ||\n|------------------------------|-------------------------------------------------------------|\n| `PAYLOAD_FORMAT_UNSPECIFIED` | Payload format is not specified (will use JSON as default). |\n| `JSON` | Use JSON. |"]]