Skip to content

Commit

Permalink
Merge pull request #46 from Snowflake-Labs/bug-frh-jira-ticket-body
Browse files Browse the repository at this point in the history
change body
  • Loading branch information
sfc-gh-pkommini authored Dec 10, 2022
2 parents 43e3ea1 + 36183f3 commit 77f506d
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions handler_functions_sql/jira_handler_v2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ ${jira_api_function}(
),
'summary', alert['TITLE']::STRING,
'description', '|| Field || Value ||\r\n'
|| '||Alert ID|| ' || alert['ID']::STRING || ' ||\r\n'
|| '||Query ID|| ' || alert['QUERY_ID']::STRING || ' ||\r\n'
|| '||Query Name|| ' || alert['QUERY_NAME']::STRING || ' ||\r\n'
|| '||Environment|| ' || alert['ENVIRONMENT']::STRING || ' ||\r\n'
|| '||Sources|| ' || alert['SOURCES']::STRING || ' ||\r\n'
|| '||Categories|| ' || COALESCE(alert['CATEGORIES']::STRING, '-') || ' ||\r\n'
|| '||Actor|| ' || alert['ACTOR']::STRING || ' ||\r\n'
|| '||Object|| ' || alert['OBJECT']::STRING || ' ||\r\n'
|| '||Action|| ' || alert['ACTION']::STRING || ' ||\r\n'
|| '||Title|| ' || alert['TITLE']::STRING || ' ||\r\n'
|| '||Event Time|| ' || alert['EVENT_TIME']::STRING || ' ||\r\n'
|| '||Alert Time|| ' || alert['ALERT_TIME']::STRING || ' ||\r\n'
|| '||Detector|| ' || alert['DETECTOR']::STRING || ' ||\r\n'
|| '||Severity|| ' || alert['SEVERITY']::STRING || ' ||\r\n'
|| '||Description|| ' || alert['DESCRIPTION']::STRING || ' ||\r\n'
|| '||Event Data|| ' || alert['EVENT_DATA']::STRING || ' ||\r\n'
|| '|| Alert ID || ' || alert['ID']::STRING || ' ||\r\n'
|| '|| Query ID || ' || alert['QUERY_ID']::STRING || ' ||\r\n'
|| '|| Query Name || ' || alert['QUERY_NAME']::STRING || ' ||\r\n'
|| '|| Environment || ' || alert['ENVIRONMENT']::STRING || ' ||\r\n'
|| '|| Sources || ' || alert['SOURCES']::STRING || ' ||\r\n'
|| '|| Categories || ' || COALESCE(alert['CATEGORIES']::STRING, '-') || ' ||\r\n'
|| '|| Actor || ' || alert['ACTOR']::STRING || ' ||\r\n'
|| '|| Object || ' || alert['OBJECT']::STRING || ' ||\r\n'
|| '|| Action || ' || alert['ACTION']::STRING || ' ||\r\n'
|| '|| Title || ' || alert['TITLE']::STRING || ' ||\r\n'
|| '|| Event Time || ' || alert['EVENT_TIME']::STRING || ' ||\r\n'
|| '|| Alert Time || ' || alert['ALERT_TIME']::STRING || ' ||\r\n'
|| '|| Detector || ' || alert['DETECTOR']::STRING || ' ||\r\n'
|| '|| Severity || ' || alert['SEVERITY']::STRING || ' ||\r\n'
|| '|| Description || ' || alert['DESCRIPTION']::STRING || ' ||\r\n'
|| '|| Event Data || ' || alert['EVENT_DATA']::STRING || ' ||\r\n'

)
)
Expand Down

0 comments on commit 77f506d

Please sign in to comment.