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

v1.0.4 - Alerts Controller Support

Choose a tag to compare

@mattmattox mattmattox released this 04 Jul 01:13
· 173 commits to main since this release
v1.0.4
dd20ed4

What's New

🚀 Features

Added comprehensive support for the alerts-controller service with new types and methods.

New Types

Alert Management

  • AlertChannel - Notification channel configuration (email, Slack, PagerDuty, webhooks)
  • AlertRule - Enhanced alert rule structure with detailed configuration:
    • Scope configuration (organization, server, tag, group)
    • Metric configuration with aggregation options
    • Complex conditions and thresholds
    • Channel notification settings
  • AlertConditions - Alert triggering conditions with time windows
  • AlertThreshold - Threshold configuration with operators, duration, and severity levels

New Methods

AlertsService

  • ListChannels(ctx, opts) - Retrieve all notification channels for an organization
    channels, meta, err := client.Alerts.ListChannels(ctx, &ListOptions{Page: 1, Limit: 20})

MetricsService

  • GetServerMetrics(ctx, serverUUID, metricName, timeRange) - Query specific server metrics within a time range
    metrics, err := client.Metrics.GetServerMetrics(ctx, "server-uuid", "cpu.usage", &TimeRange{
        Start: "2024-01-01T00:00:00Z",
        End:   "2024-01-02T00:00:00Z",
    })

💡 Use Cases

These additions enable the alerts-controller to:

  • Manage notification channels across multiple platforms
  • Query specific metrics for alert evaluation
  • Handle complex alert rules with multiple thresholds and scopes
  • Support time-based alert conditions

Full Changelog: v1.0.3...v1.0.4