Notifications
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
업데이트 시 알림을 전송하도록 알림 센터를 구성할 수 있습니다.
알림 센터에서 알림을 보내도록 구성하려면 원하는 알림 설정으로 설정을 구성해야 합니다.
Google Cloud Pub/Sub 알림
알림 센터는 Google Pub/Sub 주제에 알림을 게시할 수 있습니다.
주제를 만들고 주제에 alerts-api-push-notifications@system.gserviceaccount.com
게시 권한을 부여한 후 알림 센터 설정 업데이트 API를 사용하여 해당 주제를 알림 대상으로 설정합니다. 구성되면 알림 센터는 업데이트마다 해당 주제에 메시지를 게시합니다 (예: 새 알림이 도착할 때).
Pub/Sub 메시지 속성
공통 속성
alertcenter_resource_type
- 리소스 유형입니다. 현재 지원되는 값은 "ALERT"
입니다.
alertcenter_resource_status
- 리소스의 상태입니다. 현재 지원되는 값은 "CREATED", "DELETED", "UNDELETED", "MODIFIED"
입니다.
alertcenter_payload_format
- 페이로드 형식 (알림 설정별)
현재 지원되는 값은 "JSON"
입니다.
알림 속성
alertcenter_start_time
- 이 알림을 유발한 이벤트가 시작되거나 감지된 시간입니다.
alertcenter_end_time
- 이 알림을 발생시킨 이벤트가 활성 상태를 중지한 시간입니다.
alertcenter_type
- 알림 유형입니다. 사용 가능한 알림 유형 목록은 Google Workspace 알림 유형을 참고하세요.
alertcenter_source
- 알림을 보고한 시스템의 고유 식별자입니다.
alertcenter_create_time
- 이 알림이 생성된 시간입니다.
alertcenter_update_time
- 이 알림이 마지막으로 업데이트된 시간입니다.
메시지 페이로드
메시지의 페이로드는 alertcenter_resource_type
에 따라 다릅니다. 리소스 유형이 "ALERT"
인 경우 페이로드는 알림 센터 알림 유형 중 하나가 됩니다.
페이로드 형식은 alertcenter_payload_format
에 따라 다릅니다. 형식이 "JSON"
인 경우 페이로드는 base64로 인코딩된
JSON입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-03-25(UTC)
[null,null,["최종 업데이트: 2025-03-25(UTC)"],[],[],null,["# Notifications\n\nAlert Center can be configured to send notification upon updates.\nTo configure Alert Center to send notifications you need to configure your\nsettings with the desired notification settings.\n\nGoogle Cloud Pub/Sub notification\n---------------------------------\n\nAlert Center can publish notifications to a Google Pub/Sub topic.\nAfter creating a topic and granting `alerts-api-push-notifications@system.gserviceaccount.com`\npublish permission to it use the Alert Center [update settings API](/workspace/admin/alertcenter/reference/rest/v1beta1/TopLevel/updateSettings)\nto set that topic as a notification destination. Once configured, Alert Center\nwill publish a message to that topic for each update (e.g. when a new alert arrives).\n\n### Pub/Sub message attributes\n\n#### Common attributes\n\n- `alertcenter_resource_type` - The type of the resource. Currently supported value is `\"ALERT\"`.\n- `alertcenter_resource_status` - The status of the resource. Currently supported value is `\"CREATED\", \"DELETED\", \"UNDELETED\", \"MODIFIED\"`.\n- `alertcenter_payload_format` - The format of the payload (per notification settings). Currently supported value is `\"JSON\"`.\n\n#### Alert attributes\n\n- `alertcenter_start_time` - The time the event that caused this alert was started or detected.\n- `alertcenter_end_time` - The time the event that caused this alert ceased being active.\n- `alertcenter_type` - The type of the alert. For a list of available alert types see [Google Workspace Alert types](/workspace/admin/alertcenter/reference/alert-types).\n- `alertcenter_source` - A unique identifier for the system that reported the alert.\n- `alertcenter_create_time` - The time this alert was created.\n- `alertcenter_update_time` - The last time this alert was updated.\n\n### The message payload\n\nThe payload of the message depends on `alertcenter_resource_type`. When resource type is `\"ALERT\"`\nthe payload will be one of the Alert Center [alert types](/workspace/admin/alertcenter/reference/alert-types).\nThe format of the payload depends on `alertcenter_payload_format`. When the format is `\"JSON\"` the\npayload would be [base64-encoded](https://en.wikipedia.org/wiki/Base64)\n[JSON](https://en.wikipedia.org/wiki/JSON)."]]