@@ -16,7 +16,7 @@ require([
16
16
id : "workflow_details" ,
17
17
preview : true ,
18
18
cache : true ,
19
- search : mvc . tokenSafe ( "index=github_webhook eventtype=\"GitHub::Workflow\" \"workflow_job.run_id\"=$workflow_id$| fields * | eval queued=if(action==\"queued\",_time,null), started=if(action==\"in_progress\",_time,null), completed=if(action==\"completed\",_time,null) | stats latest(workflow_job.conclusion) as status, latest(workflow_job.name) as Name, latest(queued) as queued, latest(started) as started, latest(completed) as completed by workflow_job.id | eval queueTime=toString(round(started-queued),\"Duration\"), runTime=toString(round(completed-started),\"Duration\"), totalTime=toString(round(completed-queued),\"Duration\"), status=if(status==\"null\",\"in_progress\",status) | rename workflow_job.id AS JobID | fields status, Name, JobID, queueTime, runTime, totalTime" ) ,
19
+ search : mvc . tokenSafe ( "`github_webhooks` eventtype=\"GitHub::Workflow\" \"workflow_job.run_id\"=$workflow_id$| fields * | eval queued=if(action==\"queued\",_time,null), started=if(action==\"in_progress\",_time,null), completed=if(action==\"completed\",_time,null) | stats latest(workflow_job.conclusion) as status, latest(workflow_job.name) as Name, latest(queued) as queued, latest(started) as started, latest(completed) as completed by workflow_job.id | eval queueTime=toString(round(started-queued),\"Duration\"), runTime=toString(round(completed-started),\"Duration\"), totalTime=toString(round(completed-queued),\"Duration\"), status=if(status==\"null\",\"in_progress\",status) | rename workflow_job.id AS JobID | fields status, Name, JobID, queueTime, runTime, totalTime" ) ,
20
20
earliest_time : mvc . tokenSafe ( "timeTkn.earliest$" ) ,
21
21
latest_time : mvc . tokenSafe ( "timeTkn.latest$" )
22
22
} ) ;
@@ -96,7 +96,7 @@ require([
96
96
return cell . field === 'Run ID' ;
97
97
} ) ;
98
98
99
- this . _searchManager . set ( { search : 'index=github_webhook (workflow_run.id=' + workflowIDCell . value + ' OR workflow_job.run_id=' + workflowIDCell . value + ') | eval started=if(action=="requested", _time, null), completed=if(action=="completed", _time,null) | stats latest(workflow_run.conclusion) as Status, earliest(started) as Started, latest(completed) as Completed, latest(workflow_run.head_branch) as Branch, latest(workflow_run.event) as Trigger | eval Duration=tostring(Completed-Started, "Duration") | fields Status, Duration, Branch, Trigger | eval Details="Click here for Workflow Details" | transpose|rename column AS Details| rename "row 1" AS values' } ) ;
99
+ this . _searchManager . set ( { search : '`github_webhooks` (workflow_run.id=' + workflowIDCell . value + ' OR workflow_job.run_id=' + workflowIDCell . value + ') | eval started=if(action=="requested", _time, null), completed=if(action=="completed", _time,null) | stats latest(workflow_run.conclusion) as Status, earliest(started) as Started, latest(completed) as Completed, latest(workflow_run.head_branch) as Branch, latest(workflow_run.event) as Trigger | eval Duration=tostring(Completed-Started, "Duration") | fields Status, Duration, Branch, Trigger | eval Details="Click here for Workflow Details" | transpose|rename column AS Details| rename "row 1" AS values' } ) ;
100
100
// $container is the jquery object where we can put out content.
101
101
// In this case we will render our chart and add it to the $container
102
102
$container . append ( this . _TableView . render ( ) . el ) ;
0 commit comments