Create Alarm History table using Postgres Triggers

Description

Sometimes, when debugging a correlation issue, it's useful to have the exact sequence of events that lead to a specific situation. But alarms as designed today doesn't keep track of history.

It can be done using PostgreSQL triggers as described here : http://www.postgresql.org/docs/8.1/static/plpgsql-trigger.html#PLPGSQL-TRIGGER-AUDIT-EXAMPLE

The operations (INSERT, UPDATE, DELETE) done in the alarms table will be automatically audited in a new "alarm_history" table.

What do you think ?

Acceptance / Success Criteria

None

depends on

Lucidchart Diagrams

Activity

Show:

Details

Assignee

Reporter

Components

Affects versions

Priority

PagerDuty

Created March 28, 2011 at 5:28 AM
Updated July 26, 2023 at 2:19 PM