Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security Solution] add cloud + endpoint metering #164331

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

joeypoon
Copy link
Member

@joeypoon joeypoon commented Aug 21, 2023

Summary

Updates endpoint metering task to include cloud add-on. Tests to be added in follow up PR.

For maintainers

@joeypoon joeypoon added release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution labels Aug 21, 2023
@@ -42,14 +50,6 @@ export class EndpointMeteringService {
return [];
}

if (!this.tier) {
Copy link
Member Author

Choose a reason for hiding this comment

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

we no longer need this since we're now checking add-on explicitly.

@joeypoon joeypoon force-pushed the feature/cloud-endpoint-metering branch from 2d026fa to 8efa005 Compare August 23, 2023 20:49
@joeypoon joeypoon force-pushed the feature/cloud-endpoint-metering branch from 8efa005 to ee5d3d2 Compare August 23, 2023 21:43
@joeypoon joeypoon marked this pull request as ready for review August 23, 2023 21:47
@joeypoon joeypoon requested a review from a team as a code owner August 23, 2023 21:47
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-defend-workflows (Team:Defend Workflows)

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

History

  • 💔 Build #152948 failed 8efa005fd60d932e70f07d0af12080d73880a85f
  • 💛 Build #152037 was flaky 2d026fa8ae4d4316fc72fe24aa0edd59561263e1
  • 💔 Build #151987 failed 737b3e7e7bebb3bec74efd3e7100fffbd9f1b003

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@@ -20,6 +20,7 @@ const SAMPLE_PERIOD_SECONDS = 3600;
const THRESHOLD_MINUTES = 30;

export class EndpointMeteringService {
private type: ProductLine.endpoint | `${ProductLine.cloud}_${ProductLine.endpoint}` | undefined;
Copy link
Member

Choose a reason for hiding this comment

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

nit: Perhaps better to call it pliType instead of type.

@@ -126,15 +127,44 @@ export class EndpointMeteringService {
};
}

private setType(config: ServerlessSecurityConfig) {
Copy link
Member

Choose a reason for hiding this comment

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

nit: If you rename it to pliType then this should also be renamed.

@joeypoon joeypoon merged commit 76e3d5c into elastic:main Aug 25, 2023
@kibanamachine kibanamachine added v8.11.0 backport:skip This commit does not require backporting labels Aug 25, 2023
@joeypoon joeypoon deleted the feature/cloud-endpoint-metering branch August 25, 2023 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v8.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants