Alerts Interface
public interface Alerts
Resource collection API of Alerts.
Method Summary
Method Details
changeState
public abstract Alert changeState(String alertId, AlertState newState)
Change the state of an alert.
Parameters:
Returns:
changeStateWithResponse
public abstract Response<Alert> changeStateWithResponse(String alertId, AlertState newState, Comments comment, Context context)
Change the state of an alert.
Parameters:
Returns:
getById
public abstract Alert getById(String alertId)
Get a specific alert. Get information related to a specific alert.
Parameters:
Returns:
getByIdWithResponse
public abstract Response<Alert> getByIdWithResponse(String alertId, Context context)
Get a specific alert. Get information related to a specific alert.
Parameters:
Returns:
getHistory
public abstract AlertModification getHistory(String alertId)
Get the history of an alert, which captures any monitor condition changes (Fired/Resolved) and alert state changes (New/Acknowledged/Closed).
Parameters:
Returns:
getHistoryWithResponse
public abstract Response<AlertModification> getHistoryWithResponse(String alertId, Context context)
Get the history of an alert, which captures any monitor condition changes (Fired/Resolved) and alert state changes (New/Acknowledged/Closed).
Parameters:
Returns:
getSummary
public abstract AlertsSummary getSummary(AlertsSummaryGroupByFields groupby)
Get a summarized count of your alerts grouped by various parameters (e.g. grouping by 'Severity' returns the count of alerts for each severity).
Parameters:
Returns:
getSummaryWithResponse
public abstract Response<AlertsSummary> getSummaryWithResponse(AlertsSummaryGroupByFields groupby, Boolean includeSmartGroupsCount, String targetResource, String targetResourceType, String targetResourceGroup, MonitorService monitorService, MonitorCondition monitorCondition, Severity severity, AlertState alertState, String alertRule, TimeRange timeRange, String customTimeRange, Context context)
Get a summarized count of your alerts grouped by various parameters (e.g. grouping by 'Severity' returns the count of alerts for each severity).
Parameters:
Returns:
list
public abstract PagedIterable<Alert> list()
List all existing alerts, where the results can be filtered on the basis of multiple parameters (e.g. time range). The results can then be sorted on the basis specific fields, with the default being lastModifiedDateTime.
Returns:
list
public abstract PagedIterable<Alert> list(String targetResource, String targetResourceType, String targetResourceGroup, MonitorService monitorService, MonitorCondition monitorCondition, Severity severity, AlertState alertState, String alertRule, String smartGroupId, Boolean includeContext, Boolean includeEgressConfig, Long pageCount, AlertsSortByFields sortBy, SortOrder sortOrder, String select, TimeRange timeRange, String customTimeRange, Context context)
List all existing alerts, where the results can be filtered on the basis of multiple parameters (e.g. time range). The results can then be sorted on the basis specific fields, with the default being lastModifiedDateTime.
Parameters:
Returns:
metadata
public abstract AlertsMetadata metadata(Identifier identifier)
List alerts meta data information based on value of identifier parameter.
Parameters:
Returns:
metadataWithResponse
public abstract Response<AlertsMetadata> metadataWithResponse(Identifier identifier, Context context)
List alerts meta data information based on value of identifier parameter.
Parameters:
Returns: