Skip to content

Commit 72e8455

Browse files
authored
[o365_metrics] Fix CEL evaluation error (elastic#14263)
* [o365_metrics] Fix CEL evaluation error `failed eval: ERROR: <input>:46:11: no such key: path` for groups_activity_group_detail,onedrive_usage_account_detail,teams_user_activity_user_detail,viva_engage_groups_activity_group_detail data streams.
1 parent b4bd0e2 commit 72e8455

6 files changed

Lines changed: 10 additions & 5 deletions

File tree

packages/o365_metrics/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "0.15.1"
3+
changes:
4+
- description: Fix CEL evaluation error for `groups_activity_group_detail`,`onedrive_usage_account_detail`,`teams_user_activity_user_detail`,`viva_engage_groups_activity_group_detail` data streams.
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/14263
27
- version: "0.15.0"
38
changes:
49
- description: Add dashboard for `subscriptions` data stream.

packages/o365_metrics/data_stream/groups_activity_group_detail/agent/stream/cel.yml.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ program: |
171171
"error": {
172172
"code": string(resp.StatusCode),
173173
"id": string(resp.Status),
174-
"message": "GET " + state.path + ": " + (
174+
"message": "GET " + state.type_to_api_map[work_list[0].type] + ": " + (
175175
size(resp.Body) != 0 ?
176176
string(resp.Body)
177177
:

packages/o365_metrics/data_stream/onedrive_usage_account_detail/agent/stream/cel.yml.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ program: |
168168
"error": {
169169
"code": string(resp.StatusCode),
170170
"id": string(resp.Status),
171-
"message": "GET " + state.path + ": " + (
171+
"message": "GET " + state.type_to_api_map[work_list[0].type] + ": " + (
172172
size(resp.Body) != 0 ?
173173
string(resp.Body)
174174
:

packages/o365_metrics/data_stream/teams_user_activity_user_detail/agent/stream/cel.yml.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ program: |
168168
"error": {
169169
"code": string(resp.StatusCode),
170170
"id": string(resp.Status),
171-
"message": "GET " + state.path + ": " + (
171+
"message": "GET " + state.type_to_api_map[work_list[0].type] + ": " + (
172172
size(resp.Body) != 0 ?
173173
string(resp.Body)
174174
:

packages/o365_metrics/data_stream/viva_engage_groups_activity_group_detail/agent/stream/cel.yml.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ program: |
168168
"error": {
169169
"code": string(resp.StatusCode),
170170
"id": string(resp.Status),
171-
"message": "GET " + state.path + ": " + (
171+
"message": "GET " + state.type_to_api_map[work_list[0].type] + ": " + (
172172
size(resp.Body) != 0 ?
173173
string(resp.Body)
174174
:

packages/o365_metrics/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: o365_metrics
22
title: Microsoft Office 365 Metrics
3-
version: "0.15.0"
3+
version: "0.15.1"
44
description: Collect metrics from Microsoft Office 365 with Elastic Agent.
55
type: integration
66
format_version: "3.0.2"

0 commit comments

Comments
 (0)