Skip to content

Commit 5036d69

Browse files
committed
Remove unnecessary condition in CEL
1 parent 220d450 commit 5036d69

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

packages/checkpoint_harmony_endpoint/data_stream/antibot/agent/stream/cel.yml.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ program: |
7070
timestamp(now() - duration(state.initial_interval)).format(time_layout.RFC3339)
7171
),
7272
"endTime": state.?cursor.next_endTime.orValue(null) == null ?
73-
optional.of(timestamp(now() - duration("1m")).format(time_layout.RFC3339))
73+
timestamp(now() - duration("1m")).format(time_layout.RFC3339)
7474
:
75-
optional.of(state.cursor.next_endTime),
75+
state.cursor.next_endTime,
7676
}.as(timeframe,
7777
request("POST", state.url.trim_right("/") + "/app/laas-logs-api/api/logs_query").with(
7878
{

packages/checkpoint_harmony_endpoint/data_stream/antimalware/agent/stream/cel.yml.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ program: |
7070
timestamp(now() - duration(state.initial_interval)).format(time_layout.RFC3339)
7171
),
7272
"endTime": state.?cursor.next_endTime.orValue(null) == null ?
73-
optional.of(timestamp(now() - duration("1m")).format(time_layout.RFC3339))
73+
timestamp(now() - duration("1m")).format(time_layout.RFC3339)
7474
:
75-
optional.of(state.cursor.next_endTime),
75+
state.cursor.next_endTime,
7676
}.as(timeframe,
7777
request("POST", state.url.trim_right("/") + "/app/laas-logs-api/api/logs_query").with(
7878
{

packages/checkpoint_harmony_endpoint/data_stream/forensics/agent/stream/cel.yml.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ program: |
7070
timestamp(now() - duration(state.initial_interval)).format(time_layout.RFC3339)
7171
),
7272
"endTime": state.?cursor.next_endTime.orValue(null) == null ?
73-
optional.of(timestamp(now() - duration("1m")).format(time_layout.RFC3339))
73+
timestamp(now() - duration("1m")).format(time_layout.RFC3339)
7474
:
75-
optional.of(state.cursor.next_endTime),
75+
state.cursor.next_endTime,
7676
}.as(timeframe,
7777
request("POST", state.url.trim_right("/") + "/app/laas-logs-api/api/logs_query").with(
7878
{

packages/checkpoint_harmony_endpoint/data_stream/threatemulation/agent/stream/cel.yml.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ program: |
7070
timestamp(now() - duration(state.initial_interval)).format(time_layout.RFC3339)
7171
),
7272
"endTime": state.?cursor.next_endTime.orValue(null) == null ?
73-
optional.of(timestamp(now() - duration("1m")).format(time_layout.RFC3339))
73+
timestamp(now() - duration("1m")).format(time_layout.RFC3339)
7474
:
75-
optional.of(state.cursor.next_endTime),
75+
state.cursor.next_endTime,
7676
}.as(timeframe,
7777
request("POST", state.url.trim_right("/") + "/app/laas-logs-api/api/logs_query").with(
7878
{

packages/checkpoint_harmony_endpoint/data_stream/threatextraction/agent/stream/cel.yml.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ program: |
7070
timestamp(now() - duration(state.initial_interval)).format(time_layout.RFC3339)
7171
),
7272
"endTime": state.?cursor.next_endTime.orValue(null) == null ?
73-
optional.of(timestamp(now() - duration("1m")).format(time_layout.RFC3339))
73+
timestamp(now() - duration("1m")).format(time_layout.RFC3339)
7474
:
75-
optional.of(state.cursor.next_endTime),
75+
state.cursor.next_endTime,
7676
}.as(timeframe,
7777
request("POST", state.url.trim_right("/") + "/app/laas-logs-api/api/logs_query").with(
7878
{

packages/checkpoint_harmony_endpoint/data_stream/urlfiltering/agent/stream/cel.yml.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ program: |
7070
timestamp(now() - duration(state.initial_interval)).format(time_layout.RFC3339)
7171
),
7272
"endTime": state.?cursor.next_endTime.orValue(null) == null ?
73-
optional.of(timestamp(now() - duration("1m")).format(time_layout.RFC3339))
73+
timestamp(now() - duration("1m")).format(time_layout.RFC3339)
7474
:
75-
optional.of(state.cursor.next_endTime),
75+
state.cursor.next_endTime,
7676
}.as(timeframe,
7777
request("POST", state.url.trim_right("/") + "/app/laas-logs-api/api/logs_query").with(
7878
{

packages/checkpoint_harmony_endpoint/data_stream/zerophishing/agent/stream/cel.yml.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ program: |
7070
timestamp(now() - duration(state.initial_interval)).format(time_layout.RFC3339)
7171
),
7272
"endTime": state.?cursor.next_endTime.orValue(null) == null ?
73-
optional.of(timestamp(now() - duration("1m")).format(time_layout.RFC3339))
73+
timestamp(now() - duration("1m")).format(time_layout.RFC3339)
7474
:
75-
optional.of(state.cursor.next_endTime),
75+
state.cursor.next_endTime,
7676
}.as(timeframe,
7777
request("POST", state.url.trim_right("/") + "/app/laas-logs-api/api/logs_query").with(
7878
{

0 commit comments

Comments
 (0)