Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Il Centro avvisi può essere configurato per inviare una notifica in caso di aggiornamenti.
Per configurare il Centro avvisi in modo che invii notifiche, devi configurare le impostazioni con le notifiche desiderate.
Notifica Google Cloud Pub/Sub
Il Centro notifiche può pubblicare notifiche in un argomento Google Pub/Sub.
Dopo aver creato un argomento e aver concesso l'alerts-api-push-notifications@system.gserviceaccount.com
autorizzazione di pubblicazione, utilizza l'API di aggiornamento delle impostazioni del Centro notifiche per impostare l'argomento come destinazione delle notifiche. Una volta configurato, il Centro notifiche
pubblicherà un messaggio per ogni aggiornamento (ad es. quando arriva un nuovo avviso).
Attributi dei messaggi Pub/Sub
Attributi comuni
alertcenter_resource_type: il tipo di risorsa. Il valore attualmente supportato è "ALERT".
alertcenter_resource_status: lo stato della risorsa. Il valore attualmente supportato è
"CREATED", "DELETED", "UNDELETED", "MODIFIED".
alertcenter_payload_format: il formato del payload (in base alle impostazioni di notifica).
Il valore attualmente supportato è "JSON".
Attributi avviso
alertcenter_start_time: l'ora in cui è stato avviato o rilevato l'evento che ha causato questo avviso.
alertcenter_end_time: l'ora in cui l'evento che ha causato questo avviso ha smesso di essere attivo.
alertcenter_source: un identificatore univoco del sistema che ha segnalato l'avviso.
alertcenter_create_time: l'ora in cui è stato creato l'avviso.
alertcenter_update_time: l'ultima volta che questo avviso è stato aggiornato.
Il payload del messaggio
Il payload del messaggio dipende da alertcenter_resource_type. Quando il tipo di risorsa è "ALERT"
il payload sarà uno dei tipi di avviso del Centro avvisi.
Il formato del payload dipende da alertcenter_payload_format. Quando il formato è "JSON", il payload sarà JSONcodificato in base64.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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)."]]