Bug 919248

Summary: RFE: Provide a metric of the time elapsed since the last build.
Product: [Other] RHQ Project Reporter: Jérémie <jer>
Component: PluginsAssignee: Thomas Segismont <tsegismo>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.6CC: hrupp, tsegismo
Target Milestone: ---Keywords: FutureFeature
Target Release: RHQ 4.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-03 14:44:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Elapsed time metrics none

Description Jérémie 2013-03-07 22:26:57 UTC
Created attachment 706814 [details]
Elapsed time metrics

Description of problem:
I want to create an alert if a hudson job has not been built for more than two days. .
It seems to me that isn't possible  on trait of type date like lastBuildTime or lastSuccessfulBuildTime

What do you think of adding two metrics on the hudson plugin giving the time elapsed since the last build, and since the last successful build. lastSuccessfulBuildElapsedTime and lastBuildElapsedTime.

Attached is a patch that seems appropriate for my use case.

Comment 1 Thomas Segismont 2013-03-18 12:14:51 UTC
Patch verified, formatted and tested.

Comment 2 Thomas Segismont 2013-03-18 12:15:40 UTC
Merged in master 14f3262

Comment 3 Heiko W. Rupp 2013-09-03 14:44:22 UTC
Bulk closing of issues in old RHQ releases that are in production for a while now.

Please open a new issue when running into an issue.