Skip to navigation

Meter Session Status Change

View as Markdown

The Meter Session Status Change event triggers when a Mediation meter session changes status.

For example, it can trigger when a session moves from RUNNING to COMPLETED or FAILED. You can use this event for both NORMAL and DEBUG/TESTING runs. Typical uses include alerting operations teams when a production meter run fails or sending completion notifications when a large batch run finishes.

Key fields

The event payload for Meter Session Status Change includes the following output fields:

FieldDescription
Meter IdUnique identifier of the meter
Meter NameDisplay name of the meter
Session IdUnique identifier for the meter session (each run instance
Session Run TypeType of run, such as NORMAL or DEBUG
Session StatusCurrent status of the session, for example NEVER_RUN, TESTING, TESTING_PASSED, TESTING_FAILED, INITIALIZING, RUNNING, PAUSED, USAGE_PUSHING, PUSH_COMPLETED, CONSUME_COMPLETED, COMPLETED, FAILED, CANCELED
Session Previous StatusThe previous status before the current status change
Session start timeTimestamp when the session started
Session end timeTimestamp when the session ended (if completed)

You can use Session Status, Session Previous Status, and Session Run Type in notification conditions. For example, you can trigger only when a session moves into FAILED or TESTING_FAILED.

Statuses

StatusDescription
NEVER_RUNThe meter session has been defined but has not yet been executed.
TESTINGThe meter session is running in test mode to validate configuration or logic.
TESTING_PASSEDThe test execution completed successfully.
TESTING_FAILEDThe test execution failed due to configuration or processing errors.
INITIALIZINGThe meter session is being prepared for execution.
RUNNINGThe meter session is actively processing usage data.
PAUSEDExecution of the meter session has been temporarily suspended.
USAGE_PUSHINGProcessed usage data is being pushed to downstream systems.
PUSH_COMPLETEDUsage data has been successfully pushed to the downstream.
COMPLETEDThe meter session finished successfully with all processing steps completed.
FAILEDThe meter session terminated due to an error.
CANCELEDThe meter session was manually or system-canceled before completion.