-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution] add cloud + endpoint metering #164331
Conversation
@@ -42,14 +50,6 @@ export class EndpointMeteringService { | |||
return []; | |||
} | |||
|
|||
if (!this.tier) { |
There was a problem hiding this comment.
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.
2d026fa
to
8efa005
Compare
8efa005
to
ee5d3d2
Compare
Pinging @elastic/security-defend-workflows (Team:Defend Workflows) |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
History
To update your PR or re-run it, just comment with: |
@@ -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; |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
Summary
Updates endpoint metering task to include cloud add-on. Tests to be added in follow up PR.
For maintainers