Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Monium
  • Getting started
  • Overview
      • Creating an 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 August 21, 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 a 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 severity 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.