
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2018 08:31 AM
Hello,
Were trying to find a metric that measures time in state. We partially accomplished this by using the OOB "Incident State Duration" metric.
One thing that we do not like about it is that the clock/calendar it uses runs 24/7.
How do we tell it to use our business calendar as defined in System Policy, SLA, Calendars?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2018 01:26 PM
Dan -- I recently put in an enhancement request to allow a metric duration calculation to be linked to a schedule or calendar.
Our business case was for all metrics to be dependent on our calendar that is based on our business hours, so I chose to link all metric duration calculations to our calendar by changing the OOTB calculation from dateDiff to calDateDiff.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2018 09:27 AM
Hi Chris,
There is a field called as Business Duration in Incident_metric database view which actually calculates the business durations (8 hrs a day, eliminating weekends and public holidays), did you tried using that..
If you still want to explicitly load a schedule whichever you wish, then you have to use Script for calculating it. Following link gives you more details about loading schedule and calculating duration between two dates.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2018 06:02 AM
Hi Chris,
Did you resolve your issue? I have the exact same requirement - Need to calculate Business Hours Duration on the State field.
I do not have 2 date fields to compare.
Instead, I have a Metric Definition running a Field Value Calculation on the State field, which currently counts non-business hours. How can I apply the business schedule to this Metric Definition?
Many thanks,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2018 01:26 PM
Dan -- I recently put in an enhancement request to allow a metric duration calculation to be linked to a schedule or calendar.
Our business case was for all metrics to be dependent on our calendar that is based on our business hours, so I chose to link all metric duration calculations to our calendar by changing the OOTB calculation from dateDiff to calDateDiff.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2018 01:21 AM
Thanks Jason