Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Monium
  • Getting started
  • Overview
      • Creating an alert
      • Creating a composite alert
      • Creating an SLO alert
      • Creating a notification channel with a recipient
      • Creating a notification channel that invokes a function
      • Creating a webhook that calls an external API
      • Creating an escalation policy
      • Deleting an alert
    • Mutes
  • Access management
  • Pricing policy
  • Terraform reference
  • Release notes
  1. Alerts
  2. Step-by-step guides
  3. Creating a notification channel that invokes a function

Creating a notification channel that invokes a function

Written by
Yandex Cloud
Updated at November 5, 2026
View in Markdown

You can specify a function in Cloud Functions as the notification method. This function will be invoked when an alert fires or in an escalation as a standard notification channel.

To set up notifications with Cloud Functions:

Management console
  1. In the management console, select the folder.
  2. Navigate to Cloud Functions.
  3. Create a function and a function version.
  4. In the settings, enable asynchronous invocation.
  5. Create a service account with the functions.functionInvoker and functions.viewer roles. You will need it to invoke the function.
  6. On the Monium home page, select Alerts and SLOs → Notification methods on the left.
  7. In the top-right corner, click Create and select Notification Channel.
  8. Enter a name for your notification channel.
  9. Optionally, specify the alert levels for which the channel will operate by default.
  10. In the Method field, select Cloud Function.
  11. In the field that appears, select the folder containing the function from Cloud Functions.
  12. In the Service account field, select an account to run the function.
  13. Click Save.

Message format when invoking a function in Cloud FunctionsMessage format when invoking a function in Cloud Functions

When invoking a function in Cloud Functions, the alert or escalation will forward a JSON message with alert info to the event argument in the entry point:

{
    "alertId": "",
    "alertName": "",
    "labels": {
        "key1": "value1",
        "key2": "value2"
    },
    "folderId": "",
    "alertStatus": "",
    "annotations": {
        "key1": "value1",
        "key2": "value2"
    }
}

Where:

  • alertId: ID of the triggered alert.
  • alertName: Name of the triggered alert.
  • labels: List of labels in key: value format for multialerts.
  • folderId: Folder ID, must be empty.
  • alertStatus: Alert status.
  • annotations: Values of annotations for the triggered alert (key:value dictionary).

For a function invocation example, see Webhook using Cloud Functions.

Was the article helpful?

Previous
Creating a notification channel with a recipient
Next
Creating a webhook that calls an external API
© 2026 Direct Cursus Technology L.L.C.