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

feat: metrics alerting support #145

Merged
merged 5 commits into from Dec 7, 2023
Merged

Conversation

wrn14897
Copy link
Contributor

@wrn14897 wrn14897 commented Dec 7, 2023

No description provided.

Copy link

changeset-bot bot commented Dec 7, 2023

🦋 Changeset detected

Latest commit: 085ab63

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@hyperdx/api Minor
@hyperdx/app Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kodiakhq kodiakhq bot merged commit 27f1b7e into main Dec 7, 2023
4 checks passed
@kodiakhq kodiakhq bot deleted the warren/metric-alert-support branch December 7, 2023 19:04
@@ -439,7 +464,9 @@ export const processAlert = async (now: Date, alert: AlertDocument) => {
let alertState = AlertState.OK;
if (checksData?.rows && checksData?.rows > 0) {
for (const checkData of checksData.data) {
const totalCount = parseInt(checkData.data);
const totalCount = isString(checkData.data)
? parseInt(checkData.data)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Should always provide a radix argument for parseInt

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

Successfully merging this pull request may close these issues.

None yet

3 participants