Skip to content

Conversation

@Praveenrajmani
Copy link
Contributor

Add alert types (AlertType, AlertEvent, AlertDetails) and the GetAlerts admin API for retrieving license and certificate expiry alerts.

Copy link
Contributor

@klauspost klauspost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some clarification needed.

Comment on lines +92 to +94
AlertInternalSubSys = "alert_internal"
AlertWebhookSubSys = "alert_webhook"
AlertKafkaSubSys = "alert_kafka"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't these be included in AlertEvent?

I kinda assume "webhook" can return more than one alert.. or at least subsystems will be able to in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The AlertInternalSubSys, AlertWebhookSubSys, AlertKafkaSubSys are configuration subsystems

This is required for a feature in EOS to send alerts to configured targets / internally;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking in the type Alert struct.

Comment on lines 83 to 84
// GetAlerts retrieves alerts from the MinIO server with the specified options.
// It returns an iterator that yields AlertEvent objects.
// Type filtering is case-insensitive and handled server-side.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will "current" events be returned right away? Will events re-fire at regular intervals? What be expected from the API?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetAlerts is a streaming API that:

  • Makes a POST request to /admin/alerts
  • Returns alerts as a stream decoded from JSON
  • Uses Interval option to control the check interval on server side

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was implying it should be documented.

@Praveenrajmani Praveenrajmani self-assigned this Feb 2, 2026
@Praveenrajmani Praveenrajmani force-pushed the alerts branch 2 times, most recently from b06eac6 to 5a93af7 Compare February 4, 2026 08:10
Add alert types (AlertType, AlertEvent, AlertDetails) and the GetAlerts
admin API for retrieving license and certificate expiry alerts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants