Class AlertingApiAsync

java.lang.Object
com.mypurecloud.sdk.v2.api.AlertingApiAsync

public class AlertingApiAsync extends Object
  • Constructor Details

    • AlertingApiAsync

      public AlertingApiAsync()
    • AlertingApiAsync

      public AlertingApiAsync(ApiClient apiClient)
  • Method Details

    • deleteAlertingAlertAsync

      public Future<Void> deleteAlertingAlertAsync(DeleteAlertingAlertRequest request, AsyncApiCallback<Void> callback)
      Delete an alert
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • deleteAlertingAlertAsync

      public Future<ApiResponse<Void>> deleteAlertingAlertAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<Void>> callback)
      Delete an alert
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • deleteAlertingInteractionstatsAlertAsync

      public Future<Void> deleteAlertingInteractionstatsAlertAsync(DeleteAlertingInteractionstatsAlertRequest request, AsyncApiCallback<Void> callback)
      Deprecated.
      Delete an interaction stats alert Apps should migrate to use DELETE /api/v2/alerting/alerts/{alertId}.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • deleteAlertingInteractionstatsAlertAsync

      public Future<ApiResponse<Void>> deleteAlertingInteractionstatsAlertAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<Void>> callback)
      Deprecated.
      Delete an interaction stats alert Apps should migrate to use DELETE /api/v2/alerting/alerts/{alertId}.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • deleteAlertingInteractionstatsRuleAsync

      public Future<Void> deleteAlertingInteractionstatsRuleAsync(DeleteAlertingInteractionstatsRuleRequest request, AsyncApiCallback<Void> callback)
      Deprecated.
      Delete an interaction stats rule Apps should migrate to use DELETE /api/v2/alerting/rules/{ruleId}.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • deleteAlertingInteractionstatsRuleAsync

      public Future<ApiResponse<Void>> deleteAlertingInteractionstatsRuleAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<Void>> callback)
      Deprecated.
      Delete an interaction stats rule Apps should migrate to use DELETE /api/v2/alerting/rules/{ruleId}.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • deleteAlertingRuleAsync

      public Future<Void> deleteAlertingRuleAsync(DeleteAlertingRuleRequest request, AsyncApiCallback<Void> callback)
      Delete a rule.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • deleteAlertingRuleAsync

      public Future<ApiResponse<Void>> deleteAlertingRuleAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<Void>> callback)
      Delete a rule.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getAlertingAlertAsync

      public Future<CommonAlert> getAlertingAlertAsync(GetAlertingAlertRequest request, AsyncApiCallback<CommonAlert> callback)
      Get an alert
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getAlertingAlertAsync

      public Future<ApiResponse<CommonAlert>> getAlertingAlertAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<CommonAlert>> callback)
      Get an alert
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getAlertingAlertsActiveAsync

      public Future<ActiveAlertCount> getAlertingAlertsActiveAsync(GetAlertingAlertsActiveRequest request, AsyncApiCallback<ActiveAlertCount> callback)
      Deprecated.
      Gets active alert count for a user Apps should migrate to use POST /api/v2/alerting/alerts/query with the queryType set to 'Count' and alertStatus to 'Active' in the request body.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getAlertingAlertsActiveAsync

      public Future<ApiResponse<ActiveAlertCount>> getAlertingAlertsActiveAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<ActiveAlertCount>> callback)
      Deprecated.
      Gets active alert count for a user Apps should migrate to use POST /api/v2/alerting/alerts/query with the queryType set to 'Count' and alertStatus to 'Active' in the request body.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getAlertingInteractionstatsAlertAsync

      public Future<InteractionStatsAlert> getAlertingInteractionstatsAlertAsync(GetAlertingInteractionstatsAlertRequest request, AsyncApiCallback<InteractionStatsAlert> callback)
      Deprecated.
      Get an interaction stats alert Apps should migrate to use GET /api/v2/alerting/alerts/{alertId}.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getAlertingInteractionstatsAlertAsync

      public Future<ApiResponse<InteractionStatsAlert>> getAlertingInteractionstatsAlertAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<InteractionStatsAlert>> callback)
      Deprecated.
      Get an interaction stats alert Apps should migrate to use GET /api/v2/alerting/alerts/{alertId}.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getAlertingInteractionstatsAlertsAsync

      Deprecated.
      Get interaction stats alert list Apps should migrate to use POST /api/v2/alerting/alerts/query.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getAlertingInteractionstatsAlertsAsync

      public Future<ApiResponse<InteractionStatsAlertContainer>> getAlertingInteractionstatsAlertsAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<InteractionStatsAlertContainer>> callback)
      Deprecated.
      Get interaction stats alert list Apps should migrate to use POST /api/v2/alerting/alerts/query.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getAlertingInteractionstatsAlertsUnreadAsync

      public Future<UnreadMetric> getAlertingInteractionstatsAlertsUnreadAsync(GetAlertingInteractionstatsAlertsUnreadRequest request, AsyncApiCallback<UnreadMetric> callback)
      Deprecated.
      Gets user unread count of interaction stats alerts Apps should migrate to use POST /api/v2/alerting/alerts/query with the queryType set to 'Count' and viewStatus to 'Unread' in the request body.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getAlertingInteractionstatsAlertsUnreadAsync

      public Future<ApiResponse<UnreadMetric>> getAlertingInteractionstatsAlertsUnreadAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<UnreadMetric>> callback)
      Deprecated.
      Gets user unread count of interaction stats alerts Apps should migrate to use POST /api/v2/alerting/alerts/query with the queryType set to 'Count' and viewStatus to 'Unread' in the request body.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getAlertingInteractionstatsRuleAsync

      public Future<InteractionStatsRule> getAlertingInteractionstatsRuleAsync(GetAlertingInteractionstatsRuleRequest request, AsyncApiCallback<InteractionStatsRule> callback)
      Deprecated.
      Get an interaction stats rule Apps should migrate to use GET /api/v2/alerting/rules/{ruleId}.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getAlertingInteractionstatsRuleAsync

      public Future<ApiResponse<InteractionStatsRule>> getAlertingInteractionstatsRuleAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<InteractionStatsRule>> callback)
      Deprecated.
      Get an interaction stats rule Apps should migrate to use GET /api/v2/alerting/rules/{ruleId}.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getAlertingInteractionstatsRulesAsync

      Deprecated.
      Get an interaction stats rule list Apps should migrate to use POST /api/v2/alerting/rules/query.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getAlertingInteractionstatsRulesAsync

      public Future<ApiResponse<InteractionStatsRuleContainer>> getAlertingInteractionstatsRulesAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<InteractionStatsRuleContainer>> callback)
      Deprecated.
      Get an interaction stats rule list Apps should migrate to use POST /api/v2/alerting/rules/query.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getAlertingRuleAsync

      public Future<CommonRule> getAlertingRuleAsync(GetAlertingRuleRequest request, AsyncApiCallback<CommonRule> callback)
      Get a rule.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getAlertingRuleAsync

      public Future<ApiResponse<CommonRule>> getAlertingRuleAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<CommonRule>> callback)
      Get a rule.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • patchAlertingAlertAsync

      public Future<CommonAlert> patchAlertingAlertAsync(PatchAlertingAlertRequest request, AsyncApiCallback<CommonAlert> callback)
      Allows an entity to mute/snooze an alert or update the unread status of the alert. Snoozing an alert temporarily stop it from resending notifications to individualsas well as other services within Genesys Cloud for a given period. Muting an alert will only block the notifications to individuals.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • patchAlertingAlertAsync

      public Future<ApiResponse<CommonAlert>> patchAlertingAlertAsync(ApiRequest<AlertRequest> request, AsyncApiCallback<ApiResponse<CommonAlert>> callback)
      Allows an entity to mute/snooze an alert or update the unread status of the alert. Snoozing an alert temporarily stop it from resending notifications to individualsas well as other services within Genesys Cloud for a given period. Muting an alert will only block the notifications to individuals.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • patchAlertingAlertsBulkAsync

      public Future<BulkResponse> patchAlertingAlertsBulkAsync(PatchAlertingAlertsBulkRequest request, AsyncApiCallback<BulkResponse> callback)
      Bulk alert updates
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • patchAlertingAlertsBulkAsync

      public Future<ApiResponse<BulkResponse>> patchAlertingAlertsBulkAsync(ApiRequest<CommonAlertBulkUpdateRequest> request, AsyncApiCallback<ApiResponse<BulkResponse>> callback)
      Bulk alert updates
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • patchAlertingRulesBulkAsync

      public Future<BulkResponse> patchAlertingRulesBulkAsync(PatchAlertingRulesBulkRequest request, AsyncApiCallback<BulkResponse> callback)
      Bulk update of notification lists
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • patchAlertingRulesBulkAsync

      Bulk update of notification lists
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • postAlertingAlertsQueryAsync

      public Future<AlertListing> postAlertingAlertsQueryAsync(PostAlertingAlertsQueryRequest request, AsyncApiCallback<AlertListing> callback)
      Gets a paged list of alerts. The max page size is 50
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • postAlertingAlertsQueryAsync

      public Future<ApiResponse<AlertListing>> postAlertingAlertsQueryAsync(ApiRequest<GetAlertQuery> request, AsyncApiCallback<ApiResponse<AlertListing>> callback)
      Gets a paged list of alerts. The max page size is 50
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • postAlertingInteractionstatsRulesAsync

      public Future<InteractionStatsRule> postAlertingInteractionstatsRulesAsync(PostAlertingInteractionstatsRulesRequest request, AsyncApiCallback<InteractionStatsRule> callback)
      Deprecated.
      Create an interaction stats rule Apps should migrate to use POST /api/v2/alerting/rules.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • postAlertingInteractionstatsRulesAsync

      public Future<ApiResponse<InteractionStatsRule>> postAlertingInteractionstatsRulesAsync(ApiRequest<InteractionStatsRule> request, AsyncApiCallback<ApiResponse<InteractionStatsRule>> callback)
      Deprecated.
      Create an interaction stats rule Apps should migrate to use POST /api/v2/alerting/rules.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • postAlertingRulesAsync

      public Future<CommonRule> postAlertingRulesAsync(PostAlertingRulesRequest request, AsyncApiCallback<CommonRule> callback)
      Create a Rule.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • postAlertingRulesAsync

      public Future<ApiResponse<CommonRule>> postAlertingRulesAsync(ApiRequest<CommonRule> request, AsyncApiCallback<ApiResponse<CommonRule>> callback)
      Create a Rule.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • postAlertingRulesBulkRemoveAsync

      public Future<BulkResponse> postAlertingRulesBulkRemoveAsync(PostAlertingRulesBulkRemoveRequest request, AsyncApiCallback<BulkResponse> callback)
      Bulk remove rules
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • postAlertingRulesBulkRemoveAsync

      public Future<ApiResponse<BulkResponse>> postAlertingRulesBulkRemoveAsync(ApiRequest<CommonRuleBulkDeleteRequest> request, AsyncApiCallback<ApiResponse<BulkResponse>> callback)
      Bulk remove rules
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • postAlertingRulesQueryAsync

      public Future<CommonRuleContainer> postAlertingRulesQueryAsync(PostAlertingRulesQueryRequest request, AsyncApiCallback<CommonRuleContainer> callback)
      Get a paged list of rules. The max size of the page is 50 items.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • postAlertingRulesQueryAsync

      public Future<ApiResponse<CommonRuleContainer>> postAlertingRulesQueryAsync(ApiRequest<GetRulesQuery> request, AsyncApiCallback<ApiResponse<CommonRuleContainer>> callback)
      Get a paged list of rules. The max size of the page is 50 items.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • putAlertingAlertAsync

      public Future<UnreadStatus> putAlertingAlertAsync(PutAlertingAlertRequest request, AsyncApiCallback<UnreadStatus> callback)
      Update an alert read status
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • putAlertingAlertAsync

      Update an alert read status
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • putAlertingInteractionstatsAlertAsync

      public Future<UnreadStatus> putAlertingInteractionstatsAlertAsync(PutAlertingInteractionstatsAlertRequest request, AsyncApiCallback<UnreadStatus> callback)
      Deprecated.
      Update an interaction stats alert read status Apps should migrate to use PUT /api/v2/alerting/alerts/{alertId}.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • putAlertingInteractionstatsAlertAsync

      public Future<ApiResponse<UnreadStatus>> putAlertingInteractionstatsAlertAsync(ApiRequest<UnreadStatus> request, AsyncApiCallback<ApiResponse<UnreadStatus>> callback)
      Deprecated.
      Update an interaction stats alert read status Apps should migrate to use PUT /api/v2/alerting/alerts/{alertId}.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • putAlertingInteractionstatsRuleAsync

      public Future<InteractionStatsRule> putAlertingInteractionstatsRuleAsync(PutAlertingInteractionstatsRuleRequest request, AsyncApiCallback<InteractionStatsRule> callback)
      Deprecated.
      Update an interaction stats rule Apps should migrate to use PUT /api/v2/alerting/rules/{ruleId}.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • putAlertingInteractionstatsRuleAsync

      public Future<ApiResponse<InteractionStatsRule>> putAlertingInteractionstatsRuleAsync(ApiRequest<InteractionStatsRule> request, AsyncApiCallback<ApiResponse<InteractionStatsRule>> callback)
      Deprecated.
      Update an interaction stats rule Apps should migrate to use PUT /api/v2/alerting/rules/{ruleId}.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • putAlertingRuleAsync

      public Future<CommonRule> putAlertingRuleAsync(PutAlertingRuleRequest request, AsyncApiCallback<CommonRule> callback)
      Update a rule
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • putAlertingRuleAsync

      Update a rule
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed