-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: update Datadog tools to use dynamic configuration factory (#10
) * refactor: update Datadog tools to use dynamic configuration factory functions This commit introduces a significant refactoring of Datadog tool handlers: - Replace static API instances with dynamic configuration factory functions - Remove direct import of datadogConfig from utils/datadog - Update index files to export new factory functions instead of static handlers - Improve flexibility by allowing dynamic Datadog client configuration - Standardize tool handler creation across different modules The changes enable more flexible and configurable Datadog tool integrations while maintaining the existing tool interfaces. * test: add comprehensive tests for Datadog configuration utilities This commit introduces a new test suite for Datadog configuration functions: - Create tests for `createDatadogConfig` with various configuration scenarios - Add tests for `getDatadogSite` to verify site retrieval - Validate configuration creation with and without custom sites - Ensure proper error handling for missing API and APP keys * feat: integrate Datadog configuration with tool handlers This commit updates the main index file to: - Validate Datadog API and APP key environment variables - Create a dynamic Datadog configuration using environment settings - Refactor tool handlers to use the new configuration factory functions - Ensure consistent configuration across all Datadog tool handlers * chore: bump package version to 1.1.0 This version bump reflects the recent feature additions and improvements to the Datadog server integration, including: - Dynamic Datadog configuration - Enhanced tool handlers - New host management functionality * test: remove commented-out test configuration in Datadog test suite
- Loading branch information
Showing
18 changed files
with
591 additions
and
484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { DASHBOARDS_TOOLS, DASHBOARDS_HANDLERS } from './tool' | ||
export { DASHBOARDS_TOOLS, createDashboardsToolHandlers } from './tool' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.