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
    • 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 July 20, 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, go to the folder containing the resources you monitor in Monium.Metrics.
  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 your function.
  6. Go to Monium and select Notification methods on the left.
  7. At the top right, click Create → Notification channel.
  8. Enter a name for your notification channel.
  9. From the Method list, select Cloud Functions.
  10. From the Service account list, select an account for running the function.
  11. Click Create.

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 send a JSON message with details of the triggered alert to the event argument in the function entry point:

{
    "alertId": "",
    "alertName": "",
    "folderId": "",
    "alertStatus": "",
    "annotations": {
        "key1": "value1",
        "key2": "value2"
    }
}
  • alertId: ID of the triggered alert (text).
  • alertName: Name of the triggered alert (text).
  • folderId: ID of the folder where the alert fired (text).
  • alertStatus: Alert status (text).
  • annotations: Values of annotations for the fired 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.