Skip to content
This repository was archived by the owner on Jan 4, 2026. It is now read-only.

v2.3.0 - Public/Private Monitoring Agent Keys

Choose a tag to compare

@mattmattox mattmattox released this 28 Jul 21:48
· 127 commits to main since this release
73fe231

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, and RegionCode fields to monitoring agent keys
  • Added helper functions NewPublicAgentKeyRequest() and NewPrivateAgentKeyRequest() for easy key creation
  • Added IsPublic() and IsPrivate() 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 IncidentsService type declaration
  • Updated examples to use new API structure

Breaking Changes

  • MonitoringAgentKeysService.Create() now requires a *CreateMonitoringAgentKeyRequest instead 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