From b2f0f47e731b303980bba49422f0cf9ae5841afe Mon Sep 17 00:00:00 2001 From: niraj-elastic Date: Tue, 16 Apr 2024 17:41:53 +0530 Subject: [PATCH] adress review comments --- .../data_stream/process/agent/stream/input.yml.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mongodb_atlas/data_stream/process/agent/stream/input.yml.hbs b/packages/mongodb_atlas/data_stream/process/agent/stream/input.yml.hbs index 2dcda89ac40..3dc4b922602 100644 --- a/packages/mongodb_atlas/data_stream/process/agent/stream/input.yml.hbs +++ b/packages/mongodb_atlas/data_stream/process/agent/stream/input.yml.hbs @@ -51,7 +51,7 @@ program: | ).as(state, state.next >= size(state.hostlist) ? {} : request("GET", string(state.hostlist[state.next])).with({ "Header": { - "Accept": ["application/vnd.atlas." + string(timestamp(now).getFullYear()) + "-01-01+json"] + "Accept": ["application/vnd.atlas." + string(now.getFullYear()) + "-01-01+json"] } }).do_request().as(res, { "events": bytes(res.Body).decode_json().as(f, f.with({"response": zip( @@ -66,4 +66,4 @@ program: | "group_id": state.group_id, "query": state.query, }) - ) \ No newline at end of file + )