Skip to content

Commit

Permalink
Update total_fte_saved.txt
Browse files Browse the repository at this point in the history
Refactored to handle more generic scriptid in lookup table.
  • Loading branch information
scottbrumley authored Oct 2, 2024
1 parent fadb3b5 commit d848be3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions SOC_Framework/Widgets/total_fte_saved.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ playbookId = alert->playbookId
| filter tasktype = "regular"

//TODO make this a lookup table and join instead to make it scalable
| join type = inner (dataset = value_tags
| fields Category as value_category, ScriptID as value_scriptid, `Tag` as value_tag, TaskName as value_taskname, Time as value_time
) as vt (scriptID = vt.value_scriptid)
| fields value_category, value_scriptid, value_tag, value_taskname, value_time, _time
| join type = inner (dataset = value_tags
| fields Category as value_category, ScriptID as value_scriptid, `Tag` as value_tag, TaskName as value_taskname, Time as value_time, PlaybookID as playbook_id
) as vt (scriptID contains vt.value_scriptid)
| fields value_category, value_scriptid, value_tag, value_taskname, value_time, _time, playbook_id
| filter ((value_time != null and value_time != """"""))
| filter ((value_scriptid != null and value_scriptid != """"""))

| filter value_category = "enrichment" or value_category = "remediation" or value_category = "assessment" or value_category = "escalation" or value_category = "triage"
| alter soc_event_minutes = to_integer(value_time )
| comp sum(soc_event_minutes) as total_soc_minutes, first(_time) as TimeFrameBegin
| alter TimeFrameEnds = time_frame_end()
Expand All @@ -49,4 +50,7 @@ playbookId = alert->playbookId






| view graph type = single subtype = standard header = "Total FTEs Saved" yaxis = total_fte_saved dataunit = "FTEs"

0 comments on commit d848be3

Please sign in to comment.