Skip to main content
Version: 2.7

ChargingManager

{"content": ["Provides fine-grained access to pay-per-event functionality."]}

Index

Methods

calculate_max_event_charge_count_within_limit

  • calculate_max_event_charge_count_within_limit(event_name): int | None
  • {"content": ["Calculate how many instances of an event can be charged before we reach the configured limit.\n", {"


    Parameters

    • event_name: str

    Returns int | None

calculate_total_charged_amount

  • calculate_total_charged_amount(): Decimal
  • {"content": ["Calculate the total amount of money charged for pay-per-event events so far."]}


    Returns Decimal

charge

  • {"content": ["Charge for a specified number of events - sub-operations of the Actor.\n\nThis is relevant only for the pay-per-event pricing model.\n", {"


    Parameters

    • event_name: str
    • count: int = 1

    Returns ChargeResult

get_pricing_info

  • {"content": ["Retrieve detailed information about the effective pricing of the current Actor run.\n\nThis can be used for instance when your code needs to support multiple pricing models in transition periods."]}


    Returns ActorPricingInfo