Interface PowerEvents
- All Known Implementing Classes:
PowerEventsImpl
public interface PowerEvents
Client interface for the IBX SmartView power-events API (
/dcim/v3/powerEvents). Provides
methods to search power events raised against monitored power assets and to manage power alert
configurations, including create, search, update, pause, resume, and delete operations.-
Method Summary
Modifier and TypeMethodDescriptionReturns a builder for defining and creating a new power alert configuration.voiddeleteAlertConfiguration(String alertConfigurationUid) Permanently deletes a power alert configuration.voidpauseAlertConfiguration(String alertConfigurationUid) Pauses an active power alert configuration so that it stops triggering new alerts until resumed.voidresumeAlertConfiguration(String alertConfigurationUid) Resumes a previously paused power alert configuration, returning it to theACTIVEstate.Searches power events matching the specified filters.searchAlertConfigurations(List<String> ibx, List<String> state, int offset, int limit) Searches power alert configurations matching the specified filters.updateAlertConfiguration(String alertConfigurationUid) Returns a builder for updating an existing power alert configuration.
-
Method Details
-
search
PaginatedList<PowerEvent> search(List<String> ibx, List<String> status, String edgeCollectedOn, int offset, int limit) Searches power events matching the specified filters.- Parameters:
ibx- the list of IBX codes to filter by, ornullfor allstatus- the list of statuses to filter by (e.g.ACTIVE,INACTIVE), ornullfor alledgeCollectedOn- an ISO-8601 date to retrieve events collected after a specific date, ornullfor alloffset- the zero-based record offset for paginationlimit- the maximum number of records to retrieve per request- Returns:
- a paginated list of matching power events
-
defineAlertConfiguration
PowerAlertConfigurationOperator.PowerAlertConfigurationBuilder defineAlertConfiguration()Returns a builder for defining and creating a new power alert configuration.- Returns:
- a power alert configuration builder
-
searchAlertConfigurations
PaginatedList<PowerAlertConfiguration> searchAlertConfigurations(List<String> ibx, List<String> state, int offset, int limit) Searches power alert configurations matching the specified filters.- Parameters:
ibx- the list of IBX codes to filter by, ornullfor allstate- the list of states to filter by (e.g.ACTIVE,PAUSED,DELETED), ornullfor alloffset- the zero-based record offset for paginationlimit- the maximum number of records to retrieve per request- Returns:
- a paginated list of matching power alert configurations
-
updateAlertConfiguration
PowerAlertConfigurationOperator.PowerAlertConfigurationUpdateBuilder updateAlertConfiguration(String alertConfigurationUid) Returns a builder for updating an existing power alert configuration. ThealertConfigurationUididentifies the configuration to update.- Parameters:
alertConfigurationUid- the unique identifier of the power alert configuration to update- Returns:
- a power alert configuration update builder
-
pauseAlertConfiguration
Pauses an active power alert configuration so that it stops triggering new alerts until resumed.- Parameters:
alertConfigurationUid- the unique identifier of the power alert configuration to pause
-
resumeAlertConfiguration
Resumes a previously paused power alert configuration, returning it to theACTIVEstate.- Parameters:
alertConfigurationUid- the unique identifier of the power alert configuration to resume
-
deleteAlertConfiguration
Permanently deletes a power alert configuration. Deleted configurations cannot be recovered.- Parameters:
alertConfigurationUid- the unique identifier of the power alert configuration to delete
-