This repository was archived by the owner on Jan 4, 2026. It is now read-only.
Repository navigation
v2.3.0 - Public/Private Monitoring Agent Keys
What's New
Features
- Public/Private Monitoring Agent Keys: Added support for distinguishing between public (Nexmonyx-managed) and private (customer-managed) monitoring agents
- Public agents can only execute public probes and require a region code
- Private agents can execute both public and private probes
- Added
AgentType,AllowedProbeScopes, andRegionCodefields to monitoring agent keys - Added helper functions
NewPublicAgentKeyRequest()andNewPrivateAgentKeyRequest()for easy key creation - Added
IsPublic()andIsPrivate()methods to check agent type
Improvements
- Updated monitoring agent key creation to accept full request structure
- Enhanced documentation with comprehensive examples
- Added unit tests for new functionality
Fixes
- Fixed duplicate
IncidentsServicetype declaration - Updated examples to use new API structure
Breaking Changes
MonitoringAgentKeysService.Create()now requires a*CreateMonitoringAgentKeyRequestinstead of just a description string
Usage Example
// Create a private monitoring agent key
privateKey := nexmonyx.NewPrivateAgentKeyRequest(
"My Private Agent",
"private-agent-1",
"NYC3", // Optional region
)
key, err := client.MonitoringAgentKeys.Create(ctx, "114", privateKey)
// Create a public monitoring agent key
publicKey := nexmonyx.NewPublicAgentKeyRequest(
"NYC3 Public Agent",
"public-agent-nyc3",
"NYC3", // Required region
)
key, err := client.MonitoringAgentKeys.Create(ctx, "114", publicKey)Full Changelog
- feat(sdk): Add support for public/private monitoring agent keys
- fix(examples): Update monitoring agent keys example for new API
Full Changelog: v2.2.0...v2.3.0