Watch4Net/M&R - 7.x
The following table shows the relationship between the timestamp fields in Smarts and the Watch4net Database and Frontend:
| Smarts Notification: (ICS_Notification class) |
Watch4net Database: (events_live / events_archive tables) |
Watch4net Frontend: (APG_HOME/Custom/WebApps-Resources/Default/property-mapping/FLOW-RPE2.xml) |
| FirstNotifiedAt | ---- | ---- |
| LastChangedAt | LastChangedAt | lastModifiedAsDate |
| LastClearedAt | ClosedAt | clearedAsDate |
| clearedTimestamp | ||
| LastNotifiedAt | OpenedAt | lastNotifiedAsDate |
| createdTimestamp | ||
| notifiedTimestamp | ||
| lastNotifiedPerDay | ||
| lastNotifiedGraphable |
1). Why are lastNotifiedAsDate, createdTimestamp, notifiedTimestamp ,lastNotifiedPerDay, lastNotifiedGraphable all mapped to OpenedAt/LastNotifiedAt? Why is FirstNotifiedAt not used?
Example 2 : MOMENTARY notifications:
1. A new MOMENTARY notification is raised (NOTIFY)
./dmctl -s INCHARGE-SA get ICS_Notification::NOTIFICATION-Router_rtr_ColdStart | grep edAt
FirstNotifiedAt = 1403604556
LastChangedAt = 1403604556
LastClearedAt = 0
LastNotifiedAt = 1403604556
mysql> select OpenedAt,LastChangedAt,ClosedAt,Name from events_live where InstanceName="rtr";
+------------+---------------+------------+---------------------------------------+
| OpenedAt | LastChangedAt | ClosedAt | Name |
+------------+---------------+------------+---------------------------------------+
| 1403604556 | 1403604556 | 1403604556 | NOTIFICATION-Router_rtr_ColdStart |
+------------+---------------+------------+---------------------------------------+
2. Another occurrence of the notification is raised:
./dmctl -s INCHARGE-SA get ICS_Notification::NOTIFICATION-Router_rtr_ColdStart | grep edAt
FirstNotifiedAt = 1403604556
LastChangedAt = 1403604998
LastClearedAt = 0
LastNotifiedAt = 1403604998
mysql> select OpenedAt,LastChangedAt,ClosedAt,Name from events_live where InstanceName="rtr";
+------------+---------------+------------+---------------------------------------+
| OpenedAt | LastChangedAt | ClosedAt | Name |
+------------+---------------+------------+---------------------------------------+
| 1403604556 | 1403604556 | 1403604556 | NOTIFICATION-Router_rtr_ColdStart |
| 1403604998 | 1403604998 | 1403604998 | NOTIFICATION-Router_rtr_ColdStart |
+------------+---------------+------------+---------------------------------------+
3. The notification is CLEARED
./dmctl -s INCHARGE-SA get ICS_Notification::NOTIFICATION-Router_rtr_ColdStart | grep edAt
FirstNotifiedAt = 1403604556
LastChangedAt = 1403605165
LastClearedAt = 1403605165
LastNotifiedAt = 1403604998
mysql> select OpenedAt,LastChangedAt,ClosedAt,Name from events_live where InstanceName="rtr";
+------------+---------------+------------+---------------------------------------+
| OpenedAt | LastChangedAt | ClosedAt | Name |
+------------+---------------+------------+---------------------------------------+
| 1403604556 | 1403604556 | 1403604556 | NOTIFICATION-Router_rtr_ColdStart |
| 1403604998 | 1403605165 | 1403604998 | NOTIFICATION-Router_rtr_ColdStart |
+------------+---------------+------------+---------------------------------------+
4. Another occurrence of the notification is raised after it is CLEARED (Re-NOTIFY):
./dmctl -s INCHARGE-SA get ICS_Notification::NOTIFICATION-Router_rtr_ColdStart | grep edAt
FirstNotifiedAt = 1403604556
LastChangedAt = 1403605214
LastClearedAt = 1403605165
LastNotifiedAt = 1403605214
mysql> select OpenedAt,LastChangedAt,ClosedAt,Name from events_live where InstanceName="rtr";
+------------+---------------+------------+---------------------------------------+
| OpenedAt | LastChangedAt | ClosedAt | Name |
+------------+---------------+------------+---------------------------------------+
| 1403604556 | 1403604556 | 1403604556 | NOTIFICATION-Router_rtr_ColdStart |
| 1403604998 | 1403605165 | 1403604998 | NOTIFICATION-Router_rtr_ColdStart |
| 1403605214 | 1403605214 | 1403605214 | NOTIFICATION-Router_rtr_ColdStart |
+------------+---------------+------------+---------------------------------------+
From this we can see that for MOMENTARY notifications
The following shows how these timestamp fields appear in a table report: