purecloud 0.28.0 → 0.29.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config-ruby.json +1 -1
- data/lib/purecloud.rb +119 -110
- data/lib/purecloud/api/alerting_api.rb +609 -0
- data/lib/purecloud/api/analytics_api.rb +0 -618
- data/lib/purecloud/api/authorization_api.rb +32 -26
- data/lib/purecloud/api/callbacks_api.rb +5 -5
- data/lib/purecloud/api/calls_api.rb +5 -5
- data/lib/purecloud/api/chats_api.rb +5 -5
- data/lib/purecloud/api/configuration_api.rb +325 -4514
- data/lib/purecloud/api/conversations_api.rb +30 -157
- data/lib/purecloud/api/emails_api.rb +5 -5
- data/lib/purecloud/api/groups_api.rb +120 -0
- data/lib/purecloud/api/integrations_api.rb +6 -0
- data/lib/purecloud/api/integrations_workforce_management_api.rb +73 -0
- data/lib/purecloud/api/languages_api.rb +181 -0
- data/lib/purecloud/api/organization_api.rb +243 -0
- data/lib/purecloud/api/outbound_api.rb +13 -380
- data/lib/purecloud/api/presence_api.rb +20 -222
- data/lib/purecloud/api/quality_api.rb +30 -0
- data/lib/purecloud/api/recording_api.rb +12 -0
- data/lib/purecloud/api/routing_api.rb +211 -8
- data/lib/purecloud/api/scripts_api.rb +8 -2
- data/lib/purecloud/api/search_api.rb +315 -13
- data/lib/purecloud/api/socials_api.rb +5 -5
- data/lib/purecloud/api/telephony_providers_edge_api.rb +4594 -698
- data/lib/purecloud/api/users_api.rb +303 -44
- data/lib/purecloud/api/utilities_api.rb +0 -58
- data/lib/purecloud/api/videos_api.rb +5 -5
- data/lib/purecloud/models/address.rb +49 -51
- data/lib/purecloud/models/address_listing.rb +12 -12
- data/lib/purecloud/models/agent_activity_entity_listing.rb +11 -11
- data/lib/purecloud/models/{analytics_segment.rb → analytics_conversation_segment.rb} +8 -8
- data/lib/purecloud/models/analytics_query_predicate.rb +1 -1
- data/lib/purecloud/models/analytics_session.rb +1 -1
- data/lib/purecloud/models/attribute_entity_listing.rb +11 -11
- data/lib/purecloud/models/{primary_user_presence_source.rb → audit_entity.rb} +12 -24
- data/lib/purecloud/models/{facet.rb → audit_facet.rb} +1 -1
- data/lib/purecloud/models/audit_filter.rb +178 -0
- data/lib/purecloud/models/audit_message.rb +2 -2
- data/lib/purecloud/models/{facet_group.rb → audit_user.rb} +18 -20
- data/lib/purecloud/models/automate_queue_member_entity_listing.rb +11 -11
- data/lib/purecloud/models/available_additional_service_listing.rb +11 -11
- data/lib/purecloud/models/available_topic_entity_listing.rb +11 -11
- data/lib/purecloud/models/{chat_search_item.rb → billing_address.rb} +37 -27
- data/lib/purecloud/models/calibration_entity_listing.rb +11 -11
- data/lib/purecloud/models/call.rb +16 -4
- data/lib/purecloud/models/call_conversation.rb +1 -1
- data/lib/purecloud/models/{chat_search_listing.rb → call_conversation_entity_listing.rb} +13 -13
- data/lib/purecloud/models/{call_participant.rb → call_media_participant.rb} +1 -1
- data/lib/purecloud/models/callable_time.rb +1 -1
- data/lib/purecloud/models/callable_time_set_entity_listing.rb +11 -11
- data/lib/purecloud/models/callback_conversation.rb +1 -1
- data/lib/purecloud/models/callback_conversation_entity_listing.rb +238 -0
- data/lib/purecloud/models/{callback_participant.rb → callback_media_participant.rb} +1 -1
- data/lib/purecloud/models/campaign.rb +219 -17
- data/lib/purecloud/models/campaign_entity_listing.rb +11 -11
- data/lib/purecloud/models/campaign_sequence_entity_listing.rb +11 -11
- data/lib/purecloud/models/{facet_item.rb → campaign_time_slot.rb} +20 -20
- data/lib/purecloud/models/carrier_entity_listing.rb +11 -11
- data/lib/purecloud/models/certificate_authority_entity_listing.rb +11 -11
- data/lib/purecloud/models/change.rb +1 -1
- data/lib/purecloud/models/channel_entity_listing.rb +11 -11
- data/lib/purecloud/models/channel_topic_entity_listing.rb +11 -11
- data/lib/purecloud/models/chat_conversation.rb +1 -1
- data/lib/purecloud/models/{rule_entity_listing.rb → chat_conversation_entity_listing.rb} +13 -13
- data/lib/purecloud/models/{chat_participant.rb → chat_media_participant.rb} +1 -1
- data/lib/purecloud/models/command_status_entity_listing.rb +11 -11
- data/lib/purecloud/models/common_audit_request.rb +2 -2
- data/lib/purecloud/models/{template.rb → composer_template.rb} +2 -2
- data/lib/purecloud/models/consumed_resources_entity_listing.rb +11 -11
- data/lib/purecloud/models/consuming_resources_entity_listing.rb +11 -11
- data/lib/purecloud/models/{client_transform_model.rb → contact_address.rb} +42 -36
- data/lib/purecloud/models/contact_list.rb +111 -1
- data/lib/purecloud/models/contact_list_entity_listing.rb +11 -11
- data/lib/purecloud/models/contact_listing.rb +11 -11
- data/lib/purecloud/models/{dialer_disposition_call_command.rb → contact_phone_number_column.rb} +20 -20
- data/lib/purecloud/models/{facet_filter_item.rb → content_filter_item.rb} +1 -1
- data/lib/purecloud/models/{transform_progress.rb → conversation_chat.rb} +91 -82
- data/lib/purecloud/models/conversation_entity_listing.rb +11 -11
- data/lib/purecloud/models/create_share_request.rb +2 -2
- data/lib/purecloud/models/create_share_request_member.rb +1 -1
- data/lib/purecloud/models/customer_account.rb +1 -1
- data/lib/purecloud/models/deleted_resource_consumer_entity_listing.rb +11 -11
- data/lib/purecloud/models/dependency_object_entity_listing.rb +11 -11
- data/lib/purecloud/models/dependency_type_entity_listing.rb +11 -11
- data/lib/purecloud/models/{action.rb → dialer_action.rb} +1 -1
- data/lib/purecloud/models/dialer_audit_request.rb +2 -2
- data/lib/purecloud/models/{transform_model.rb → dialer_contact.rb} +42 -28
- data/lib/purecloud/models/{rule.rb → dialer_rule.rb} +2 -2
- data/lib/purecloud/models/did.rb +1 -1
- data/lib/purecloud/models/did_entity_listing.rb +11 -11
- data/lib/purecloud/models/did_pool.rb +1 -1
- data/lib/purecloud/models/did_pool_entity_listing.rb +11 -11
- data/lib/purecloud/models/{metric_threshold.rb → disconnect_reason.rb} +29 -19
- data/lib/purecloud/models/dnc_list_entity_listing.rb +11 -11
- data/lib/purecloud/models/document_audit_entity_listing.rb +11 -11
- data/lib/purecloud/models/document_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_billing_period_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_certificate_authority.rb +1 -1
- data/lib/purecloud/models/domain_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +11 -11
- data/lib/purecloud/models/domain_entity_listing_query_result.rb +11 -11
- data/lib/purecloud/models/domain_invoice_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_logical_interface.rb +28 -2
- data/lib/purecloud/models/{dialer_place_call_command.rb → domain_role.rb} +16 -14
- data/lib/purecloud/models/domain_third_party_account_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_third_party_subscription_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_voice_rate_extended_response_item_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_voice_rate_international_response_item_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_voice_rate_response_item_entity_listing.rb +11 -11
- data/lib/purecloud/models/edge.rb +1 -1
- data/lib/purecloud/models/edge_entity_listing.rb +11 -11
- data/lib/purecloud/models/edge_group.rb +1 -1
- data/lib/purecloud/models/edge_group_entity_listing.rb +11 -11
- data/lib/purecloud/models/edge_line.rb +1 -1
- data/lib/purecloud/models/edge_line_entity_listing.rb +11 -11
- data/lib/purecloud/models/email_conversation.rb +1 -1
- data/lib/purecloud/models/{user_presence_entity_listing.rb → email_conversation_entity_listing.rb} +13 -13
- data/lib/purecloud/models/{email_participant.rb → email_media_participant.rb} +1 -1
- data/lib/purecloud/models/email_message.rb +56 -26
- data/lib/purecloud/models/email_message_listing.rb +11 -11
- data/lib/purecloud/models/encryption_key_entity_listing.rb +11 -11
- data/lib/purecloud/models/endpoint.rb +2 -2
- data/lib/purecloud/models/endpoint_entity_listing.rb +11 -11
- data/lib/purecloud/models/entity.rb +20 -10
- data/lib/purecloud/models/evaluation_entity_listing.rb +11 -11
- data/lib/purecloud/models/evaluation_form_entity_listing.rb +11 -11
- data/lib/purecloud/models/evaluator_activity_entity_listing.rb +11 -11
- data/lib/purecloud/models/extension.rb +1 -1
- data/lib/purecloud/models/extension_entity_listing.rb +11 -11
- data/lib/purecloud/models/extension_pool.rb +1 -1
- data/lib/purecloud/models/extension_pool_entity_listing.rb +11 -11
- data/lib/purecloud/models/external_contact.rb +1 -1
- data/lib/purecloud/models/external_organization.rb +1 -1
- data/lib/purecloud/models/external_organization_listing.rb +11 -11
- data/lib/purecloud/models/fax_document_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_body.rb +1 -1
- data/lib/purecloud/models/flow_config_meta_data_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_history_result_item_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_search_request.rb +222 -0
- data/lib/purecloud/models/flow_version_config_meta_data_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_version_entity_listing.rb +11 -11
- data/lib/purecloud/models/group.rb +42 -36
- data/lib/purecloud/models/group_entity_listing.rb +11 -11
- data/lib/purecloud/models/groups_search_response.rb +230 -0
- data/lib/purecloud/models/hardware_rate_listing.rb +11 -11
- data/lib/purecloud/models/health_check_info.rb +1 -31
- data/lib/purecloud/models/inbound_domain_entity_listing.rb +11 -11
- data/lib/purecloud/models/inbound_route_entity_listing.rb +11 -11
- data/lib/purecloud/models/integration_type_entity_listing.rb +11 -11
- data/lib/purecloud/models/interaction_stats_alert.rb +373 -0
- data/lib/purecloud/models/interaction_stats_alert_container.rb +238 -0
- data/lib/purecloud/models/{alert.rb → interaction_stats_rule.rb} +111 -80
- data/lib/purecloud/models/interaction_stats_rule_container.rb +238 -0
- data/lib/purecloud/models/ivr.rb +1 -1
- data/lib/purecloud/models/ivr_entity_listing.rb +11 -11
- data/lib/purecloud/models/json_node.rb +395 -0
- data/lib/purecloud/models/json_node_search_response.rb +228 -0
- data/lib/purecloud/models/language_entity_listing.rb +11 -11
- data/lib/purecloud/models/library_entity_listing.rb +11 -11
- data/lib/purecloud/models/line.rb +2 -2
- data/lib/purecloud/models/line_base.rb +1 -1
- data/lib/purecloud/models/line_base_entity_listing.rb +11 -11
- data/lib/purecloud/models/line_entity_listing.rb +11 -11
- data/lib/purecloud/models/{body_1.rb → line_properties.rb} +1 -1
- data/lib/purecloud/models/linked_entity_listing_flow_details.rb +11 -11
- data/lib/purecloud/models/linked_entity_listing_work_item_search_details.rb +11 -11
- data/lib/purecloud/models/location_entity_listing.rb +11 -11
- data/lib/purecloud/models/logical_interface_entity_listing.rb +11 -11
- data/lib/purecloud/models/media_participant_request.rb +232 -0
- data/lib/purecloud/models/{inline_response_200.rb → member_entity.rb} +13 -3
- data/lib/purecloud/models/note_listing.rb +11 -11
- data/lib/purecloud/models/number_plan.rb +1 -1
- data/lib/purecloud/models/o_auth_client.rb +1 -1
- data/lib/purecloud/models/o_auth_client_entity_listing.rb +11 -11
- data/lib/purecloud/models/o_auth_provider_entity_listing.rb +11 -11
- data/lib/purecloud/models/organization.rb +2 -22
- data/lib/purecloud/models/organization_presence_entity_listing.rb +11 -11
- data/lib/purecloud/models/organization_role_entity_listing.rb +11 -11
- data/lib/purecloud/models/orphan_recording_listing.rb +11 -11
- data/lib/purecloud/models/outbound_route.rb +1 -1
- data/lib/purecloud/models/outbound_route_entity_listing.rb +11 -11
- data/lib/purecloud/models/page.rb +2 -2
- data/lib/purecloud/models/participant.rb +1 -1
- data/lib/purecloud/models/participant_request.rb +7 -0
- data/lib/purecloud/models/payment_method_listing.rb +11 -11
- data/lib/purecloud/models/permission_collection_entity_listing.rb +11 -11
- data/lib/purecloud/models/phone.rb +2 -2
- data/lib/purecloud/models/phone_base.rb +1 -1
- data/lib/purecloud/models/phone_base_entity_listing.rb +11 -11
- data/lib/purecloud/models/phone_entity_listing.rb +11 -11
- data/lib/purecloud/models/phone_meta_base_entity_listing.rb +11 -11
- data/lib/purecloud/models/physical_interface_entity_listing.rb +11 -11
- data/lib/purecloud/models/policy_entity_listing.rb +11 -11
- data/lib/purecloud/models/prompt_asset.rb +25 -1
- data/lib/purecloud/models/prompt_asset_entity_listing.rb +11 -11
- data/lib/purecloud/models/prompt_entity_listing.rb +11 -11
- data/lib/purecloud/models/quality_audit_page.rb +11 -11
- data/lib/purecloud/models/query_request.rb +1 -1
- data/lib/purecloud/models/queue.rb +1 -1
- data/lib/purecloud/models/queue_entity_listing.rb +11 -11
- data/lib/purecloud/models/queues_entity_listing.rb +11 -11
- data/lib/purecloud/models/quote_charge.rb +1 -1
- data/lib/purecloud/models/quote_listing.rb +11 -11
- data/lib/purecloud/models/recording.rb +13 -2
- data/lib/purecloud/models/{preview.rb → recording_email_message.rb} +72 -57
- data/lib/purecloud/models/relationship_listing.rb +11 -11
- data/lib/purecloud/models/report_meta_data_entity_listing.rb +11 -11
- data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +11 -11
- data/lib/purecloud/models/report_schedule.rb +1 -1
- data/lib/purecloud/models/report_schedule_entity_listing.rb +11 -11
- data/lib/purecloud/models/resource_permission_policy.rb +1 -11
- data/lib/purecloud/models/response.rb +84 -14
- data/lib/purecloud/models/response_entity_list.rb +11 -11
- data/lib/purecloud/models/response_entity_listing.rb +11 -11
- data/lib/purecloud/models/{filter.rb → response_filter.rb} +1 -1
- data/lib/purecloud/models/response_query_request.rb +1 -1
- data/lib/purecloud/models/response_set_entity_listing.rb +11 -11
- data/lib/purecloud/models/rule_set.rb +1 -1
- data/lib/purecloud/models/rule_set_entity_listing.rb +11 -11
- data/lib/purecloud/models/schedule.rb +1 -1
- data/lib/purecloud/models/schedule_entity_listing.rb +11 -11
- data/lib/purecloud/models/schedule_group.rb +1 -1
- data/lib/purecloud/models/schedule_group_entity_listing.rb +11 -11
- data/lib/purecloud/models/schema_category_entity_listing.rb +11 -11
- data/lib/purecloud/models/schema_reference_entity_listing.rb +11 -11
- data/lib/purecloud/models/script_entity_listing.rb +11 -11
- data/lib/purecloud/models/{occurrence.rb → search_aggregation.rb} +19 -9
- data/lib/purecloud/models/{conversation_historical_query_request_filter.rb → search_criteria.rb} +83 -24
- data/lib/purecloud/models/search_request.rb +73 -50
- data/lib/purecloud/models/security_profile_entity_listing.rb +11 -11
- data/lib/purecloud/models/service_entity_listing.rb +11 -11
- data/lib/purecloud/models/share_entity_listing.rb +11 -11
- data/lib/purecloud/models/{group_images.rb → shared_entity.rb} +8 -10
- data/lib/purecloud/models/site.rb +1 -1
- data/lib/purecloud/models/site_entity_listing.rb +11 -11
- data/lib/purecloud/models/skill_entity_listing.rb +11 -11
- data/lib/purecloud/models/social_conversation.rb +1 -1
- data/lib/purecloud/models/social_conversation_entity_listing.rb +238 -0
- data/lib/purecloud/models/{social_participant.rb → social_media_participant.rb} +1 -1
- data/lib/purecloud/models/spreadsheet_transform_entity_listing.rb +11 -11
- data/lib/purecloud/models/station.rb +11 -1
- data/lib/purecloud/models/station_entity_listing.rb +11 -11
- data/lib/purecloud/models/{facets.rb → subscriber_response.rb} +16 -16
- data/lib/purecloud/models/system_prompt_asset.rb +25 -1
- data/lib/purecloud/models/system_prompt_asset_entity_listing.rb +11 -11
- data/lib/purecloud/models/system_prompt_entity_listing.rb +11 -11
- data/lib/purecloud/models/tag_value_entity_listing.rb +11 -11
- data/lib/purecloud/models/template_entity_listing.rb +12 -12
- data/lib/purecloud/models/text_table_transform_entity_listing.rb +11 -11
- data/lib/purecloud/models/time_slot.rb +3 -0
- data/lib/purecloud/models/time_zone_entity_listing.rb +11 -11
- data/lib/purecloud/models/trunk_base.rb +2 -2
- data/lib/purecloud/models/trunk_metabase_entity_listing.rb +11 -11
- data/lib/purecloud/models/unread_metric.rb +1 -0
- data/lib/purecloud/models/unread_status.rb +149 -0
- data/lib/purecloud/models/user.rb +7 -7
- data/lib/purecloud/models/user_action_category_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_action_metadata_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_authorization.rb +7 -37
- data/lib/purecloud/models/user_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_me.rb +375 -0
- data/lib/purecloud/models/user_presence.rb +14 -32
- data/lib/purecloud/models/user_queue.rb +1 -1
- data/lib/purecloud/models/user_queue_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_recording_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_skill_entity_listing.rb +11 -11
- data/lib/purecloud/models/users_entity_listing.rb +11 -11
- data/lib/purecloud/models/users_search_response.rb +230 -0
- data/lib/purecloud/models/validate_address_response.rb +1 -1
- data/lib/purecloud/models/video_conversation.rb +1 -1
- data/lib/purecloud/models/{alert_entity_listing.rb → video_conversation_entity_listing.rb} +13 -13
- data/lib/purecloud/models/{video_participant.rb → video_media_participant.rb} +1 -1
- data/lib/purecloud/models/voice_rate_international_entity_listing.rb +11 -11
- data/lib/purecloud/models/voice_xml_operation_entity_listing.rb +11 -11
- data/lib/purecloud/models/voicemail_message_entity_listing.rb +11 -11
- data/lib/purecloud/models/workspace_entity_listing.rb +11 -11
- data/lib/purecloud/models/workspace_member_entity_listing.rb +11 -11
- data/lib/purecloud/models/wrapup_code_entity_listing.rb +11 -11
- data/lib/purecloud/version.rb +1 -1
- data/newVersion.md +1 -1
- data/swagger.json +1 -1
- data/version.json +1 -1
- metadata +54 -45
- data/lib/purecloud/api/architect_api.rb +0 -3285
- data/lib/purecloud/models/chat_search_request.rb +0 -244
- data/lib/purecloud/models/conversation_historical_query_request_body.rb +0 -185
- data/lib/purecloud/models/conversation_query_response.rb +0 -366
- data/lib/purecloud/models/dialer_call.rb +0 -156
- data/lib/purecloud/models/penetration_rate.rb +0 -176
- data/lib/purecloud/models/penetration_rate_id.rb +0 -156
- data/lib/purecloud/models/progress_model.rb +0 -169
@@ -0,0 +1,609 @@
|
|
1
|
+
require "uri"
|
2
|
+
|
3
|
+
module PureCloud
|
4
|
+
class AlertingApi
|
5
|
+
attr_accessor :api_client
|
6
|
+
|
7
|
+
def initialize(api_client = ApiClient.default)
|
8
|
+
@api_client = api_client
|
9
|
+
end
|
10
|
+
|
11
|
+
# Get interaction stats alert list.
|
12
|
+
#
|
13
|
+
# @param [Hash] opts the optional parameters
|
14
|
+
# @return [InteractionStatsAlertContainer]
|
15
|
+
def get_interactionstats_alerts(opts = {})
|
16
|
+
data, status_code, headers = get_interactionstats_alerts_with_http_info(opts)
|
17
|
+
return data
|
18
|
+
end
|
19
|
+
|
20
|
+
# Get interaction stats alert list.
|
21
|
+
#
|
22
|
+
# @param [Hash] opts the optional parameters
|
23
|
+
# @return [Array<(InteractionStatsAlertContainer, Fixnum, Hash)>] InteractionStatsAlertContainer data, response status code and response headers
|
24
|
+
def get_interactionstats_alerts_with_http_info(opts = {})
|
25
|
+
if @api_client.config.debugging
|
26
|
+
@api_client.config.logger.debug "Calling API: AlertingApi#get_interactionstats_alerts ..."
|
27
|
+
end
|
28
|
+
|
29
|
+
# resource path
|
30
|
+
path = "/api/v2/alerting/interactionstats/alerts".sub('{format}','json')
|
31
|
+
|
32
|
+
# query parameters
|
33
|
+
query_params = {}
|
34
|
+
|
35
|
+
# header parameters
|
36
|
+
header_params = {}
|
37
|
+
|
38
|
+
# HTTP header 'Accept' (if needed)
|
39
|
+
_header_accept = ['application/json']
|
40
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
41
|
+
|
42
|
+
# HTTP header 'Content-Type'
|
43
|
+
_header_content_type = ['application/json']
|
44
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
45
|
+
|
46
|
+
# form parameters
|
47
|
+
form_params = {}
|
48
|
+
|
49
|
+
# http body (model)
|
50
|
+
post_body = nil
|
51
|
+
|
52
|
+
|
53
|
+
auth_names = ['PureCloud Auth']
|
54
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
55
|
+
:header_params => header_params,
|
56
|
+
:query_params => query_params,
|
57
|
+
:form_params => form_params,
|
58
|
+
:body => post_body,
|
59
|
+
:auth_names => auth_names,
|
60
|
+
:return_type => 'InteractionStatsAlertContainer')
|
61
|
+
if @api_client.config.debugging
|
62
|
+
@api_client.config.logger.debug "API called: AlertingApi#get_interactionstats_alerts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
63
|
+
end
|
64
|
+
return data, status_code, headers
|
65
|
+
end
|
66
|
+
|
67
|
+
# Gets user unread count of interaction stats alerts.
|
68
|
+
#
|
69
|
+
# @param [Hash] opts the optional parameters
|
70
|
+
# @return [UnreadMetric]
|
71
|
+
def get_interactionstats_alerts_unread(opts = {})
|
72
|
+
data, status_code, headers = get_interactionstats_alerts_unread_with_http_info(opts)
|
73
|
+
return data
|
74
|
+
end
|
75
|
+
|
76
|
+
# Gets user unread count of interaction stats alerts.
|
77
|
+
#
|
78
|
+
# @param [Hash] opts the optional parameters
|
79
|
+
# @return [Array<(UnreadMetric, Fixnum, Hash)>] UnreadMetric data, response status code and response headers
|
80
|
+
def get_interactionstats_alerts_unread_with_http_info(opts = {})
|
81
|
+
if @api_client.config.debugging
|
82
|
+
@api_client.config.logger.debug "Calling API: AlertingApi#get_interactionstats_alerts_unread ..."
|
83
|
+
end
|
84
|
+
|
85
|
+
# resource path
|
86
|
+
path = "/api/v2/alerting/interactionstats/alerts/unread".sub('{format}','json')
|
87
|
+
|
88
|
+
# query parameters
|
89
|
+
query_params = {}
|
90
|
+
|
91
|
+
# header parameters
|
92
|
+
header_params = {}
|
93
|
+
|
94
|
+
# HTTP header 'Accept' (if needed)
|
95
|
+
_header_accept = ['application/json']
|
96
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
97
|
+
|
98
|
+
# HTTP header 'Content-Type'
|
99
|
+
_header_content_type = ['application/json']
|
100
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
101
|
+
|
102
|
+
# form parameters
|
103
|
+
form_params = {}
|
104
|
+
|
105
|
+
# http body (model)
|
106
|
+
post_body = nil
|
107
|
+
|
108
|
+
|
109
|
+
auth_names = ['PureCloud Auth']
|
110
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
111
|
+
:header_params => header_params,
|
112
|
+
:query_params => query_params,
|
113
|
+
:form_params => form_params,
|
114
|
+
:body => post_body,
|
115
|
+
:auth_names => auth_names,
|
116
|
+
:return_type => 'UnreadMetric')
|
117
|
+
if @api_client.config.debugging
|
118
|
+
@api_client.config.logger.debug "API called: AlertingApi#get_interactionstats_alerts_unread\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
119
|
+
end
|
120
|
+
return data, status_code, headers
|
121
|
+
end
|
122
|
+
|
123
|
+
# Get an interaction stats alert
|
124
|
+
#
|
125
|
+
# @param alert_id Alert ID
|
126
|
+
# @param [Hash] opts the optional parameters
|
127
|
+
# @return [InteractionStatsAlert]
|
128
|
+
def get_interactionstats_alerts_alert_id(alert_id, opts = {})
|
129
|
+
data, status_code, headers = get_interactionstats_alerts_alert_id_with_http_info(alert_id, opts)
|
130
|
+
return data
|
131
|
+
end
|
132
|
+
|
133
|
+
# Get an interaction stats alert
|
134
|
+
#
|
135
|
+
# @param alert_id Alert ID
|
136
|
+
# @param [Hash] opts the optional parameters
|
137
|
+
# @return [Array<(InteractionStatsAlert, Fixnum, Hash)>] InteractionStatsAlert data, response status code and response headers
|
138
|
+
def get_interactionstats_alerts_alert_id_with_http_info(alert_id, opts = {})
|
139
|
+
if @api_client.config.debugging
|
140
|
+
@api_client.config.logger.debug "Calling API: AlertingApi#get_interactionstats_alerts_alert_id ..."
|
141
|
+
end
|
142
|
+
|
143
|
+
# verify the required parameter 'alert_id' is set
|
144
|
+
fail "Missing the required parameter 'alert_id' when calling get_interactionstats_alerts_alert_id" if alert_id.nil?
|
145
|
+
|
146
|
+
# resource path
|
147
|
+
path = "/api/v2/alerting/interactionstats/alerts/{alertId}".sub('{format}','json').sub('{' + 'alertId' + '}', alert_id.to_s)
|
148
|
+
|
149
|
+
# query parameters
|
150
|
+
query_params = {}
|
151
|
+
|
152
|
+
# header parameters
|
153
|
+
header_params = {}
|
154
|
+
|
155
|
+
# HTTP header 'Accept' (if needed)
|
156
|
+
_header_accept = ['application/json']
|
157
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
158
|
+
|
159
|
+
# HTTP header 'Content-Type'
|
160
|
+
_header_content_type = ['application/json']
|
161
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
162
|
+
|
163
|
+
# form parameters
|
164
|
+
form_params = {}
|
165
|
+
|
166
|
+
# http body (model)
|
167
|
+
post_body = nil
|
168
|
+
|
169
|
+
|
170
|
+
auth_names = ['PureCloud Auth']
|
171
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
172
|
+
:header_params => header_params,
|
173
|
+
:query_params => query_params,
|
174
|
+
:form_params => form_params,
|
175
|
+
:body => post_body,
|
176
|
+
:auth_names => auth_names,
|
177
|
+
:return_type => 'InteractionStatsAlert')
|
178
|
+
if @api_client.config.debugging
|
179
|
+
@api_client.config.logger.debug "API called: AlertingApi#get_interactionstats_alerts_alert_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
180
|
+
end
|
181
|
+
return data, status_code, headers
|
182
|
+
end
|
183
|
+
|
184
|
+
# Update an interaction stats alert read status
|
185
|
+
#
|
186
|
+
# @param alert_id Alert ID
|
187
|
+
# @param [Hash] opts the optional parameters
|
188
|
+
# @option opts [UnreadStatus] :body InteractionStatsAlert
|
189
|
+
# @return [UnreadStatus]
|
190
|
+
def put_interactionstats_alerts_alert_id(alert_id, opts = {})
|
191
|
+
data, status_code, headers = put_interactionstats_alerts_alert_id_with_http_info(alert_id, opts)
|
192
|
+
return data
|
193
|
+
end
|
194
|
+
|
195
|
+
# Update an interaction stats alert read status
|
196
|
+
#
|
197
|
+
# @param alert_id Alert ID
|
198
|
+
# @param [Hash] opts the optional parameters
|
199
|
+
# @option opts [UnreadStatus] :body InteractionStatsAlert
|
200
|
+
# @return [Array<(UnreadStatus, Fixnum, Hash)>] UnreadStatus data, response status code and response headers
|
201
|
+
def put_interactionstats_alerts_alert_id_with_http_info(alert_id, opts = {})
|
202
|
+
if @api_client.config.debugging
|
203
|
+
@api_client.config.logger.debug "Calling API: AlertingApi#put_interactionstats_alerts_alert_id ..."
|
204
|
+
end
|
205
|
+
|
206
|
+
# verify the required parameter 'alert_id' is set
|
207
|
+
fail "Missing the required parameter 'alert_id' when calling put_interactionstats_alerts_alert_id" if alert_id.nil?
|
208
|
+
|
209
|
+
# resource path
|
210
|
+
path = "/api/v2/alerting/interactionstats/alerts/{alertId}".sub('{format}','json').sub('{' + 'alertId' + '}', alert_id.to_s)
|
211
|
+
|
212
|
+
# query parameters
|
213
|
+
query_params = {}
|
214
|
+
|
215
|
+
# header parameters
|
216
|
+
header_params = {}
|
217
|
+
|
218
|
+
# HTTP header 'Accept' (if needed)
|
219
|
+
_header_accept = ['application/json']
|
220
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
221
|
+
|
222
|
+
# HTTP header 'Content-Type'
|
223
|
+
_header_content_type = ['application/json']
|
224
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
225
|
+
|
226
|
+
# form parameters
|
227
|
+
form_params = {}
|
228
|
+
|
229
|
+
# http body (model)
|
230
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
231
|
+
|
232
|
+
|
233
|
+
auth_names = ['PureCloud Auth']
|
234
|
+
data, status_code, headers = @api_client.call_api(:PUT, path,
|
235
|
+
:header_params => header_params,
|
236
|
+
:query_params => query_params,
|
237
|
+
:form_params => form_params,
|
238
|
+
:body => post_body,
|
239
|
+
:auth_names => auth_names,
|
240
|
+
:return_type => 'UnreadStatus')
|
241
|
+
if @api_client.config.debugging
|
242
|
+
@api_client.config.logger.debug "API called: AlertingApi#put_interactionstats_alerts_alert_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
243
|
+
end
|
244
|
+
return data, status_code, headers
|
245
|
+
end
|
246
|
+
|
247
|
+
# Delete an interaction stats alert
|
248
|
+
#
|
249
|
+
# @param alert_id Alert ID
|
250
|
+
# @param [Hash] opts the optional parameters
|
251
|
+
# @return [nil]
|
252
|
+
def delete_interactionstats_alerts_alert_id(alert_id, opts = {})
|
253
|
+
delete_interactionstats_alerts_alert_id_with_http_info(alert_id, opts)
|
254
|
+
return nil
|
255
|
+
end
|
256
|
+
|
257
|
+
# Delete an interaction stats alert
|
258
|
+
#
|
259
|
+
# @param alert_id Alert ID
|
260
|
+
# @param [Hash] opts the optional parameters
|
261
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
262
|
+
def delete_interactionstats_alerts_alert_id_with_http_info(alert_id, opts = {})
|
263
|
+
if @api_client.config.debugging
|
264
|
+
@api_client.config.logger.debug "Calling API: AlertingApi#delete_interactionstats_alerts_alert_id ..."
|
265
|
+
end
|
266
|
+
|
267
|
+
# verify the required parameter 'alert_id' is set
|
268
|
+
fail "Missing the required parameter 'alert_id' when calling delete_interactionstats_alerts_alert_id" if alert_id.nil?
|
269
|
+
|
270
|
+
# resource path
|
271
|
+
path = "/api/v2/alerting/interactionstats/alerts/{alertId}".sub('{format}','json').sub('{' + 'alertId' + '}', alert_id.to_s)
|
272
|
+
|
273
|
+
# query parameters
|
274
|
+
query_params = {}
|
275
|
+
|
276
|
+
# header parameters
|
277
|
+
header_params = {}
|
278
|
+
|
279
|
+
# HTTP header 'Accept' (if needed)
|
280
|
+
_header_accept = ['application/json']
|
281
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
282
|
+
|
283
|
+
# HTTP header 'Content-Type'
|
284
|
+
_header_content_type = ['application/json']
|
285
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
286
|
+
|
287
|
+
# form parameters
|
288
|
+
form_params = {}
|
289
|
+
|
290
|
+
# http body (model)
|
291
|
+
post_body = nil
|
292
|
+
|
293
|
+
|
294
|
+
auth_names = ['PureCloud Auth']
|
295
|
+
data, status_code, headers = @api_client.call_api(:DELETE, path,
|
296
|
+
:header_params => header_params,
|
297
|
+
:query_params => query_params,
|
298
|
+
:form_params => form_params,
|
299
|
+
:body => post_body,
|
300
|
+
:auth_names => auth_names)
|
301
|
+
if @api_client.config.debugging
|
302
|
+
@api_client.config.logger.debug "API called: AlertingApi#delete_interactionstats_alerts_alert_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
303
|
+
end
|
304
|
+
return data, status_code, headers
|
305
|
+
end
|
306
|
+
|
307
|
+
# Get an interaction stats rule list.
|
308
|
+
#
|
309
|
+
# @param [Hash] opts the optional parameters
|
310
|
+
# @return [InteractionStatsRuleContainer]
|
311
|
+
def get_interactionstats_rules(opts = {})
|
312
|
+
data, status_code, headers = get_interactionstats_rules_with_http_info(opts)
|
313
|
+
return data
|
314
|
+
end
|
315
|
+
|
316
|
+
# Get an interaction stats rule list.
|
317
|
+
#
|
318
|
+
# @param [Hash] opts the optional parameters
|
319
|
+
# @return [Array<(InteractionStatsRuleContainer, Fixnum, Hash)>] InteractionStatsRuleContainer data, response status code and response headers
|
320
|
+
def get_interactionstats_rules_with_http_info(opts = {})
|
321
|
+
if @api_client.config.debugging
|
322
|
+
@api_client.config.logger.debug "Calling API: AlertingApi#get_interactionstats_rules ..."
|
323
|
+
end
|
324
|
+
|
325
|
+
# resource path
|
326
|
+
path = "/api/v2/alerting/interactionstats/rules".sub('{format}','json')
|
327
|
+
|
328
|
+
# query parameters
|
329
|
+
query_params = {}
|
330
|
+
|
331
|
+
# header parameters
|
332
|
+
header_params = {}
|
333
|
+
|
334
|
+
# HTTP header 'Accept' (if needed)
|
335
|
+
_header_accept = ['application/json']
|
336
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
337
|
+
|
338
|
+
# HTTP header 'Content-Type'
|
339
|
+
_header_content_type = ['application/json']
|
340
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
341
|
+
|
342
|
+
# form parameters
|
343
|
+
form_params = {}
|
344
|
+
|
345
|
+
# http body (model)
|
346
|
+
post_body = nil
|
347
|
+
|
348
|
+
|
349
|
+
auth_names = ['PureCloud Auth']
|
350
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
351
|
+
:header_params => header_params,
|
352
|
+
:query_params => query_params,
|
353
|
+
:form_params => form_params,
|
354
|
+
:body => post_body,
|
355
|
+
:auth_names => auth_names,
|
356
|
+
:return_type => 'InteractionStatsRuleContainer')
|
357
|
+
if @api_client.config.debugging
|
358
|
+
@api_client.config.logger.debug "API called: AlertingApi#get_interactionstats_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
359
|
+
end
|
360
|
+
return data, status_code, headers
|
361
|
+
end
|
362
|
+
|
363
|
+
# Create an interaction stats rule.
|
364
|
+
#
|
365
|
+
# @param [Hash] opts the optional parameters
|
366
|
+
# @option opts [InteractionStatsRule] :body AlertingRule
|
367
|
+
# @return [InteractionStatsRule]
|
368
|
+
def post_interactionstats_rules(opts = {})
|
369
|
+
data, status_code, headers = post_interactionstats_rules_with_http_info(opts)
|
370
|
+
return data
|
371
|
+
end
|
372
|
+
|
373
|
+
# Create an interaction stats rule.
|
374
|
+
#
|
375
|
+
# @param [Hash] opts the optional parameters
|
376
|
+
# @option opts [InteractionStatsRule] :body AlertingRule
|
377
|
+
# @return [Array<(InteractionStatsRule, Fixnum, Hash)>] InteractionStatsRule data, response status code and response headers
|
378
|
+
def post_interactionstats_rules_with_http_info(opts = {})
|
379
|
+
if @api_client.config.debugging
|
380
|
+
@api_client.config.logger.debug "Calling API: AlertingApi#post_interactionstats_rules ..."
|
381
|
+
end
|
382
|
+
|
383
|
+
# resource path
|
384
|
+
path = "/api/v2/alerting/interactionstats/rules".sub('{format}','json')
|
385
|
+
|
386
|
+
# query parameters
|
387
|
+
query_params = {}
|
388
|
+
|
389
|
+
# header parameters
|
390
|
+
header_params = {}
|
391
|
+
|
392
|
+
# HTTP header 'Accept' (if needed)
|
393
|
+
_header_accept = ['application/json']
|
394
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
395
|
+
|
396
|
+
# HTTP header 'Content-Type'
|
397
|
+
_header_content_type = ['application/json']
|
398
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
399
|
+
|
400
|
+
# form parameters
|
401
|
+
form_params = {}
|
402
|
+
|
403
|
+
# http body (model)
|
404
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
405
|
+
|
406
|
+
|
407
|
+
auth_names = ['PureCloud Auth']
|
408
|
+
data, status_code, headers = @api_client.call_api(:POST, path,
|
409
|
+
:header_params => header_params,
|
410
|
+
:query_params => query_params,
|
411
|
+
:form_params => form_params,
|
412
|
+
:body => post_body,
|
413
|
+
:auth_names => auth_names,
|
414
|
+
:return_type => 'InteractionStatsRule')
|
415
|
+
if @api_client.config.debugging
|
416
|
+
@api_client.config.logger.debug "API called: AlertingApi#post_interactionstats_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
417
|
+
end
|
418
|
+
return data, status_code, headers
|
419
|
+
end
|
420
|
+
|
421
|
+
# Get an interaction stats rule.
|
422
|
+
#
|
423
|
+
# @param rule_id Rule ID
|
424
|
+
# @param [Hash] opts the optional parameters
|
425
|
+
# @return [InteractionStatsRule]
|
426
|
+
def get_interactionstats_rules_rule_id(rule_id, opts = {})
|
427
|
+
data, status_code, headers = get_interactionstats_rules_rule_id_with_http_info(rule_id, opts)
|
428
|
+
return data
|
429
|
+
end
|
430
|
+
|
431
|
+
# Get an interaction stats rule.
|
432
|
+
#
|
433
|
+
# @param rule_id Rule ID
|
434
|
+
# @param [Hash] opts the optional parameters
|
435
|
+
# @return [Array<(InteractionStatsRule, Fixnum, Hash)>] InteractionStatsRule data, response status code and response headers
|
436
|
+
def get_interactionstats_rules_rule_id_with_http_info(rule_id, opts = {})
|
437
|
+
if @api_client.config.debugging
|
438
|
+
@api_client.config.logger.debug "Calling API: AlertingApi#get_interactionstats_rules_rule_id ..."
|
439
|
+
end
|
440
|
+
|
441
|
+
# verify the required parameter 'rule_id' is set
|
442
|
+
fail "Missing the required parameter 'rule_id' when calling get_interactionstats_rules_rule_id" if rule_id.nil?
|
443
|
+
|
444
|
+
# resource path
|
445
|
+
path = "/api/v2/alerting/interactionstats/rules/{ruleId}".sub('{format}','json').sub('{' + 'ruleId' + '}', rule_id.to_s)
|
446
|
+
|
447
|
+
# query parameters
|
448
|
+
query_params = {}
|
449
|
+
|
450
|
+
# header parameters
|
451
|
+
header_params = {}
|
452
|
+
|
453
|
+
# HTTP header 'Accept' (if needed)
|
454
|
+
_header_accept = ['application/json']
|
455
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
456
|
+
|
457
|
+
# HTTP header 'Content-Type'
|
458
|
+
_header_content_type = ['application/json']
|
459
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
460
|
+
|
461
|
+
# form parameters
|
462
|
+
form_params = {}
|
463
|
+
|
464
|
+
# http body (model)
|
465
|
+
post_body = nil
|
466
|
+
|
467
|
+
|
468
|
+
auth_names = ['PureCloud Auth']
|
469
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
470
|
+
:header_params => header_params,
|
471
|
+
:query_params => query_params,
|
472
|
+
:form_params => form_params,
|
473
|
+
:body => post_body,
|
474
|
+
:auth_names => auth_names,
|
475
|
+
:return_type => 'InteractionStatsRule')
|
476
|
+
if @api_client.config.debugging
|
477
|
+
@api_client.config.logger.debug "API called: AlertingApi#get_interactionstats_rules_rule_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
478
|
+
end
|
479
|
+
return data, status_code, headers
|
480
|
+
end
|
481
|
+
|
482
|
+
# Update an interaction stats rule
|
483
|
+
#
|
484
|
+
# @param rule_id Rule ID
|
485
|
+
# @param [Hash] opts the optional parameters
|
486
|
+
# @option opts [InteractionStatsRule] :body AlertingRule
|
487
|
+
# @return [InteractionStatsRule]
|
488
|
+
def put_interactionstats_rules_rule_id(rule_id, opts = {})
|
489
|
+
data, status_code, headers = put_interactionstats_rules_rule_id_with_http_info(rule_id, opts)
|
490
|
+
return data
|
491
|
+
end
|
492
|
+
|
493
|
+
# Update an interaction stats rule
|
494
|
+
#
|
495
|
+
# @param rule_id Rule ID
|
496
|
+
# @param [Hash] opts the optional parameters
|
497
|
+
# @option opts [InteractionStatsRule] :body AlertingRule
|
498
|
+
# @return [Array<(InteractionStatsRule, Fixnum, Hash)>] InteractionStatsRule data, response status code and response headers
|
499
|
+
def put_interactionstats_rules_rule_id_with_http_info(rule_id, opts = {})
|
500
|
+
if @api_client.config.debugging
|
501
|
+
@api_client.config.logger.debug "Calling API: AlertingApi#put_interactionstats_rules_rule_id ..."
|
502
|
+
end
|
503
|
+
|
504
|
+
# verify the required parameter 'rule_id' is set
|
505
|
+
fail "Missing the required parameter 'rule_id' when calling put_interactionstats_rules_rule_id" if rule_id.nil?
|
506
|
+
|
507
|
+
# resource path
|
508
|
+
path = "/api/v2/alerting/interactionstats/rules/{ruleId}".sub('{format}','json').sub('{' + 'ruleId' + '}', rule_id.to_s)
|
509
|
+
|
510
|
+
# query parameters
|
511
|
+
query_params = {}
|
512
|
+
|
513
|
+
# header parameters
|
514
|
+
header_params = {}
|
515
|
+
|
516
|
+
# HTTP header 'Accept' (if needed)
|
517
|
+
_header_accept = ['application/json']
|
518
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
519
|
+
|
520
|
+
# HTTP header 'Content-Type'
|
521
|
+
_header_content_type = ['application/json']
|
522
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
523
|
+
|
524
|
+
# form parameters
|
525
|
+
form_params = {}
|
526
|
+
|
527
|
+
# http body (model)
|
528
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
529
|
+
|
530
|
+
|
531
|
+
auth_names = ['PureCloud Auth']
|
532
|
+
data, status_code, headers = @api_client.call_api(:PUT, path,
|
533
|
+
:header_params => header_params,
|
534
|
+
:query_params => query_params,
|
535
|
+
:form_params => form_params,
|
536
|
+
:body => post_body,
|
537
|
+
:auth_names => auth_names,
|
538
|
+
:return_type => 'InteractionStatsRule')
|
539
|
+
if @api_client.config.debugging
|
540
|
+
@api_client.config.logger.debug "API called: AlertingApi#put_interactionstats_rules_rule_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
541
|
+
end
|
542
|
+
return data, status_code, headers
|
543
|
+
end
|
544
|
+
|
545
|
+
# Delete an interaction stats rule.
|
546
|
+
#
|
547
|
+
# @param rule_id Rule ID
|
548
|
+
# @param [Hash] opts the optional parameters
|
549
|
+
# @return [nil]
|
550
|
+
def delete_interactionstats_rules_rule_id(rule_id, opts = {})
|
551
|
+
delete_interactionstats_rules_rule_id_with_http_info(rule_id, opts)
|
552
|
+
return nil
|
553
|
+
end
|
554
|
+
|
555
|
+
# Delete an interaction stats rule.
|
556
|
+
#
|
557
|
+
# @param rule_id Rule ID
|
558
|
+
# @param [Hash] opts the optional parameters
|
559
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
560
|
+
def delete_interactionstats_rules_rule_id_with_http_info(rule_id, opts = {})
|
561
|
+
if @api_client.config.debugging
|
562
|
+
@api_client.config.logger.debug "Calling API: AlertingApi#delete_interactionstats_rules_rule_id ..."
|
563
|
+
end
|
564
|
+
|
565
|
+
# verify the required parameter 'rule_id' is set
|
566
|
+
fail "Missing the required parameter 'rule_id' when calling delete_interactionstats_rules_rule_id" if rule_id.nil?
|
567
|
+
|
568
|
+
# resource path
|
569
|
+
path = "/api/v2/alerting/interactionstats/rules/{ruleId}".sub('{format}','json').sub('{' + 'ruleId' + '}', rule_id.to_s)
|
570
|
+
|
571
|
+
# query parameters
|
572
|
+
query_params = {}
|
573
|
+
|
574
|
+
# header parameters
|
575
|
+
header_params = {}
|
576
|
+
|
577
|
+
# HTTP header 'Accept' (if needed)
|
578
|
+
_header_accept = ['application/json']
|
579
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
580
|
+
|
581
|
+
# HTTP header 'Content-Type'
|
582
|
+
_header_content_type = ['application/json']
|
583
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
584
|
+
|
585
|
+
# form parameters
|
586
|
+
form_params = {}
|
587
|
+
|
588
|
+
# http body (model)
|
589
|
+
post_body = nil
|
590
|
+
|
591
|
+
|
592
|
+
auth_names = ['PureCloud Auth']
|
593
|
+
data, status_code, headers = @api_client.call_api(:DELETE, path,
|
594
|
+
:header_params => header_params,
|
595
|
+
:query_params => query_params,
|
596
|
+
:form_params => form_params,
|
597
|
+
:body => post_body,
|
598
|
+
:auth_names => auth_names)
|
599
|
+
if @api_client.config.debugging
|
600
|
+
@api_client.config.logger.debug "API called: AlertingApi#delete_interactionstats_rules_rule_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
601
|
+
end
|
602
|
+
return data, status_code, headers
|
603
|
+
end
|
604
|
+
end
|
605
|
+
end
|
606
|
+
|
607
|
+
|
608
|
+
|
609
|
+
|