Jump to content

Time Since Last Breach (Streak)


TSheward_SGW

Recommended Posts

Hi @TSheward_SGW

Really nice widget idea! I've had a go at building this and think I have the following working - would be good if you could give it a go and see if this tallys up with your stats:

Screenshot_10.png

 

Configuration (Widget Type - List of Counters):

Screenshot_11.png

 

In case you want to copy and paste:

SELECT: MIN
timestampdiff(DAY, h_fixby, now())
FROM: h_itsm_requests
WHERE: 
h_withinfix = 0
AND h_requesttype = 'Incident'
ORDER BY h_pk_reference desc
LIMIT 1

Obviously include which WHERE clause suits your measure - I've based mine on all Incidents. Also if you want to change this to look at the "Response" Target, use the following:

SELECT: MIN
timestampdiff(DAY, h_respondby, now())
FROM: h_itsm_requests
WHERE: 
h_withinresponse = 0
AND h_requesttype = 'Incident'
ORDER BY h_pk_reference desc
LIMIT 1

I hope this helps, let me know if there are any problems

Kind Regards

Bob

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...