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

v2.3.1: Critical Fixes for Monitoring Controller

Choose a tag to compare

@mattmattox mattmattox released this 30 Jul 09:49
· 125 commits to main since this release
v2.3.1
369e9f5

πŸš€ Release v2.3.1 - Critical Fixes for Monitoring Controller

🎯 Overview

This release resolves critical blocking issues in the monitoring-controller CI/CD pipeline by making the IncidentsService and ProbesService properly available in the published SDK.

πŸ”§ What's Fixed

1. βœ… IncidentsService Now Available

  • client.Incidents is properly initialized with all required methods
  • CreateIncidentFromProbe(ctx, organizationID, probeID, probeName, description) - Create incidents from probe failures
  • ResolveIncident(ctx, id) - Mark incidents as resolved
  • All incident data models included (Incident, IncidentStatus, IncidentSeverity, IncidentSource)

2. βœ… ProbesService Now Available

  • client.Probes is properly initialized and accessible
  • Enables consistent API usage with client.Probes.List()
  • Eliminates need for workaround client.Monitoring.ListProbes()

3. βœ… Version Update

  • SDK version updated to v2.3.1

πŸ” Root Cause

The services were implemented but added after v1.3.1 was published. The monitoring-controller was trying to use features not available in the published SDK.

πŸ“¦ Installation

go get github.com/nexmonyx/go-sdk@v2.3.1

πŸ”„ Migration Guide

  1. Update your go.mod:

    go mod edit -require=github.com/nexmonyx/go-sdk@v2.3.1
    go mod tidy
  2. Replace probe listing workaround:

    // Old workaround:
    probes, _, err := client.Monitoring.ListProbes(ctx, nil)
    
    // New consistent API:
    probes, _, err := client.Probes.List(ctx, nil)
  3. Enable incident creation:

    incident, err := client.Incidents.CreateIncidentFromProbe(
        ctx, orgID, probe.ID, probe.Name, description
    )

✨ Impact

  • βœ… Automated incident management restored
  • βœ… CI/CD pipeline unblocked
  • βœ… API consistency achieved
  • βœ… No operational blind spots

πŸ“ Changelog

  • Added ProbesService struct definition to client.go
  • Verified both services properly initialized in NewClient()
  • All required methods confirmed working
  • Backward compatibility maintained

πŸ™ Credits

Special thanks to the monitoring-controller team for the detailed bug report and requirements documentation.