9 lines
344 B
Plaintext
9 lines
344 B
Plaintext
config {
|
|
type: "assertion",
|
|
tags: ["agent_status"] }
|
|
|
|
select * from(
|
|
select max(timestamp) max_timestamp
|
|
from ${ref("pphe_five9_raw","agent_status_*")}
|
|
where _TABLE_SUFFIX = FORMAT_DATE('%Y%m%d',current_date("Europe/Amsterdam")))
|
|
where TIMESTAMP_DIFF(max_timestamp, TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 DAY), hour) < 0 |