Update assertion condition
This commit is contained in:
parent
8c840fa9ab
commit
b1d74d45d1
@ -9,7 +9,7 @@ config {
|
||||
'STATE_GROUP <> "NOT_MAPPED"',
|
||||
'AGENT_ID <> "0" AND AGENT_NAME <> "NOT_MAPPED"',
|
||||
'STATE_ID <> 0',
|
||||
'REASON_CODE_ID <> -1'
|
||||
'REASON_CODE is not null and REASON_CODE_ID <> 0'
|
||||
]
|
||||
},
|
||||
tags: ["agent_status_report"],
|
||||
@ -31,7 +31,7 @@ select ags.AGENT_ID,
|
||||
) as AGENT_STATE_TIME_FORMATTED,
|
||||
ags.AGENT_START_DATE,
|
||||
ags.REASON_CODE,
|
||||
COALESCE(mrc.REASON_CODE_ID, -1) as REASON_CODE_ID,
|
||||
COALESCE(mrc.REASON_CODE_ID, 0) as REASON_CODE_ID,
|
||||
ags.TIMESTAMP,
|
||||
date(ags.TIMESTAMP) DATE,
|
||||
EXTRACT(HOUR FROM ags.TIMESTAMP) HOUR,
|
||||
|
||||
@ -9,7 +9,7 @@ config {
|
||||
'STATE_GROUP <> "NOT_MAPPED"',
|
||||
'AGENT_ID <> "0" AND AGENT_NAME <> "NOT_MAPPED"',
|
||||
'STATE_ID <> 0',
|
||||
'REASON_CODE_ID <> -1'
|
||||
'REASON_CODE is not null and REASON_CODE_ID <> 0'
|
||||
]
|
||||
},
|
||||
tags: ["agent_status_report"],
|
||||
@ -31,7 +31,7 @@ select ags.AGENT_ID,
|
||||
) as AGENT_STATE_TIME_FORMATTED,
|
||||
ags.AGENT_START_DATE,
|
||||
ags.REASON_CODE,
|
||||
COALESCE(mrc.REASON_CODE_ID, -1) as REASON_CODE_ID,
|
||||
COALESCE(mrc.REASON_CODE_ID, 0) as REASON_CODE_ID,
|
||||
ags.TIMESTAMP,
|
||||
date(ags.TIMESTAMP) DATE,
|
||||
EXTRACT(HOUR FROM ags.TIMESTAMP) HOUR,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user