Jack Patchell Posted March 12, 2021 Share Posted March 12, 2021 Hi Seeq Team, I'm trying to create a SEEQ scorecard with variable times for the average. Here is the code I'm using to create the condition: $time = now() $lastTwo = capsule($time-2min, $time).setProperty('TimeRange', "Last Two Minutes") $lastHour = capsule($time-1h, $time).setProperty('TimeRange','Last Hour') $lastDay = capsule($time-1d, $time).setProperty('TimeRange', 'Last Day') condition(2d, $lastDay, $lastHour, $lastTwo) And then once I added the scorecard metric, I added TimeRange to the header in capsule property-property name but instead of getting Last two minutes, last hour and last day I just get last day. How do I get the last 2 minutes and last hour to show as well? Thanks, Jack Link to comment Share on other sites More sharing options...
Seeq Team Kjell Raemdonck Posted March 12, 2021 Seeq Team Share Posted March 12, 2021 Have you ensured to 'step to current time'? Hitting the button below. You may just need to ensure your current display range encompasses the last 2min and last 1hr. Link to comment Share on other sites More sharing options...
Jack Patchell Posted March 12, 2021 Author Share Posted March 12, 2021 Awesome, thank you Kjell! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now