Skip to content

[Bits AI] Limit investigations to monitor alerts#26

Merged
platinummonkey merged 1 commit into
mainfrom
dd/fix/investigations-monitor-alert-only
Feb 10, 2026
Merged

[Bits AI] Limit investigations to monitor alerts#26
platinummonkey merged 1 commit into
mainfrom
dd/fix/investigations-monitor-alert-only

Conversation

@Waleed101
Copy link
Copy Markdown
Contributor

@Waleed101 Waleed101 commented Feb 10, 2026

PR by Bits
View Dev Agent Session

You can ask for changes by mentioning @DataDog in a comment.


What does this PR do?

Restricts the investigations command to monitor alert triggers only and removes general investigation options. This feature is not yet available to customers so won't work if attempted to be accessed from CLI.

Motivation

General investigations should no longer be exposed from the CLI, so the command should only surface monitor alert types.

Additional Notes

Updated validations and tests to align with the monitor alert-only workflow.

Checklist

  • The code change follows the project conventions (see CONTRIBUTING.md)
  • Tests have been added/updated (if applicable)
  • Documentation has been updated (if applicable)
  • All CI checks pass
  • Code coverage is maintained or improved

Related Issues

Co-authored-by: Waleed101 <waleed.sawan@gmail.com>
@datadog-datadog-prod-us1
Copy link
Copy Markdown
Contributor

Bits AI Dev Agent Status: ✅ Done [Fix CI Errors] [View Dev Agent Session]

You can ask for changes by mentioning @DataDog in a comment.

@github-actions
Copy link
Copy Markdown

📊 Test Coverage Report

Overall Coverage: 80.4% Coverage

Threshold: 80% ✅

Coverage by Package
## Coverage by Package

- github.com/DataDog/pup/pkg/auth/callback/server.go:40: 81.2%
- github.com/DataDog/pup/pkg/auth/dcr/client.go:28: 100.0%
- github.com/DataDog/pup/pkg/auth/dcr/types.go:24: 100.0%
- github.com/DataDog/pup/pkg/auth/oauth/client.go:22: 100.0%
- github.com/DataDog/pup/pkg/auth/oauth/pkce.go:24: 85.7%
- github.com/DataDog/pup/pkg/auth/storage/factory.go:53: 94.7%
- github.com/DataDog/pup/pkg/auth/storage/keychain.go:44: 42.9%
- github.com/DataDog/pup/pkg/auth/storage/storage.go:58: 71.4%
- github.com/DataDog/pup/pkg/auth/types/types.go:23: 100.0%
- github.com/DataDog/pup/pkg/client/client.go:32: 94.4%
- github.com/DataDog/pup/pkg/config/config.go:22: 100.0%
- github.com/DataDog/pup/pkg/formatter/formatter.go:31: 100.0%
- github.com/DataDog/pup/pkg/useragent/useragent.go:32: 100.0%
- github.com/DataDog/pup/pkg/util/time.go:20: 95.8%

## Summary

total:								(statements)		80.4%

📈 Coverage Status: ✅ PASSED - Coverage meets minimum threshold

Updated for commit e25936b

@Waleed101 Waleed101 marked this pull request as ready for review February 10, 2026 22:08
@Waleed101 Waleed101 requested a review from a team as a code owner February 10, 2026 22:08
@platinummonkey platinummonkey merged commit 6de6503 into main Feb 10, 2026
4 checks passed
@platinummonkey platinummonkey deleted the dd/fix/investigations-monitor-alert-only branch February 10, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants