Metric definition script to calculate custom table state duration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 08:46 AM
HI,
Can any one help here to calculate the custom table state duration .
The condition should be state changes then metric instance should created & then state changes to another state metric instance should be closed ,calculate the state duration ,the new state metric instance should be create same the flow.
I have state values multiple states like 20 choice.
currently am doing this below script but it will work only one state to another state changes. I need to include all state values to be include in one metric definition script..can you let me know please
Script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 09:44 AM
Have you looked at the OOB "Open" metric for Incidents? It does something similar.