Skip to content

[MS365] [Active Users] Add Active Users datastream#11934

Merged
lucian-ioan merged 0 commit intoelastic:mainfrom
lucian-ioan:add_o365_active_users_datastream
Dec 27, 2024
Merged

[MS365] [Active Users] Add Active Users datastream#11934
lucian-ioan merged 0 commit intoelastic:mainfrom
lucian-ioan:add_o365_active_users_datastream

Conversation

@lucian-ioan
Copy link
Copy Markdown
Contributor

Proposed commit message

Add Active Users datastream.

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] labels Dec 1, 2024
@lucian-ioan lucian-ioan self-assigned this Dec 1, 2024
@lucian-ioan lucian-ioan marked this pull request as draft December 1, 2024 18:30
@lucian-ioan lucian-ioan changed the title [MS365] [One Drive] Add Active Users datastream [MS365] [Active Users] Add Active Users datastream Dec 1, 2024
@elastic-vault-github-plugin-prod
Copy link
Copy Markdown

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@lucian-ioan lucian-ioan marked this pull request as ready for review December 10, 2024 10:47
@andrewkroh andrewkroh added the Integration:o365_metrics Microsoft Office 365 Metrics label Dec 16, 2024
@lucian-ioan lucian-ioan requested a review from a team as a code owner December 17, 2024 01: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.

shall we follow naming as o365.metrics.active.users ?

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.

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.

Suggested change
description: "The count of email messages sent by users during the reporting period. \n"
description: "The count of email messages sent by users during the reporting period."

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.

Suggested change
- version: "0.2.0"
- version: "0.1.1"

@lucian-ioan lucian-ioan requested a review from ritalwar December 17, 2024 13:03
@andrewkroh andrewkroh added enhancement New feature or request and removed New Integration Issue or pull request for creating a new integration package. labels Dec 17, 2024
@lucian-ioan lucian-ioan force-pushed the add_o365_active_users_datastream branch from 1f1e918 to fca367f Compare December 18, 2024 02:09
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.

Can we add the unit suffix "count" wherever applicable to the fields in this stream?

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.

The data for the skype_for_business field is not listed among the required metrics for this API. We can remove it for both active and inactive counts.

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 agent link for processors

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.

Suggested change
description: Collect Office 365 Active Users metrics via the Microsoft Graph API using CEL Input.
description: Collect Office 365 Active Users metrics.

@lucian-ioan lucian-ioan requested a review from ritalwar December 24, 2024 05:59
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.

We need to update this, as the JSON in Elasticsearch contains a BOM character, which needs to be handled.

Suggested change
return /[ -]/.matcher(s).replaceAll('_').toLowerCase();
String result = /[ -]/.matcher(s).replaceAll('_').toLowerCase();
return /[\ufeff]/.matcher(result).replaceAll('')

@lucian-ioan lucian-ioan requested a review from ritalwar December 26, 2024 11:18
@elastic-sonarqube
Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

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

See analysis details on SonarQube

@elasticmachine
Copy link
Copy Markdown

💚 Build Succeeded

History

  • 💚 Build #19813 succeeded 3199b05f722383736897bf1627ccb395a4845671
  • 💔 Build #19812 failed 6607016ab58f3f4cfd8ba1c177a76cfc0ff92fb4
  • 💔 Build #19810 failed 9b5a35c88acc8906ec5fbdb3baed2123a1054def
  • 💚 Build #19794 succeeded f9620640047952b2c9e2e262f05b984a6b87cd1a
  • 💚 Build #19635 succeeded 86295cd7e3e8df2e8cea47ee5cf3da9a31e62c2d
  • 💔 Build #19633 failed fca367f1f410002c47358dd214d4e46929f32f23

cc @lucian-ioan

Copy link
Copy Markdown
Contributor

@ritalwar ritalwar left a comment

Choose a reason for hiding this comment

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

LGTM!

@lucian-ioan lucian-ioan merged commit 5fd8339 into elastic:main Dec 27, 2024
@elastic-vault-github-plugin-prod
Copy link
Copy Markdown

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

harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 4, 2025
harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 5, 2025
@lucian-ioan lucian-ioan deleted the add_o365_active_users_datastream branch February 6, 2025 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Integration:o365_metrics Microsoft Office 365 Metrics Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants