Skip to content

[MS365] [Subscriptions] Add Subscriptions data stream#12490

Merged
lucian-ioan merged 3 commits intoelastic:mainfrom
lucian-ioan:add_o365_subscriptions_data_stream
Feb 5, 2025
Merged

[MS365] [Subscriptions] Add Subscriptions data stream#12490
lucian-ioan merged 3 commits intoelastic:mainfrom
lucian-ioan:add_o365_subscriptions_data_stream

Conversation

@lucian-ioan
Copy link
Copy Markdown
Contributor

Proposed commit message

Add subscriptions data stream.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@lucian-ioan lucian-ioan added New Integration Issue or pull request for creating a new integration package. Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] Integration:o365_metrics Microsoft Office 365 Metrics labels Jan 28, 2025
@lucian-ioan lucian-ioan self-assigned this Jan 28, 2025
@lucian-ioan lucian-ioan requested a review from ritalwar January 28, 2025 02:02
@lucian-ioan lucian-ioan marked this pull request as ready for review January 28, 2025 02:03
@lucian-ioan lucian-ioan requested review from a team January 28, 2025 02:03
@lucian-ioan lucian-ioan force-pushed the add_o365_subscriptions_data_stream branch from 2a84663 to 77c002c Compare January 28, 2025 02:58
@elastic-vault-github-plugin-prod
Copy link
Copy Markdown

elastic-vault-github-plugin-prod bot commented Jan 28, 2025

🚀 Benchmarks report

Package o365_metrics 👍(7) 💚(1) 💔(11)

Expand to view
Data stream Previous EPS New EPS Diff (%) Result
outlook_app_usage_version_counts 10869.57 4975.12 -5894.45 (-54.23%) 💔
sharepoint_site_usage_detail 7812.5 5347.59 -2464.91 (-31.55%) 💔
teams_device_usage_user_counts 5464.48 4065.04 -1399.44 (-25.61%) 💔
viva_engage_device_usage_user_counts 10309.28 6802.72 -3506.56 (-34.01%) 💔
viva_engage_groups_activity_group_detail 8771.93 6134.97 -2636.96 (-30.06%) 💔
active_users_services_user_counts 3717.47 2604.17 -1113.3 (-29.95%) 💔
groups_activity_group_detail 2590.67 1766.78 -823.89 (-31.8%) 💔
onedrive_usage_account_counts 16666.67 13333.33 -3333.34 (-20%) 💔
onedrive_usage_account_detail 4201.68 2369.67 -1832.01 (-43.6%) 💔
onedrive_usage_file_counts 15151.52 12658.23 -2493.29 (-16.46%) 💔
outlook_activity 9900.99 4566.21 -5334.78 (-53.88%) 💔

To see the full report comment with /test benchmark fullreport

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check if we need to fingerprint over any field(dimension)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There isn't any identifier field here between documents. I used a fingerprint for the entire accounts list.

@lucian-ioan lucian-ioan requested a review from ritalwar January 28, 2025 13:06
@lucian-ioan lucian-ioan requested a review from ritalwar January 29, 2025 09:57
@lucian-ioan lucian-ioan requested a review from muthu-mps January 30, 2025 06:13
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lucian-ioan - Can you resolve conflicts, The code owner file already has this change.

Suggested change
/packages/o365_metrics/data_stream/yammer_device_usage @elastic/obs-infraobs-integrations

@andrewkroh andrewkroh added the Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] label Jan 30, 2025
@elasticmachine
Copy link
Copy Markdown

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

@lucian-ioan lucian-ioan force-pushed the add_o365_subscriptions_data_stream branch from 43f8496 to bbb377e Compare January 30, 2025 17:24
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add final new line.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add final new line.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use consistent indentation.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should probably be an assessment for the presence of a CEL error condition like we have e.g. here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add final new line.

Comment on lines 58 to 73
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove?

@lucian-ioan lucian-ioan force-pushed the add_o365_subscriptions_data_stream branch from bbb377e to 8e96189 Compare February 5, 2025 03:06
@lucian-ioan lucian-ioan enabled auto-merge (squash) February 5, 2025 03:10
@lucian-ioan lucian-ioan disabled auto-merge February 5, 2025 03:25
@elastic-sonarqube
Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

Failed conditions
62.9% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube

@elasticmachine
Copy link
Copy Markdown

💚 Build Succeeded

History

cc @lucian-ioan

@lucian-ioan lucian-ioan merged commit 7c7e061 into elastic:main Feb 5, 2025
@lucian-ioan lucian-ioan deleted the add_o365_subscriptions_data_stream branch February 6, 2025 19:10
@elastic-vault-github-plugin-prod
Copy link
Copy Markdown

Package o365_metrics - 0.5.0 containing this change is available at https://epr.elastic.co/package/o365_metrics/0.5.0/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Integration:abnormal_security Abnormal AI Integration:o365_metrics Microsoft Office 365 Metrics Integration:1password 1Password (Partner supported) New Integration Issue or pull request for creating a new integration package. Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants