Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Blog
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
Yandex project
© 2023 Yandex.Cloud LLC
Yandex Serverless Containers
  • Comparison with other Yandex Cloud services
  • Getting started
  • Step-by-step instructions
  • Concepts
    • Overview
    • Container
    • Invoking a container
    • Networking
    • Runtime environments
    • Trigger
      • Overview
      • Timer
      • Trigger for Message Queue
      • Trigger for Object Storage
      • Trigger for Container Registry
      • Trigger for Cloud Logging
      • Trigger for Yandex IoT Core
      • Trigger for budgets
      • Trigger for Data Streams
      • Email trigger
    • Dead Letter Queue
    • Container logs
    • Backups
    • Quotas and limits
  • Practical guidelines
  • Access management
  • Pricing policy
  • Containers API reference
  • API Triggers reference
  • Questions and answers
  1. Concepts
  2. Trigger
  3. Trigger for budgets

Trigger for budgets that invokes a Serverless Containers container

Written by
Yandex Cloud
  • Roles required for the proper operation of a trigger for budgets
  • Format of the message from the trigger for budgets
  • See also

A trigger for budgets invokes a Serverless Containers container when threshold values are exceeded.

A trigger for budgets needs a service account to invoke a container.

Roles required for the proper operation of a trigger for budgets

  • To create a trigger, you need a permission for a service account that runs the trigger executing the operation. This permission is included in the iam.serviceAccounts.user and editor roles and higher.
  • For a trigger to work, the service account needs the serverless.containers.invoker role for the container to be invoked by the trigger.

Format of the message from the trigger for budgets

After the trigger is activated, it sends the following message to the container:

{
   "messages":[
      {
         "billing_account_id":"a6q6***",
         "budget_id":"a626***",
         "budget_display_name":"name",
         "amount":90012.00,
         "currency":"RUB",
         "period":"2021",
         "budgeted_amount":100000.00,
         "threshold_amount":90000.00,
         "threshold_type":"amount"
      }
   ]
}

Where:

  • billing_account_id: Billing account ID.
  • budget_id: Budget ID.
  • budget_display_name: Budget name.
  • amount: The cost of resources or account balance when notifications were triggered.
  • currency: Payment currency.
  • period: Budget tracking period.
  • budgeted_amount: Budget amount.
  • threshold_amount: Consumption threshold that triggered notifications.
  • threshold_type: Threshold type:
    • amount: Currency.
    • percent: Percentage.

See also

  • Trigger for budgets that invokes a Cloud Functions function.

Was the article helpful?

Language / Region
Yandex project
© 2023 Yandex.Cloud LLC
In this article:
  • Roles required for the proper operation of a trigger for budgets
  • Format of the message from the trigger for budgets
  • See also