PagerDuty Guide
Context
Sending events from finance-hub to sirius (e.g. rebalance CCB).
Run adhoc tasks
To create an adhoc task to be against the service in a live environment:
* Validate the task name in service/process_adhoc_event.go
. If more than one adhoc task is needed, use this service to
conditionally handle the events by task name.
* Add the logic to be performed in /api/process_adhoc_event.go
.
Then, in the AWS environment you wish to run the task:
* Go to Amazon EventBridge -> Event buses
* Select the <env>-supervision
event bus
* Click “Send events”
* Enter the “Event source” as opg.supervision.finance.adhoc
and the “Detail type” as finance-adhoc
* Enter the expected JSON into “Event detail” i.e. {"task":"<task-name>"}
* Click “Send”
This page was last reviewed on 3 October 2025.
It needs to be reviewed again on 3 April 2026
by the page owner #opg-sirius-develop
.
This page was set to be reviewed before 3 April 2026
by the page owner #opg-sirius-develop.
This might mean the content is out of date.