opsgenie_sdk 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +836 -0
- data/Rakefile +8 -0
- data/docs/AccountApi.md +57 -0
- data/docs/AccountInfo.md +10 -0
- data/docs/AccountPlan.md +10 -0
- data/docs/AckIntegrationAction.md +14 -0
- data/docs/AcknowledgeAlertPayload.md +10 -0
- data/docs/ActionCategorized.md +13 -0
- data/docs/ActionMapping.md +11 -0
- data/docs/AddDetailsToAlertPayload.md +11 -0
- data/docs/AddNoteIntegrationAction.md +14 -0
- data/docs/AddNoteToAlertPayload.md +10 -0
- data/docs/AddResponderToAlertPayload.md +11 -0
- data/docs/AddTagsToAlertPayload.md +11 -0
- data/docs/AddTeamMemberPayload.md +9 -0
- data/docs/AddTeamToAlertPayload.md +11 -0
- data/docs/AirbrakeIntegration.md +14 -0
- data/docs/Alert.md +31 -0
- data/docs/AlertActionPayload.md +10 -0
- data/docs/AlertApi.md +2161 -0
- data/docs/AlertAttachment.md +9 -0
- data/docs/AlertAttachmentMeta.md +9 -0
- data/docs/AlertFilter.md +9 -0
- data/docs/AlertIntegration.md +10 -0
- data/docs/AlertLog.md +12 -0
- data/docs/AlertLogicIntegration.md +14 -0
- data/docs/AlertNote.md +11 -0
- data/docs/AlertPaging.md +9 -0
- data/docs/AlertPolicy.md +31 -0
- data/docs/AlertRecipient.md +12 -0
- data/docs/AlertReport.md +11 -0
- data/docs/AlertRequestStatus.md +14 -0
- data/docs/AlertSiteIntegration.md +14 -0
- data/docs/AlertTeamMeta.md +8 -0
- data/docs/AlertUserMeta.md +9 -0
- data/docs/AllRecipient.md +9 -0
- data/docs/AmazonCloudTrailIntegration.md +14 -0
- data/docs/AmazonEc2AutoScalingIntegration.md +14 -0
- data/docs/AmazonRdsIntegration.md +14 -0
- data/docs/AmazonRoute53HealthCheckIntegration.md +14 -0
- data/docs/AmazonSecurityHubIntegration.md +14 -0
- data/docs/AmazonSesIntegration.md +14 -0
- data/docs/AmazonSnsCallback.md +14 -0
- data/docs/AmazonSnsIntegration.md +14 -0
- data/docs/AmazonSnsOutgoingIntegration.md +14 -0
- data/docs/ApiIntegration.md +34 -0
- data/docs/ApicaIntegration.md +14 -0
- data/docs/ApimetricsIntegration.md +14 -0
- data/docs/AppDynamicsIntegration.md +14 -0
- data/docs/AppOpticsIntegration.md +14 -0
- data/docs/AppSignalIntegration.md +14 -0
- data/docs/AppSignalV2Integration.md +14 -0
- data/docs/AssignAlertPayload.md +11 -0
- data/docs/AtatusIntegration.md +14 -0
- data/docs/AtlassianBambooIntegration.md +14 -0
- data/docs/AuthenticateIntegrationPayload.md +8 -0
- data/docs/AutoCloseAction.md +8 -0
- data/docs/AutoRestartAction.md +9 -0
- data/docs/AutoTaskEmailIntegration.md +14 -0
- data/docs/AutotaskAEMEmailIntegration.md +14 -0
- data/docs/AzureAutoScaleIntegration.md +14 -0
- data/docs/AzureIntegration.md +14 -0
- data/docs/AzureOMSIntegration.md +14 -0
- data/docs/AzureResourceHealthIntegration.md +14 -0
- data/docs/AzureServiceHealthIntegration.md +14 -0
- data/docs/BMCFootPrintsV11Callback.md +19 -0
- data/docs/BMCFootPrintsV11Integration.md +33 -0
- data/docs/BMCFootPrintsV12Callback.md +18 -0
- data/docs/BMCFootPrintsV12Integration.md +33 -0
- data/docs/BMCRemedyCallback.md +18 -0
- data/docs/BMCRemedyForceIntegration.md +14 -0
- data/docs/BMCRemedyIntegration.md +33 -0
- data/docs/BMCRemedyOnDemandCallback.md +16 -0
- data/docs/BMCRemedyOnDemandIntegration.md +14 -0
- data/docs/BaseAlert.md +27 -0
- data/docs/BaseIncident.md +21 -0
- data/docs/BaseIncomingFeature.md +22 -0
- data/docs/BaseIntegrationAction.md +11 -0
- data/docs/BaseResponse.md +9 -0
- data/docs/BaseResponseWithExpandable.md +10 -0
- data/docs/BaseWebhookCallback.md +16 -0
- data/docs/BidirectionalCallback.md +12 -0
- data/docs/BidirectionalCallbackNew.md +14 -0
- data/docs/BigPandaIntegration.md +14 -0
- data/docs/BitbucketIntegration.md +14 -0
- data/docs/BlueMatadorIntegration.md +14 -0
- data/docs/BoundaryIntegration.md +14 -0
- data/docs/CallbackCondition.md +12 -0
- data/docs/CampfireCallback.md +14 -0
- data/docs/CampfireIntegration.md +14 -0
- data/docs/CatchpointIntegration.md +14 -0
- data/docs/ChangeNotificationRuleOrderPayload.md +8 -0
- data/docs/ChangePolicyOrderPayload.md +8 -0
- data/docs/ChangeTeamRoutingRuleOrderPayload.md +8 -0
- data/docs/CheckMKIntegration.md +14 -0
- data/docs/CherwellCallback.md +18 -0
- data/docs/CherwellIntegration.md +33 -0
- data/docs/CircleCiIntegration.md +14 -0
- data/docs/CirconusCallback.md +15 -0
- data/docs/CirconusIntegration.md +33 -0
- data/docs/CloseAlertPayload.md +10 -0
- data/docs/CloseIncidentPayload.md +8 -0
- data/docs/CloseIntegrationAction.md +14 -0
- data/docs/CloudMonixIntegration.md +14 -0
- data/docs/CloudSploitIntegration.md +14 -0
- data/docs/CloudWatchEventsIntegration.md +14 -0
- data/docs/CloudWatchIntegration.md +14 -0
- data/docs/CodeshipIntegration.md +14 -0
- data/docs/CommonIntegrationAction.md +14 -0
- data/docs/ComposeIntegration.md +14 -0
- data/docs/Condition.md +13 -0
- data/docs/ConnectWiseAutomateIntegration.md +14 -0
- data/docs/ConnectWiseCallback.md +13 -0
- data/docs/ConnectWiseIntegration.md +33 -0
- data/docs/ConnectWiseManageCallback.md +20 -0
- data/docs/ConnectWiseManageIntegration.md +33 -0
- data/docs/ConnectWiseManageV2Callback.md +22 -0
- data/docs/ConnectWiseManageV2Integration.md +33 -0
- data/docs/ConsulIntegration.md +14 -0
- data/docs/Contact.md +11 -0
- data/docs/ContactApi.md +416 -0
- data/docs/ContactMeta.md +9 -0
- data/docs/ContactStatus.md +9 -0
- data/docs/ContactWithApplyOrder.md +12 -0
- data/docs/CopperEggIntegration.md +14 -0
- data/docs/CrashlyticsIntegration.md +14 -0
- data/docs/CreateAlertPayload.md +20 -0
- data/docs/CreateContactPayload.md +9 -0
- data/docs/CreateCustomUserRolePayload.md +11 -0
- data/docs/CreateEscalationPayload.md +12 -0
- data/docs/CreateForwardingRulePayload.md +12 -0
- data/docs/CreateForwardingRuleResponse.md +10 -0
- data/docs/CreateHeartbeatPayload.md +7 -0
- data/docs/CreateHeartbeatResponse.md +10 -0
- data/docs/CreateIncidentPayload.md +17 -0
- data/docs/CreateIntegrationAction.md +32 -0
- data/docs/CreateIntegrationActionsResponse.md +10 -0
- data/docs/CreateIntegrationResponse.md +10 -0
- data/docs/CreateMaintenancePayload.md +10 -0
- data/docs/CreateMaintenanceResponse.md +10 -0
- data/docs/CreateNotificationRulePayload.md +17 -0
- data/docs/CreateNotificationRuleResponse.md +10 -0
- data/docs/CreateNotificationRuleStepPayload.md +10 -0
- data/docs/CreatePolicyResponse.md +10 -0
- data/docs/CreateSavedSearchPayload.md +12 -0
- data/docs/CreateSavedSearchResponse.md +10 -0
- data/docs/CreateScheduleOverridePayload.md +12 -0
- data/docs/CreateScheduleOverrideResponse.md +10 -0
- data/docs/CreateSchedulePayload.md +13 -0
- data/docs/CreateScheduleResponse.md +10 -0
- data/docs/CreateScheduleRotationPayload.md +14 -0
- data/docs/CreateTeamPayload.md +10 -0
- data/docs/CreateTeamRolePayload.md +9 -0
- data/docs/CreateTeamRoutingRulePayload.md +13 -0
- data/docs/CreateUserPayload.md +17 -0
- data/docs/CustomUserRole.md +12 -0
- data/docs/CustomUserRoleApi.md +291 -0
- data/docs/DatadogCallback.md +16 -0
- data/docs/DatadogIntegration.md +33 -0
- data/docs/DataloopIOIntegration.md +14 -0
- data/docs/DeduplicationAction.md +10 -0
- data/docs/DelayAction.md +11 -0
- data/docs/DeprecatedAlertPolicy.md +14 -0
- data/docs/DeprecatedAlertPolicyMeta.md +12 -0
- data/docs/DeprecatedAutoCloseAlertPolicy.md +15 -0
- data/docs/DeprecatedAutoRestartNotificationsAlertPolicy.md +16 -0
- data/docs/DeprecatedChangeAlertPolicyOrderPayload.md +8 -0
- data/docs/DeprecatedCreateAlertPolicyResponse.md +10 -0
- data/docs/DeprecatedGetAlertPolicyResponse.md +10 -0
- data/docs/DeprecatedListAlertPoliciesResponse.md +10 -0
- data/docs/DeprecatedModifyAlertPolicy.md +30 -0
- data/docs/DeprecatedNotificationDeduplicationAlertPolicy.md +17 -0
- data/docs/DeprecatedNotificationDelayAlertPolicy.md +18 -0
- data/docs/DeprecatedNotificationRenotifyAlertPolicy.md +14 -0
- data/docs/DeprecatedNotificationSuppressAlertPolicy.md +14 -0
- data/docs/DeprecatedPolicyApi.md +448 -0
- data/docs/DeskCallback.md +17 -0
- data/docs/DeskIntegration.md +33 -0
- data/docs/DetectifyIntegration.md +14 -0
- data/docs/DisableHeartbeatResponse.md +10 -0
- data/docs/DisableIntegrationResponse.md +10 -0
- data/docs/DnsCheckIntegration.md +14 -0
- data/docs/DripStatIntegration.md +14 -0
- data/docs/Duration.md +9 -0
- data/docs/DynatraceAppMonCallback.md +18 -0
- data/docs/DynatraceAppMonIntegration.md +33 -0
- data/docs/DynatraceIntegration.md +14 -0
- data/docs/DynatraceV2Integration.md +14 -0
- data/docs/EmailBasedIncomingFeature.md +24 -0
- data/docs/EmailIntegration.md +14 -0
- data/docs/EnableHeartbeatResponse.md +10 -0
- data/docs/EnableIntegrationResponse.md +10 -0
- data/docs/ErrorResponse.md +12 -0
- data/docs/ErrorceptionIntegration.md +14 -0
- data/docs/EscalateAlertToNextPayload.md +11 -0
- data/docs/Escalation.md +13 -0
- data/docs/EscalationApi.md +291 -0
- data/docs/EscalationRecipient.md +10 -0
- data/docs/EscalationRepeat.md +11 -0
- data/docs/EscalationRule.md +11 -0
- data/docs/EvidentIOIntegration.md +14 -0
- data/docs/ExecuteCustomAlertActionPayload.md +10 -0
- data/docs/Filter.md +8 -0
- data/docs/FlockCallback.md +16 -0
- data/docs/FlockIntegration.md +14 -0
- data/docs/FlowdockCallback.md +13 -0
- data/docs/FlowdockIntegration.md +14 -0
- data/docs/FlowdockV2Callback.md +11 -0
- data/docs/FlowdockV2Integration.md +14 -0
- data/docs/ForwardingRule.md +13 -0
- data/docs/ForwardingRuleApi.md +292 -0
- data/docs/ForwardingRuleMeta.md +9 -0
- data/docs/FreshdeskCallback.md +16 -0
- data/docs/FreshdeskIntegration.md +33 -0
- data/docs/FreshserviceCallback.md +17 -0
- data/docs/FreshserviceIntegration.md +33 -0
- data/docs/GetAccountInfoResponse.md +10 -0
- data/docs/GetAlertAttachmentResponse.md +10 -0
- data/docs/GetAlertResponse.md +10 -0
- data/docs/GetContactResponse.md +10 -0
- data/docs/GetCountAlertsResponse.md +10 -0
- data/docs/GetCountAlertsResponseData.md +8 -0
- data/docs/GetCustomUserRoleResponse.md +10 -0
- data/docs/GetEscalationResponse.md +10 -0
- data/docs/GetForwardingRuleResponse.md +10 -0
- data/docs/GetHeartbeatResponse.md +10 -0
- data/docs/GetIncidentRequestStatusResponse.md +10 -0
- data/docs/GetIncidentResponse.md +10 -0
- data/docs/GetIntegrationResponse.md +10 -0
- data/docs/GetMaintenanceResponse.md +10 -0
- data/docs/GetNextOnCallResponse.md +10 -0
- data/docs/GetNotificationRuleResponse.md +10 -0
- data/docs/GetNotificationRuleStepResponse.md +10 -0
- data/docs/GetOnCallResponse.md +10 -0
- data/docs/GetPolicyResponse.md +10 -0
- data/docs/GetRequestStatusResponse.md +10 -0
- data/docs/GetSavedSearchResponse.md +10 -0
- data/docs/GetScheduleOverrideResponse.md +10 -0
- data/docs/GetScheduleResponse.md +10 -0
- data/docs/GetScheduleRotationResponse.md +10 -0
- data/docs/GetScheduleTimelineResponse.md +11 -0
- data/docs/GetTeamResponse.md +10 -0
- data/docs/GetTeamRoleResponse.md +10 -0
- data/docs/GetTeamRoutingRuleResponse.md +10 -0
- data/docs/GetUserResponse.md +11 -0
- data/docs/GhostInspectorIntegration.md +14 -0
- data/docs/GitHubIntegration.md +14 -0
- data/docs/GitLabIntegration.md +14 -0
- data/docs/GoogleStackDriverIntegration.md +14 -0
- data/docs/GrafanaIntegration.md +14 -0
- data/docs/GrafanaV2Integration.md +14 -0
- data/docs/GraylogIntegration.md +14 -0
- data/docs/GroupRecipient.md +10 -0
- data/docs/HPServiceManagerCallback.md +16 -0
- data/docs/HPServiceManagerIntegration.md +33 -0
- data/docs/Heartbeat.md +14 -0
- data/docs/HeartbeatApi.md +446 -0
- data/docs/HeartbeatIntegration.md +14 -0
- data/docs/HeartbeatMeta.md +10 -0
- data/docs/HipChatAddOnCallback.md +16 -0
- data/docs/HipChatAddOnIntegration.md +44 -0
- data/docs/HipChatCallbackV2.md +16 -0
- data/docs/HipChatIntegration.md +14 -0
- data/docs/HipChatIntegrationV2.md +33 -0
- data/docs/HoneybadgerIntegration.md +14 -0
- data/docs/HostedGraphiteIntegration.md +14 -0
- data/docs/HumioIntegration.md +14 -0
- data/docs/Icinga2Callback.md +14 -0
- data/docs/Icinga2Integration.md +33 -0
- data/docs/IcingaCallback.md +14 -0
- data/docs/IcingaIntegration.md +33 -0
- data/docs/IgnoreIntegrationAction.md +11 -0
- data/docs/Incident.md +22 -0
- data/docs/IncidentActionPayload.md +8 -0
- data/docs/IncidentApi.md +362 -0
- data/docs/IncidentRequestStatus.md +14 -0
- data/docs/IncomingCallIntegration.md +14 -0
- data/docs/InstanaIntegration.md +14 -0
- data/docs/Integration.md +14 -0
- data/docs/IntegrationActionApi.md +179 -0
- data/docs/IntegrationActionFilter.md +9 -0
- data/docs/IntegrationApi.md +456 -0
- data/docs/IntegrationCondition.md +11 -0
- data/docs/IntegrationMeta.md +12 -0
- data/docs/JenkinsIntegration.md +14 -0
- data/docs/JiraCallback.md +19 -0
- data/docs/JiraIntegration.md +33 -0
- data/docs/JiraServiceDeskCallback.md +19 -0
- data/docs/JiraServiceDeskIntegration.md +33 -0
- data/docs/KapacitorIntegration.md +14 -0
- data/docs/KayakoCallback.md +17 -0
- data/docs/KayakoIntegration.md +33 -0
- data/docs/KoreCallback.md +16 -0
- data/docs/KoreIntegration.md +14 -0
- data/docs/LabTechEmailIntegration.md +14 -0
- data/docs/LibratoIntegration.md +14 -0
- data/docs/LibreNMSCallback.md +16 -0
- data/docs/LibreNMSIntegration.md +33 -0
- data/docs/LightstepIntegration.md +14 -0
- data/docs/ListAlertAttachmentsResponse.md +10 -0
- data/docs/ListAlertLogsResponse.md +11 -0
- data/docs/ListAlertNotesResponse.md +11 -0
- data/docs/ListAlertRecipientsResponse.md +10 -0
- data/docs/ListAlertsResponse.md +11 -0
- data/docs/ListContactsResponse.md +10 -0
- data/docs/ListCustomUserRolesResponse.md +10 -0
- data/docs/ListEscalationsResponse.md +10 -0
- data/docs/ListForwardingRulesResponse.md +10 -0
- data/docs/ListHeartbeatResponse.md +10 -0
- data/docs/ListHeartbeatResponseData.md +8 -0
- data/docs/ListIncidentsResponse.md +11 -0
- data/docs/ListIntegrationActionsResponse.md +10 -0
- data/docs/ListIntegrationsResponse.md +10 -0
- data/docs/ListMaintenanceResponse.md +10 -0
- data/docs/ListNotificationRuleStepsResponse.md +10 -0
- data/docs/ListNotificationRulesResponse.md +10 -0
- data/docs/ListOnCallsResponse.md +10 -0
- data/docs/ListPoliciesResponse.md +10 -0
- data/docs/ListSavedSearchesResponse.md +10 -0
- data/docs/ListScheduleOverrideResponse.md +10 -0
- data/docs/ListScheduleRotationsResponse.md +10 -0
- data/docs/ListSchedulesResponse.md +11 -0
- data/docs/ListServiceIncidentRulesResponse.md +10 -0
- data/docs/ListServicesResponse.md +11 -0
- data/docs/ListTeamLogsResponse.md +10 -0
- data/docs/ListTeamRoleResponse.md +10 -0
- data/docs/ListTeamRoutingRulesResponse.md +10 -0
- data/docs/ListTeamsResponse.md +11 -0
- data/docs/ListUserEscalationsResponse.md +10 -0
- data/docs/ListUserForwardingRulesResponse.md +10 -0
- data/docs/ListUserSchedulesResponse.md +10 -0
- data/docs/ListUserTeamsResponse.md +10 -0
- data/docs/ListUsersResponse.md +12 -0
- data/docs/LogentriesIntegration.md +14 -0
- data/docs/LogglyIntegration.md +14 -0
- data/docs/LogicMonitorCallback.md +17 -0
- data/docs/LogicMonitorIntegration.md +33 -0
- data/docs/LogstashIntegration.md +14 -0
- data/docs/LogzIOIntegration.md +14 -0
- data/docs/LookerIntegration.md +14 -0
- data/docs/LoomIntegration.md +14 -0
- data/docs/MSTeamsCallback.md +15 -0
- data/docs/MSTeamsIntegration.md +44 -0
- data/docs/MSTeamsV2Callback.md +16 -0
- data/docs/MSTeamsV2Integration.md +46 -0
- data/docs/MagentrixCallback.md +17 -0
- data/docs/MagentrixIntegration.md +33 -0
- data/docs/Maintenance.md +12 -0
- data/docs/MaintenanceApi.md +342 -0
- data/docs/MaintenanceEntity.md +9 -0
- data/docs/MaintenanceMeta.md +11 -0
- data/docs/MaintenanceRule.md +9 -0
- data/docs/MaintenanceTime.md +10 -0
- data/docs/ManageEngineIntegrationDTO.md +14 -0
- data/docs/MaridCallback.md +12 -0
- data/docs/MaridIntegration.md +33 -0
- data/docs/MatchAll.md +8 -0
- data/docs/MatchAllConditions.md +9 -0
- data/docs/MatchAnyCondition.md +9 -0
- data/docs/MattermostCallback.md +13 -0
- data/docs/MattermostIntegration.md +33 -0
- data/docs/MongoDBCloudIntegration.md +14 -0
- data/docs/MonitisEmailIntegration.md +14 -0
- data/docs/MonitisIntegration.md +14 -0
- data/docs/MoxtraCallback.md +16 -0
- data/docs/MoxtraIntegration.md +14 -0
- data/docs/NagiosBasedV1Callback.md +14 -0
- data/docs/NagiosBasedV2Callback.md +14 -0
- data/docs/NagiosIntegrationV1.md +33 -0
- data/docs/NagiosIntegrationV2.md +33 -0
- data/docs/NagiosXIIntegrationV1.md +33 -0
- data/docs/NagiosXIIntegrationV2.md +33 -0
- data/docs/NagiosXIV1Callback.md +14 -0
- data/docs/NagiosXIV2Callback.md +14 -0
- data/docs/NetuitiveIntegration.md +14 -0
- data/docs/NeustarIntegration.md +14 -0
- data/docs/NewRelicIntegration.md +14 -0
- data/docs/NewRelicV2Integration.md +14 -0
- data/docs/NextOnCall.md +12 -0
- data/docs/NoRecipient.md +9 -0
- data/docs/NodePingIntegration.md +14 -0
- data/docs/NotificationActionType.md +7 -0
- data/docs/NotificationPolicy.md +20 -0
- data/docs/NotificationRepeat.md +9 -0
- data/docs/NotificationRule.md +18 -0
- data/docs/NotificationRuleApi.md +475 -0
- data/docs/NotificationRuleMeta.md +12 -0
- data/docs/NotificationRuleStep.md +12 -0
- data/docs/NotificationRuleStepApi.md +436 -0
- data/docs/NotificationRuleStepParent.md +9 -0
- data/docs/NotifyTime.md +7 -0
- data/docs/OECCallback.md +11 -0
- data/docs/OECIntegration.md +33 -0
- data/docs/OEMEmailIntegration.md +14 -0
- data/docs/OEMIntegration.md +14 -0
- data/docs/OP5Callback.md +17 -0
- data/docs/OP5Integration.md +33 -0
- data/docs/ObserviumIntegration.md +14 -0
- data/docs/ObserviumV2Integration.md +14 -0
- data/docs/OnCall.md +10 -0
- data/docs/OpsDashIntegration.md +14 -0
- data/docs/OpsGenieCallback.md +15 -0
- data/docs/OpsGenieIntegration.md +33 -0
- data/docs/OpsviewIntegration.md +14 -0
- data/docs/OutgoingCallback.md +10 -0
- data/docs/OutgoingCallbackNew.md +11 -0
- data/docs/PageDetails.md +11 -0
- data/docs/PagerDutyCompatibilityIntegration.md +14 -0
- data/docs/PanoptaIntegration.md +14 -0
- data/docs/PapertrailIntegration.md +14 -0
- data/docs/Participant.md +14 -0
- data/docs/PingdomIntegration.md +14 -0
- data/docs/PingdomV2Integration.md +14 -0
- data/docs/PingdomWebhookIntegration.md +14 -0
- data/docs/PingometerIntegration.md +14 -0
- data/docs/PlanioCallback.md +13 -0
- data/docs/PlanioIntegration.md +14 -0
- data/docs/Policy.md +15 -0
- data/docs/PolicyApi.md +539 -0
- data/docs/PolicyMeta.md +12 -0
- data/docs/PrometheusIntegration.md +14 -0
- data/docs/PrtgCallback.md +17 -0
- data/docs/PrtgIntegration.md +33 -0
- data/docs/RackspaceIntegration.md +14 -0
- data/docs/RaygunIntegration.md +14 -0
- data/docs/Recipient.md +9 -0
- data/docs/RedGateSqlMonitorEmailIntegration.md +14 -0
- data/docs/Responder.md +9 -0
- data/docs/RiemannIntegration.md +14 -0
- data/docs/RigorIntegration.md +14 -0
- data/docs/RingCentralEmailIntegration.md +14 -0
- data/docs/RingCentralGlipCallback.md +16 -0
- data/docs/RingCentralGlipIntegration.md +14 -0
- data/docs/RollbarCallback.md +15 -0
- data/docs/RollbarIntegration.md +33 -0
- data/docs/RunscopeIntegration.md +14 -0
- data/docs/SalesForceServiceCloudCallback.md +19 -0
- data/docs/SalesForceServiceCloudIntegration.md +33 -0
- data/docs/SaltStackIntegration.md +14 -0
- data/docs/SavedSearch.md +15 -0
- data/docs/SavedSearchEntity.md +8 -0
- data/docs/SavedSearchMeta.md +9 -0
- data/docs/ScalyrIntegration.md +14 -0
- data/docs/Schedule.md +14 -0
- data/docs/ScheduleApi.md +424 -0
- data/docs/ScheduleMeta.md +10 -0
- data/docs/ScheduleOverride.md +13 -0
- data/docs/ScheduleOverrideApi.md +318 -0
- data/docs/ScheduleOverrideMeta.md +8 -0
- data/docs/ScheduleOverrideRotation.md +9 -0
- data/docs/ScheduleRecipient.md +10 -0
- data/docs/ScheduleRotation.md +15 -0
- data/docs/ScheduleRotationApi.md +318 -0
- data/docs/ScheduleRotationWithParent.md +16 -0
- data/docs/ScheduleTimeline.md +14 -0
- data/docs/ScomIntegration.md +14 -0
- data/docs/ScoutIntegration.md +14 -0
- data/docs/SematextSpmIntegration.md +14 -0
- data/docs/SensuIntegration.md +14 -0
- data/docs/SentryIntegration.md +14 -0
- data/docs/ServerDensityIntegration.md +14 -0
- data/docs/ServerGuard24Integration.md +14 -0
- data/docs/Service.md +13 -0
- data/docs/ServiceApi.md +296 -0
- data/docs/ServiceNowIntegration.md +14 -0
- data/docs/ServiceNowV2Callback.md +17 -0
- data/docs/ServiceNowV2Integration.md +33 -0
- data/docs/ServiceNowV3Callback.md +17 -0
- data/docs/ServiceNowV3Integration.md +33 -0
- data/docs/SignalFXV2Integration.md +14 -0
- data/docs/SignalSciencesIntegration.md +14 -0
- data/docs/SignalfxIntegration.md +14 -0
- data/docs/Site24x7Integration.md +14 -0
- data/docs/SlackAppCallback.md +17 -0
- data/docs/SlackAppIntegration.md +46 -0
- data/docs/SlackCallback.md +13 -0
- data/docs/SlackIntegration.md +33 -0
- data/docs/SnoozeAlertPayload.md +11 -0
- data/docs/SoastaIntegration.md +14 -0
- data/docs/SolarWindsWebHelpDeskCallback.md +14 -0
- data/docs/SolarWindsWebHelpDeskIntegration.md +33 -0
- data/docs/SolarwindsCallback.md +14 -0
- data/docs/SolarwindsIntegration.md +33 -0
- data/docs/SolarwindsMSPNCentralIntegration.md +33 -0
- data/docs/SolarwindsMSPNcentralCallback.md +17 -0
- data/docs/SplunkCallback.md +16 -0
- data/docs/SplunkITSICallback.md +17 -0
- data/docs/SplunkITSIIntegration.md +33 -0
- data/docs/SplunkIntegration.md +33 -0
- data/docs/StackStormIntegration.md +14 -0
- data/docs/StackdriverCallback.md +13 -0
- data/docs/StackdriverIntegration.md +33 -0
- data/docs/StatusCakeIntegration.md +14 -0
- data/docs/StatusHubIntegration.md +14 -0
- data/docs/StatusIOCallback.md +15 -0
- data/docs/StatusIOIntegration.md +33 -0
- data/docs/StatusPageEntry.md +9 -0
- data/docs/StatusPageIOCallback.md +16 -0
- data/docs/StatusPageIOIntegration.md +33 -0
- data/docs/StatusyCallback.md +16 -0
- data/docs/StatusyIntegration.md +14 -0
- data/docs/StruxureWareIntegration.md +14 -0
- data/docs/SuccessData.md +9 -0
- data/docs/SuccessResponse.md +11 -0
- data/docs/SumoLogicCallback.md +15 -0
- data/docs/SumoLogicIntegration.md +33 -0
- data/docs/SysdigCloudIntegration.md +14 -0
- data/docs/Team.md +11 -0
- data/docs/TeamApi.md +354 -0
- data/docs/TeamLog.md +9 -0
- data/docs/TeamLogDetails.md +10 -0
- data/docs/TeamMember.md +9 -0
- data/docs/TeamMemberApi.md +132 -0
- data/docs/TeamMeta.md +9 -0
- data/docs/TeamRecipient.md +10 -0
- data/docs/TeamResponder.md +10 -0
- data/docs/TeamRight.md +9 -0
- data/docs/TeamRole.md +10 -0
- data/docs/TeamRoleApi.md +323 -0
- data/docs/TeamRoutingRule.md +15 -0
- data/docs/TeamRoutingRuleApi.md +382 -0
- data/docs/ThousandEyesIntegration.md +14 -0
- data/docs/ThreatStackIntegration.md +14 -0
- data/docs/ThundraIntegration.md +14 -0
- data/docs/TidewaysIntegration.md +14 -0
- data/docs/TimeOfDayRestriction.md +11 -0
- data/docs/TimeOfDayRestrictionInterval.md +9 -0
- data/docs/TimeRestrictionInterval.md +8 -0
- data/docs/Timeline.md +8 -0
- data/docs/TimelinePeriod.md +13 -0
- data/docs/TimelineRecipient.md +11 -0
- data/docs/TimelineRotation.md +11 -0
- data/docs/TokenBasedIncomingFeature.md +26 -0
- data/docs/TraceIntegration.md +14 -0
- data/docs/TrackItCallback.md +14 -0
- data/docs/TrackItIntegration.md +33 -0
- data/docs/TravisCIIntegration.md +14 -0
- data/docs/TwilioIntegration.md +14 -0
- data/docs/UnAcknowledgeAlertPayload.md +10 -0
- data/docs/UpdateAlertDescriptionPayload.md +8 -0
- data/docs/UpdateAlertMessagePayload.md +8 -0
- data/docs/UpdateAlertPriorityPayload.md +8 -0
- data/docs/UpdateContactPayload.md +8 -0
- data/docs/UpdateCustomUserRolePayload.md +11 -0
- data/docs/UpdateEscalationPayload.md +12 -0
- data/docs/UpdateForwardingRulePayload.md +11 -0
- data/docs/UpdateHeartbeatPayload.md +11 -0
- data/docs/UpdateHeartbeatResponse.md +10 -0
- data/docs/UpdateIntegrationActionsResponse.md +10 -0
- data/docs/UpdateIntegrationResponse.md +10 -0
- data/docs/UpdateMaintenancePayload.md +10 -0
- data/docs/UpdateMaintenanceResponse.md +10 -0
- data/docs/UpdateNotificationRulePayload.md +16 -0
- data/docs/UpdateNotificationRuleResponse.md +10 -0
- data/docs/UpdateNotificationRuleStepPayload.md +10 -0
- data/docs/UpdateSavedSearchPayload.md +12 -0
- data/docs/UpdateScheduleOverridePayload.md +11 -0
- data/docs/UpdateScheduleOverrideResponse.md +10 -0
- data/docs/UpdateSchedulePayload.md +13 -0
- data/docs/UpdateScheduleResponse.md +10 -0
- data/docs/UpdateScheduleRotationPayload.md +14 -0
- data/docs/UpdateTeamPayload.md +10 -0
- data/docs/UpdateTeamRolePayload.md +9 -0
- data/docs/UpdateTeamRoutingRulePayload.md +12 -0
- data/docs/UpdateUserPayload.md +17 -0
- data/docs/UpdownIOIntegration.md +14 -0
- data/docs/UptimeRobotEmailIntegration.md +14 -0
- data/docs/UptimeRobotIntegration.md +14 -0
- data/docs/UptimeWebhookIntegration.md +14 -0
- data/docs/UptrendsEmailIntegration.md +14 -0
- data/docs/User.md +22 -0
- data/docs/UserAddress.md +12 -0
- data/docs/UserApi.md +520 -0
- data/docs/UserContact.md +12 -0
- data/docs/UserMeta.md +9 -0
- data/docs/UserRecipient.md +10 -0
- data/docs/UserResponder.md +9 -0
- data/docs/UserRole.md +9 -0
- data/docs/VCSAIntegration.md +14 -0
- data/docs/VCenterIntegration.md +14 -0
- data/docs/VividCortexIntegration.md +14 -0
- data/docs/WavefrontIntegration.md +14 -0
- data/docs/WebhookCallback.md +16 -0
- data/docs/WebhookIntegration.md +14 -0
- data/docs/WeekdayTimeRestriction.md +13 -0
- data/docs/WeekdayTimeRestrictionInterval.md +9 -0
- data/docs/WhatsUpGoldIntegration.md +14 -0
- data/docs/WhoIsOnCallApi.md +247 -0
- data/docs/WorkatoIntegration.md +14 -0
- data/docs/XLReleaseIntegration.md +14 -0
- data/docs/XPackAlertingCallback.md +14 -0
- data/docs/XPackAlertingIntegration.md +33 -0
- data/docs/XmppCallback.md +14 -0
- data/docs/XmppIntegration.md +33 -0
- data/docs/ZabbixCallback.md +14 -0
- data/docs/ZabbixIntegration.md +33 -0
- data/docs/ZapierIntegration.md +14 -0
- data/docs/ZendeskCallback.md +17 -0
- data/docs/ZendeskIntegration.md +33 -0
- data/docs/ZenossCallback.md +14 -0
- data/docs/ZenossIntegration.md +33 -0
- data/docs/ZyrionIntegration.md +14 -0
- data/git_push.sh +55 -0
- data/lib/opsgenie_sdk.rb +644 -0
- data/lib/opsgenie_sdk/api/account_api.rb +69 -0
- data/lib/opsgenie_sdk/api/alert_api.rb +2259 -0
- data/lib/opsgenie_sdk/api/contact_api.rb +421 -0
- data/lib/opsgenie_sdk/api/custom_user_role_api.rb +297 -0
- data/lib/opsgenie_sdk/api/deprecated_policy_api.rb +445 -0
- data/lib/opsgenie_sdk/api/escalation_api.rb +297 -0
- data/lib/opsgenie_sdk/api/forwarding_rule_api.rb +301 -0
- data/lib/opsgenie_sdk/api/heartbeat_api.rb +435 -0
- data/lib/opsgenie_sdk/api/incident_api.rb +386 -0
- data/lib/opsgenie_sdk/api/integration_action_api.rb +191 -0
- data/lib/opsgenie_sdk/api/integration_api.rb +448 -0
- data/lib/opsgenie_sdk/api/maintenance_api.rb +341 -0
- data/lib/opsgenie_sdk/api/notification_rule_api.rb +493 -0
- data/lib/opsgenie_sdk/api/notification_rule_step_api.rb +467 -0
- data/lib/opsgenie_sdk/api/policy_api.rb +518 -0
- data/lib/opsgenie_sdk/api/schedule_api.rb +431 -0
- data/lib/opsgenie_sdk/api/schedule_override_api.rb +343 -0
- data/lib/opsgenie_sdk/api/schedule_rotation_api.rb +343 -0
- data/lib/opsgenie_sdk/api/service_api.rb +297 -0
- data/lib/opsgenie_sdk/api/service_incident_rule_api.rb +251 -0
- data/lib/opsgenie_sdk/api/team_api.rb +369 -0
- data/lib/opsgenie_sdk/api/team_member_api.rb +151 -0
- data/lib/opsgenie_sdk/api/team_role_api.rb +357 -0
- data/lib/opsgenie_sdk/api/team_routing_rule_api.rb +409 -0
- data/lib/opsgenie_sdk/api/user_api.rb +508 -0
- data/lib/opsgenie_sdk/api/who_is_on_call_api.rb +255 -0
- data/lib/opsgenie_sdk/api_client.rb +391 -0
- data/lib/opsgenie_sdk/api_error.rb +38 -0
- data/lib/opsgenie_sdk/configuration.rb +209 -0
- data/lib/opsgenie_sdk/models/account_info.rb +202 -0
- data/lib/opsgenie_sdk/models/account_plan.rb +202 -0
- data/lib/opsgenie_sdk/models/ack_integration_action.rb +302 -0
- data/lib/opsgenie_sdk/models/acknowledge_alert_payload.rb +205 -0
- data/lib/opsgenie_sdk/models/action_categorized.rb +239 -0
- data/lib/opsgenie_sdk/models/action_mapping.rb +262 -0
- data/lib/opsgenie_sdk/models/add_details_to_alert_payload.rb +222 -0
- data/lib/opsgenie_sdk/models/add_note_integration_action.rb +302 -0
- data/lib/opsgenie_sdk/models/add_note_to_alert_payload.rb +205 -0
- data/lib/opsgenie_sdk/models/add_responder_to_alert_payload.rb +219 -0
- data/lib/opsgenie_sdk/models/add_tags_to_alert_payload.rb +221 -0
- data/lib/opsgenie_sdk/models/add_team_member_payload.rb +202 -0
- data/lib/opsgenie_sdk/models/add_team_to_alert_payload.rb +219 -0
- data/lib/opsgenie_sdk/models/airbrake_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/alert.rb +404 -0
- data/lib/opsgenie_sdk/models/alert_action_payload.rb +205 -0
- data/lib/opsgenie_sdk/models/alert_attachment.rb +193 -0
- data/lib/opsgenie_sdk/models/alert_attachment_meta.rb +193 -0
- data/lib/opsgenie_sdk/models/alert_filter.rb +229 -0
- data/lib/opsgenie_sdk/models/alert_integration.rb +202 -0
- data/lib/opsgenie_sdk/models/alert_log.rb +220 -0
- data/lib/opsgenie_sdk/models/alert_logic_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/alert_note.rb +211 -0
- data/lib/opsgenie_sdk/models/alert_paging.rb +193 -0
- data/lib/opsgenie_sdk/models/alert_policy.rb +472 -0
- data/lib/opsgenie_sdk/models/alert_recipient.rb +220 -0
- data/lib/opsgenie_sdk/models/alert_report.rb +211 -0
- data/lib/opsgenie_sdk/models/alert_request_status.rb +238 -0
- data/lib/opsgenie_sdk/models/alert_site_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/alert_team_meta.rb +189 -0
- data/lib/opsgenie_sdk/models/alert_user_meta.rb +193 -0
- data/lib/opsgenie_sdk/models/all_recipient.rb +233 -0
- data/lib/opsgenie_sdk/models/amazon_cloud_trail_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/amazon_ec2_auto_scaling_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/amazon_rds_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/amazon_route53_health_check_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/amazon_security_hub_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/amazon_ses_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/amazon_sns_callback.rb +274 -0
- data/lib/opsgenie_sdk/models/amazon_sns_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/amazon_sns_outgoing_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/api_integration.rb +493 -0
- data/lib/opsgenie_sdk/models/apica_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/apimetrics_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/app_dynamics_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/app_optics_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/app_signal_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/app_signal_v2_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/assign_alert_payload.rb +219 -0
- data/lib/opsgenie_sdk/models/atatus_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/atlassian_bamboo_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/authenticate_integration_payload.rb +223 -0
- data/lib/opsgenie_sdk/models/auto_close_action.rb +189 -0
- data/lib/opsgenie_sdk/models/auto_restart_action.rb +203 -0
- data/lib/opsgenie_sdk/models/auto_task_email_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/autotask_aem_email_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/azure_auto_scale_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/azure_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/azure_oms_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/azure_resource_health_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/azure_service_health_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/base_alert.rb +364 -0
- data/lib/opsgenie_sdk/models/base_incident.rb +313 -0
- data/lib/opsgenie_sdk/models/base_incoming_feature.rb +356 -0
- data/lib/opsgenie_sdk/models/base_integration_action.rb +275 -0
- data/lib/opsgenie_sdk/models/base_response.rb +205 -0
- data/lib/opsgenie_sdk/models/base_response_with_expandable.rb +216 -0
- data/lib/opsgenie_sdk/models/base_webhook_callback.rb +306 -0
- data/lib/opsgenie_sdk/models/bidirectional_callback.rb +268 -0
- data/lib/opsgenie_sdk/models/bidirectional_callback_new.rb +288 -0
- data/lib/opsgenie_sdk/models/big_panda_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/bitbucket_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/blue_matador_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/bmc_foot_prints_v11_callback.rb +333 -0
- data/lib/opsgenie_sdk/models/bmc_foot_prints_v11_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/bmc_foot_prints_v12_callback.rb +324 -0
- data/lib/opsgenie_sdk/models/bmc_foot_prints_v12_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/bmc_remedy_callback.rb +324 -0
- data/lib/opsgenie_sdk/models/bmc_remedy_force_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/bmc_remedy_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/bmc_remedy_on_demand_callback.rb +292 -0
- data/lib/opsgenie_sdk/models/bmc_remedy_on_demand_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/boundary_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/callback_condition.rb +281 -0
- data/lib/opsgenie_sdk/models/campfire_callback.rb +276 -0
- data/lib/opsgenie_sdk/models/campfire_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/catchpoint_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/change_notification_rule_order_payload.rb +199 -0
- data/lib/opsgenie_sdk/models/change_policy_order_payload.rb +209 -0
- data/lib/opsgenie_sdk/models/change_team_routing_rule_order_payload.rb +185 -0
- data/lib/opsgenie_sdk/models/check_mk_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/cherwell_callback.rb +324 -0
- data/lib/opsgenie_sdk/models/cherwell_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/circle_ci_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/circonus_callback.rb +297 -0
- data/lib/opsgenie_sdk/models/circonus_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/close_alert_payload.rb +205 -0
- data/lib/opsgenie_sdk/models/close_incident_payload.rb +185 -0
- data/lib/opsgenie_sdk/models/close_integration_action.rb +302 -0
- data/lib/opsgenie_sdk/models/cloud_monix_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/cloud_sploit_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/cloud_watch_events_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/cloud_watch_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/codeship_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/common_integration_action.rb +302 -0
- data/lib/opsgenie_sdk/models/compose_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/condition.rb +291 -0
- data/lib/opsgenie_sdk/models/connect_wise_automate_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/connect_wise_callback.rb +277 -0
- data/lib/opsgenie_sdk/models/connect_wise_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/connect_wise_manage_callback.rb +342 -0
- data/lib/opsgenie_sdk/models/connect_wise_manage_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/connect_wise_manage_v2_callback.rb +360 -0
- data/lib/opsgenie_sdk/models/connect_wise_manage_v2_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/consul_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/contact.rb +211 -0
- data/lib/opsgenie_sdk/models/contact_meta.rb +237 -0
- data/lib/opsgenie_sdk/models/contact_status.rb +193 -0
- data/lib/opsgenie_sdk/models/contact_with_apply_order.rb +220 -0
- data/lib/opsgenie_sdk/models/copper_egg_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/crashlytics_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/create_alert_payload.rb +354 -0
- data/lib/opsgenie_sdk/models/create_contact_payload.rb +239 -0
- data/lib/opsgenie_sdk/models/create_custom_user_role_payload.rb +224 -0
- data/lib/opsgenie_sdk/models/create_escalation_payload.rb +237 -0
- data/lib/opsgenie_sdk/models/create_forwarding_rule_payload.rb +245 -0
- data/lib/opsgenie_sdk/models/create_forwarding_rule_response.rb +214 -0
- data/lib/opsgenie_sdk/models/create_heartbeat_payload.rb +175 -0
- data/lib/opsgenie_sdk/models/create_heartbeat_response.rb +214 -0
- data/lib/opsgenie_sdk/models/create_incident_payload.rb +317 -0
- data/lib/opsgenie_sdk/models/create_integration_action.rb +486 -0
- data/lib/opsgenie_sdk/models/create_integration_actions_response.rb +214 -0
- data/lib/opsgenie_sdk/models/create_integration_response.rb +214 -0
- data/lib/opsgenie_sdk/models/create_maintenance_payload.rb +217 -0
- data/lib/opsgenie_sdk/models/create_maintenance_response.rb +214 -0
- data/lib/opsgenie_sdk/models/create_notification_rule_payload.rb +308 -0
- data/lib/opsgenie_sdk/models/create_notification_rule_response.rb +214 -0
- data/lib/opsgenie_sdk/models/create_notification_rule_step_payload.rb +215 -0
- data/lib/opsgenie_sdk/models/create_policy_response.rb +214 -0
- data/lib/opsgenie_sdk/models/create_saved_search_payload.rb +291 -0
- data/lib/opsgenie_sdk/models/create_saved_search_response.rb +214 -0
- data/lib/opsgenie_sdk/models/create_schedule_override_payload.rb +242 -0
- data/lib/opsgenie_sdk/models/create_schedule_override_response.rb +214 -0
- data/lib/opsgenie_sdk/models/create_schedule_payload.rb +241 -0
- data/lib/opsgenie_sdk/models/create_schedule_response.rb +214 -0
- data/lib/opsgenie_sdk/models/create_schedule_rotation_payload.rb +296 -0
- data/lib/opsgenie_sdk/models/create_team_payload.rb +212 -0
- data/lib/opsgenie_sdk/models/create_team_role_payload.rb +207 -0
- data/lib/opsgenie_sdk/models/create_team_routing_rule_payload.rb +237 -0
- data/lib/opsgenie_sdk/models/create_user_payload.rb +332 -0
- data/lib/opsgenie_sdk/models/custom_user_role.rb +227 -0
- data/lib/opsgenie_sdk/models/datadog_callback.rb +306 -0
- data/lib/opsgenie_sdk/models/datadog_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/dataloop_io_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/deduplication_action.rb +274 -0
- data/lib/opsgenie_sdk/models/delay_action.rb +298 -0
- data/lib/opsgenie_sdk/models/deprecated_alert_policy.rb +283 -0
- data/lib/opsgenie_sdk/models/deprecated_alert_policy_meta.rb +254 -0
- data/lib/opsgenie_sdk/models/deprecated_auto_close_alert_policy.rb +293 -0
- data/lib/opsgenie_sdk/models/deprecated_auto_restart_notifications_alert_policy.rb +303 -0
- data/lib/opsgenie_sdk/models/deprecated_change_alert_policy_order_payload.rb +209 -0
- data/lib/opsgenie_sdk/models/deprecated_create_alert_policy_response.rb +214 -0
- data/lib/opsgenie_sdk/models/deprecated_get_alert_policy_response.rb +214 -0
- data/lib/opsgenie_sdk/models/deprecated_list_alert_policies_response.rb +216 -0
- data/lib/opsgenie_sdk/models/deprecated_modify_alert_policy.rb +462 -0
- data/lib/opsgenie_sdk/models/deprecated_notification_deduplication_alert_policy.rb +349 -0
- data/lib/opsgenie_sdk/models/deprecated_notification_delay_alert_policy.rb +383 -0
- data/lib/opsgenie_sdk/models/deprecated_notification_renotify_alert_policy.rb +283 -0
- data/lib/opsgenie_sdk/models/deprecated_notification_suppress_alert_policy.rb +283 -0
- data/lib/opsgenie_sdk/models/desk_callback.rb +313 -0
- data/lib/opsgenie_sdk/models/desk_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/detectify_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/disable_heartbeat_response.rb +214 -0
- data/lib/opsgenie_sdk/models/disable_integration_response.rb +214 -0
- data/lib/opsgenie_sdk/models/dns_check_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/drip_stat_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/duration.rb +234 -0
- data/lib/opsgenie_sdk/models/dynatrace_app_mon_callback.rb +324 -0
- data/lib/opsgenie_sdk/models/dynatrace_app_mon_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/dynatrace_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/dynatrace_v2_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/email_based_incoming_feature.rb +375 -0
- data/lib/opsgenie_sdk/models/email_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/enable_heartbeat_response.rb +214 -0
- data/lib/opsgenie_sdk/models/enable_integration_response.rb +214 -0
- data/lib/opsgenie_sdk/models/error_response.rb +234 -0
- data/lib/opsgenie_sdk/models/errorception_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/escalate_alert_to_next_payload.rb +219 -0
- data/lib/opsgenie_sdk/models/escalation.rb +231 -0
- data/lib/opsgenie_sdk/models/escalation_recipient.rb +242 -0
- data/lib/opsgenie_sdk/models/escalation_repeat.rb +211 -0
- data/lib/opsgenie_sdk/models/escalation_rule.rb +281 -0
- data/lib/opsgenie_sdk/models/evident_io_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/execute_custom_alert_action_payload.rb +205 -0
- data/lib/opsgenie_sdk/models/filter.rb +224 -0
- data/lib/opsgenie_sdk/models/flock_callback.rb +306 -0
- data/lib/opsgenie_sdk/models/flock_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/flowdock_callback.rb +267 -0
- data/lib/opsgenie_sdk/models/flowdock_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/flowdock_v2_callback.rb +247 -0
- data/lib/opsgenie_sdk/models/flowdock_v2_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/forwarding_rule.rb +229 -0
- data/lib/opsgenie_sdk/models/forwarding_rule_meta.rb +193 -0
- data/lib/opsgenie_sdk/models/freshdesk_callback.rb +306 -0
- data/lib/opsgenie_sdk/models/freshdesk_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/freshservice_callback.rb +315 -0
- data/lib/opsgenie_sdk/models/freshservice_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/get_account_info_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_alert_attachment_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_alert_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_contact_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_count_alerts_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_count_alerts_response_data.rb +184 -0
- data/lib/opsgenie_sdk/models/get_custom_user_role_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_escalation_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_forwarding_rule_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_heartbeat_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_incident_request_status_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_incident_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_integration_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_maintenance_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_next_on_call_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_notification_rule_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_notification_rule_step_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_on_call_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_policy_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_request_status_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_saved_search_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_schedule_override_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_schedule_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_schedule_rotation_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_schedule_timeline_response.rb +225 -0
- data/lib/opsgenie_sdk/models/get_team_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_team_role_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_team_routing_rule_response.rb +214 -0
- data/lib/opsgenie_sdk/models/get_user_response.rb +225 -0
- data/lib/opsgenie_sdk/models/ghost_inspector_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/git_hub_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/git_lab_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/google_stack_driver_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/grafana_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/grafana_v2_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/graylog_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/group_recipient.rb +242 -0
- data/lib/opsgenie_sdk/models/heartbeat.rb +272 -0
- data/lib/opsgenie_sdk/models/heartbeat_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/heartbeat_meta.rb +202 -0
- data/lib/opsgenie_sdk/models/hip_chat_add_on_callback.rb +304 -0
- data/lib/opsgenie_sdk/models/hip_chat_add_on_integration.rb +609 -0
- data/lib/opsgenie_sdk/models/hip_chat_callback_v2.rb +306 -0
- data/lib/opsgenie_sdk/models/hip_chat_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/hip_chat_integration_v2.rb +484 -0
- data/lib/opsgenie_sdk/models/honeybadger_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/hosted_graphite_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/hp_service_manager_callback.rb +306 -0
- data/lib/opsgenie_sdk/models/hp_service_manager_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/humio_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/icinga2_callback.rb +286 -0
- data/lib/opsgenie_sdk/models/icinga2_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/icinga_callback.rb +286 -0
- data/lib/opsgenie_sdk/models/icinga_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/ignore_integration_action.rb +275 -0
- data/lib/opsgenie_sdk/models/incident.rb +322 -0
- data/lib/opsgenie_sdk/models/incident_action_payload.rb +185 -0
- data/lib/opsgenie_sdk/models/incident_request_status.rb +238 -0
- data/lib/opsgenie_sdk/models/incoming_call_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/instana_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/integration.rb +287 -0
- data/lib/opsgenie_sdk/models/integration_action_filter.rb +229 -0
- data/lib/opsgenie_sdk/models/integration_condition.rb +245 -0
- data/lib/opsgenie_sdk/models/integration_meta.rb +229 -0
- data/lib/opsgenie_sdk/models/jenkins_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/jira_callback.rb +333 -0
- data/lib/opsgenie_sdk/models/jira_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/jira_service_desk_callback.rb +333 -0
- data/lib/opsgenie_sdk/models/jira_service_desk_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/kapacitor_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/kayako_callback.rb +315 -0
- data/lib/opsgenie_sdk/models/kayako_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/kore_callback.rb +306 -0
- data/lib/opsgenie_sdk/models/kore_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/lab_tech_email_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/librato_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/libre_nms_callback.rb +306 -0
- data/lib/opsgenie_sdk/models/libre_nms_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/lightstep_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/list_alert_attachments_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_alert_logs_response.rb +225 -0
- data/lib/opsgenie_sdk/models/list_alert_notes_response.rb +225 -0
- data/lib/opsgenie_sdk/models/list_alert_recipients_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_alerts_response.rb +225 -0
- data/lib/opsgenie_sdk/models/list_contacts_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_custom_user_roles_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_escalations_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_forwarding_rules_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_heartbeat_response.rb +214 -0
- data/lib/opsgenie_sdk/models/list_heartbeat_response_data.rb +186 -0
- data/lib/opsgenie_sdk/models/list_incidents_response.rb +225 -0
- data/lib/opsgenie_sdk/models/list_integration_actions_response.rb +214 -0
- data/lib/opsgenie_sdk/models/list_integrations_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_maintenance_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_notification_rule_steps_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_notification_rules_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_on_calls_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_policies_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_saved_searches_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_schedule_override_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_schedule_rotations_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_schedules_response.rb +227 -0
- data/lib/opsgenie_sdk/models/list_service_incident_rules_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_services_response.rb +225 -0
- data/lib/opsgenie_sdk/models/list_team_logs_response.rb +214 -0
- data/lib/opsgenie_sdk/models/list_team_role_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_team_routing_rules_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_teams_response.rb +227 -0
- data/lib/opsgenie_sdk/models/list_user_escalations_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_user_forwarding_rules_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_user_schedules_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_user_teams_response.rb +216 -0
- data/lib/opsgenie_sdk/models/list_users_response.rb +234 -0
- data/lib/opsgenie_sdk/models/logentries_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/loggly_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/logic_monitor_callback.rb +315 -0
- data/lib/opsgenie_sdk/models/logic_monitor_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/logstash_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/logz_io_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/looker_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/loom_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/magentrix_callback.rb +315 -0
- data/lib/opsgenie_sdk/models/magentrix_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/maintenance.rb +261 -0
- data/lib/opsgenie_sdk/models/maintenance_entity.rb +238 -0
- data/lib/opsgenie_sdk/models/maintenance_meta.rb +249 -0
- data/lib/opsgenie_sdk/models/maintenance_rule.rb +233 -0
- data/lib/opsgenie_sdk/models/maintenance_time.rb +244 -0
- data/lib/opsgenie_sdk/models/manage_engine_integration_dto.rb +287 -0
- data/lib/opsgenie_sdk/models/marid_callback.rb +268 -0
- data/lib/opsgenie_sdk/models/marid_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/match_all.rb +224 -0
- data/lib/opsgenie_sdk/models/match_all_conditions.rb +235 -0
- data/lib/opsgenie_sdk/models/match_any_condition.rb +235 -0
- data/lib/opsgenie_sdk/models/mattermost_callback.rb +277 -0
- data/lib/opsgenie_sdk/models/mattermost_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/mongo_db_cloud_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/monitis_email_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/monitis_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/moxtra_callback.rb +306 -0
- data/lib/opsgenie_sdk/models/moxtra_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/ms_teams_callback.rb +297 -0
- data/lib/opsgenie_sdk/models/ms_teams_integration.rb +611 -0
- data/lib/opsgenie_sdk/models/ms_teams_v2_callback.rb +306 -0
- data/lib/opsgenie_sdk/models/ms_teams_v2_integration.rb +629 -0
- data/lib/opsgenie_sdk/models/nagios_based_v1_callback.rb +286 -0
- data/lib/opsgenie_sdk/models/nagios_based_v2_callback.rb +286 -0
- data/lib/opsgenie_sdk/models/nagios_integration_v1.rb +484 -0
- data/lib/opsgenie_sdk/models/nagios_integration_v2.rb +484 -0
- data/lib/opsgenie_sdk/models/nagios_xi_integration_v1.rb +484 -0
- data/lib/opsgenie_sdk/models/nagios_xi_integration_v2.rb +484 -0
- data/lib/opsgenie_sdk/models/nagios_xiv1_callback.rb +286 -0
- data/lib/opsgenie_sdk/models/nagios_xiv2_callback.rb +286 -0
- data/lib/opsgenie_sdk/models/netuitive_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/neustar_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/new_relic_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/new_relic_v2_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/next_on_call.rb +228 -0
- data/lib/opsgenie_sdk/models/no_recipient.rb +233 -0
- data/lib/opsgenie_sdk/models/node_ping_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/notification_action_type.rb +37 -0
- data/lib/opsgenie_sdk/models/notification_policy.rb +343 -0
- data/lib/opsgenie_sdk/models/notification_repeat.rb +209 -0
- data/lib/opsgenie_sdk/models/notification_rule.rb +280 -0
- data/lib/opsgenie_sdk/models/notification_rule_meta.rb +220 -0
- data/lib/opsgenie_sdk/models/notification_rule_step.rb +220 -0
- data/lib/opsgenie_sdk/models/notification_rule_step_parent.rb +193 -0
- data/lib/opsgenie_sdk/models/notify_time.rb +32 -0
- data/lib/opsgenie_sdk/models/observium_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/observium_v2_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/oec_callback.rb +247 -0
- data/lib/opsgenie_sdk/models/oec_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/oem_email_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/oem_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/on_call.rb +206 -0
- data/lib/opsgenie_sdk/models/op5_callback.rb +315 -0
- data/lib/opsgenie_sdk/models/op5_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/ops_dash_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/ops_genie_callback.rb +297 -0
- data/lib/opsgenie_sdk/models/ops_genie_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/opsview_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/outgoing_callback.rb +238 -0
- data/lib/opsgenie_sdk/models/outgoing_callback_new.rb +247 -0
- data/lib/opsgenie_sdk/models/page_details.rb +211 -0
- data/lib/opsgenie_sdk/models/pager_duty_compatibility_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/panopta_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/papertrail_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/participant.rb +242 -0
- data/lib/opsgenie_sdk/models/pingdom_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/pingdom_v2_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/pingdom_webhook_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/pingometer_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/planio_callback.rb +265 -0
- data/lib/opsgenie_sdk/models/planio_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/policy.rb +293 -0
- data/lib/opsgenie_sdk/models/policy_meta.rb +254 -0
- data/lib/opsgenie_sdk/models/prometheus_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/prtg_callback.rb +315 -0
- data/lib/opsgenie_sdk/models/prtg_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/rackspace_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/raygun_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/recipient.rb +232 -0
- data/lib/opsgenie_sdk/models/red_gate_sql_monitor_email_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/responder.rb +237 -0
- data/lib/opsgenie_sdk/models/riemann_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/rigor_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/ring_central_email_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/ring_central_glip_callback.rb +306 -0
- data/lib/opsgenie_sdk/models/ring_central_glip_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/rollbar_callback.rb +297 -0
- data/lib/opsgenie_sdk/models/rollbar_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/runscope_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/sales_force_service_cloud_callback.rb +333 -0
- data/lib/opsgenie_sdk/models/sales_force_service_cloud_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/salt_stack_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/saved_search.rb +249 -0
- data/lib/opsgenie_sdk/models/saved_search_entity.rb +184 -0
- data/lib/opsgenie_sdk/models/saved_search_meta.rb +193 -0
- data/lib/opsgenie_sdk/models/scalyr_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/schedule.rb +240 -0
- data/lib/opsgenie_sdk/models/schedule_meta.rb +202 -0
- data/lib/opsgenie_sdk/models/schedule_override.rb +231 -0
- data/lib/opsgenie_sdk/models/schedule_override_meta.rb +184 -0
- data/lib/opsgenie_sdk/models/schedule_override_rotation.rb +193 -0
- data/lib/opsgenie_sdk/models/schedule_recipient.rb +242 -0
- data/lib/opsgenie_sdk/models/schedule_rotation.rb +283 -0
- data/lib/opsgenie_sdk/models/schedule_rotation_with_parent.rb +292 -0
- data/lib/opsgenie_sdk/models/schedule_timeline.rb +238 -0
- data/lib/opsgenie_sdk/models/scom_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/scout_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/sematext_spm_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/sensu_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/sentry_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/server_density_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/server_guard24_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/service.rb +274 -0
- data/lib/opsgenie_sdk/models/service_incident_condition.rb +281 -0
- data/lib/opsgenie_sdk/models/service_incident_properties.rb +287 -0
- data/lib/opsgenie_sdk/models/service_incident_rule.rb +265 -0
- data/lib/opsgenie_sdk/models/service_incident_stakeholder_properties.rb +210 -0
- data/lib/opsgenie_sdk/models/service_now_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/service_now_v2_callback.rb +315 -0
- data/lib/opsgenie_sdk/models/service_now_v2_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/service_now_v3_callback.rb +315 -0
- data/lib/opsgenie_sdk/models/service_now_v3_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/signal_fxv2_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/signal_sciences_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/signalfx_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/site24x7_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/slack_app_callback.rb +313 -0
- data/lib/opsgenie_sdk/models/slack_app_integration.rb +627 -0
- data/lib/opsgenie_sdk/models/slack_callback.rb +277 -0
- data/lib/opsgenie_sdk/models/slack_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/snooze_alert_payload.rb +220 -0
- data/lib/opsgenie_sdk/models/soasta_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/solar_winds_web_help_desk_callback.rb +286 -0
- data/lib/opsgenie_sdk/models/solar_winds_web_help_desk_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/solarwinds_callback.rb +286 -0
- data/lib/opsgenie_sdk/models/solarwinds_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/solarwinds_msp_ncentral_callback.rb +315 -0
- data/lib/opsgenie_sdk/models/solarwinds_mspn_central_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/splunk_callback.rb +306 -0
- data/lib/opsgenie_sdk/models/splunk_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/splunk_itsi_callback.rb +315 -0
- data/lib/opsgenie_sdk/models/splunk_itsi_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/stack_storm_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/stackdriver_callback.rb +277 -0
- data/lib/opsgenie_sdk/models/stackdriver_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/status_cake_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/status_hub_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/status_io_callback.rb +295 -0
- data/lib/opsgenie_sdk/models/status_io_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/status_page_entry.rb +195 -0
- data/lib/opsgenie_sdk/models/status_page_io_callback.rb +306 -0
- data/lib/opsgenie_sdk/models/status_page_io_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/statusy_callback.rb +306 -0
- data/lib/opsgenie_sdk/models/statusy_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/struxure_ware_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/success_data.rb +193 -0
- data/lib/opsgenie_sdk/models/success_response.rb +223 -0
- data/lib/opsgenie_sdk/models/sumo_logic_callback.rb +297 -0
- data/lib/opsgenie_sdk/models/sumo_logic_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/sysdig_cloud_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/team.rb +213 -0
- data/lib/opsgenie_sdk/models/team_log.rb +195 -0
- data/lib/opsgenie_sdk/models/team_log_details.rb +202 -0
- data/lib/opsgenie_sdk/models/team_member.rb +196 -0
- data/lib/opsgenie_sdk/models/team_meta.rb +193 -0
- data/lib/opsgenie_sdk/models/team_recipient.rb +242 -0
- data/lib/opsgenie_sdk/models/team_responder.rb +247 -0
- data/lib/opsgenie_sdk/models/team_right.rb +198 -0
- data/lib/opsgenie_sdk/models/team_role.rb +204 -0
- data/lib/opsgenie_sdk/models/team_routing_rule.rb +247 -0
- data/lib/opsgenie_sdk/models/thousand_eyes_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/threat_stack_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/thundra_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/tideways_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/time_of_day_restriction.rb +211 -0
- data/lib/opsgenie_sdk/models/time_of_day_restriction_interval.rb +233 -0
- data/lib/opsgenie_sdk/models/time_restriction_interval.rb +223 -0
- data/lib/opsgenie_sdk/models/timeline.rb +186 -0
- data/lib/opsgenie_sdk/models/timeline_period.rb +233 -0
- data/lib/opsgenie_sdk/models/timeline_recipient.rb +212 -0
- data/lib/opsgenie_sdk/models/timeline_rotation.rb +213 -0
- data/lib/opsgenie_sdk/models/token_based_incoming_feature.rb +394 -0
- data/lib/opsgenie_sdk/models/trace_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/track_it_callback.rb +286 -0
- data/lib/opsgenie_sdk/models/track_it_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/travis_ci_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/twilio_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/un_acknowledge_alert_payload.rb +205 -0
- data/lib/opsgenie_sdk/models/update_alert_description_payload.rb +190 -0
- data/lib/opsgenie_sdk/models/update_alert_message_payload.rb +190 -0
- data/lib/opsgenie_sdk/models/update_alert_priority_payload.rb +224 -0
- data/lib/opsgenie_sdk/models/update_contact_payload.rb +190 -0
- data/lib/opsgenie_sdk/models/update_custom_user_role_payload.rb +219 -0
- data/lib/opsgenie_sdk/models/update_escalation_payload.rb +227 -0
- data/lib/opsgenie_sdk/models/update_forwarding_rule_payload.rb +235 -0
- data/lib/opsgenie_sdk/models/update_heartbeat_payload.rb +279 -0
- data/lib/opsgenie_sdk/models/update_heartbeat_response.rb +214 -0
- data/lib/opsgenie_sdk/models/update_integration_actions_response.rb +214 -0
- data/lib/opsgenie_sdk/models/update_integration_response.rb +214 -0
- data/lib/opsgenie_sdk/models/update_maintenance_payload.rb +217 -0
- data/lib/opsgenie_sdk/models/update_maintenance_response.rb +214 -0
- data/lib/opsgenie_sdk/models/update_notification_rule_payload.rb +285 -0
- data/lib/opsgenie_sdk/models/update_notification_rule_response.rb +214 -0
- data/lib/opsgenie_sdk/models/update_notification_rule_step_payload.rb +205 -0
- data/lib/opsgenie_sdk/models/update_saved_search_payload.rb +291 -0
- data/lib/opsgenie_sdk/models/update_schedule_override_payload.rb +232 -0
- data/lib/opsgenie_sdk/models/update_schedule_override_response.rb +214 -0
- data/lib/opsgenie_sdk/models/update_schedule_payload.rb +236 -0
- data/lib/opsgenie_sdk/models/update_schedule_response.rb +214 -0
- data/lib/opsgenie_sdk/models/update_schedule_rotation_payload.rb +281 -0
- data/lib/opsgenie_sdk/models/update_team_payload.rb +206 -0
- data/lib/opsgenie_sdk/models/update_team_role_payload.rb +197 -0
- data/lib/opsgenie_sdk/models/update_team_routing_rule_payload.rb +222 -0
- data/lib/opsgenie_sdk/models/update_user_payload.rb +309 -0
- data/lib/opsgenie_sdk/models/updown_io_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/uptime_robot_email_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/uptime_robot_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/uptime_webhook_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/uptrends_email_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/user.rb +323 -0
- data/lib/opsgenie_sdk/models/user_address.rb +220 -0
- data/lib/opsgenie_sdk/models/user_contact.rb +254 -0
- data/lib/opsgenie_sdk/models/user_meta.rb +193 -0
- data/lib/opsgenie_sdk/models/user_recipient.rb +242 -0
- data/lib/opsgenie_sdk/models/user_responder.rb +238 -0
- data/lib/opsgenie_sdk/models/user_role.rb +193 -0
- data/lib/opsgenie_sdk/models/v_center_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/vcsa_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/vivid_cortex_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/wavefront_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/webhook_callback.rb +306 -0
- data/lib/opsgenie_sdk/models/webhook_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/weekday_time_restriction.rb +275 -0
- data/lib/opsgenie_sdk/models/weekday_time_restriction_interval.rb +235 -0
- data/lib/opsgenie_sdk/models/whats_up_gold_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/workato_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/x_pack_alerting_callback.rb +286 -0
- data/lib/opsgenie_sdk/models/x_pack_alerting_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/xl_release_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/xmpp_callback.rb +286 -0
- data/lib/opsgenie_sdk/models/xmpp_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/zabbix_callback.rb +286 -0
- data/lib/opsgenie_sdk/models/zabbix_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/zapier_integration.rb +287 -0
- data/lib/opsgenie_sdk/models/zendesk_callback.rb +315 -0
- data/lib/opsgenie_sdk/models/zendesk_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/zenoss_callback.rb +286 -0
- data/lib/opsgenie_sdk/models/zenoss_integration.rb +484 -0
- data/lib/opsgenie_sdk/models/zyrion_integration.rb +287 -0
- data/lib/opsgenie_sdk/version.rb +15 -0
- data/opsgenie_sdk.gemspec +45 -0
- data/spec/api/account_api_spec.rb +46 -0
- data/spec/api/alert_api_spec.rb +532 -0
- data/spec/api/contact_api_spec.rb +126 -0
- data/spec/api/custom_user_role_api_spec.rb +98 -0
- data/spec/api/deprecated_policy_api_spec.rb +132 -0
- data/spec/api/escalation_api_spec.rb +98 -0
- data/spec/api/forwarding_rule_api_spec.rb +98 -0
- data/spec/api/heartbeat_api_spec.rb +131 -0
- data/spec/api/incident_api_spec.rb +115 -0
- data/spec/api/integration_action_api_spec.rb +73 -0
- data/spec/api/integration_api_spec.rb +134 -0
- data/spec/api/maintenance_api_spec.rb +108 -0
- data/spec/api/notification_rule_api_spec.rb +140 -0
- data/spec/api/notification_rule_step_api_spec.rb +133 -0
- data/spec/api/policy_api_spec.rb +152 -0
- data/spec/api/schedule_api_spec.rb +129 -0
- data/spec/api/schedule_override_api_spec.rb +105 -0
- data/spec/api/schedule_rotation_api_spec.rb +105 -0
- data/spec/api/team_api_spec.rb +113 -0
- data/spec/api/team_member_api_spec.rb +63 -0
- data/spec/api/team_role_api_spec.rb +108 -0
- data/spec/api/team_routing_rule_api_spec.rb +120 -0
- data/spec/api/user_api_spec.rb +149 -0
- data/spec/api/who_is_on_call_api_spec.rb +90 -0
- data/spec/api_client_spec.rb +243 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_info_spec.rb +53 -0
- data/spec/models/account_plan_spec.rb +53 -0
- data/spec/models/ack_integration_action_spec.rb +81 -0
- data/spec/models/acknowledge_alert_payload_spec.rb +53 -0
- data/spec/models/action_categorized_spec.rb +71 -0
- data/spec/models/action_mapping_spec.rb +67 -0
- data/spec/models/add_details_to_alert_payload_spec.rb +59 -0
- data/spec/models/add_note_integration_action_spec.rb +81 -0
- data/spec/models/add_note_to_alert_payload_spec.rb +53 -0
- data/spec/models/add_responder_to_alert_payload_spec.rb +59 -0
- data/spec/models/add_tags_to_alert_payload_spec.rb +59 -0
- data/spec/models/add_team_member_payload_spec.rb +47 -0
- data/spec/models/add_team_to_alert_payload_spec.rb +59 -0
- data/spec/models/airbrake_integration_spec.rb +81 -0
- data/spec/models/alert_action_payload_spec.rb +53 -0
- data/spec/models/alert_attachment_meta_spec.rb +47 -0
- data/spec/models/alert_attachment_spec.rb +47 -0
- data/spec/models/alert_filter_spec.rb +51 -0
- data/spec/models/alert_integration_spec.rb +53 -0
- data/spec/models/alert_log_spec.rb +65 -0
- data/spec/models/alert_logic_integration_spec.rb +81 -0
- data/spec/models/alert_note_spec.rb +59 -0
- data/spec/models/alert_paging_spec.rb +47 -0
- data/spec/models/alert_policy_spec.rb +187 -0
- data/spec/models/alert_recipient_spec.rb +65 -0
- data/spec/models/alert_report_spec.rb +59 -0
- data/spec/models/alert_request_status_spec.rb +77 -0
- data/spec/models/alert_site_integration_spec.rb +81 -0
- data/spec/models/alert_spec.rb +179 -0
- data/spec/models/alert_team_meta_spec.rb +41 -0
- data/spec/models/alert_user_meta_spec.rb +47 -0
- data/spec/models/all_recipient_spec.rb +51 -0
- data/spec/models/amazon_cloud_trail_integration_spec.rb +81 -0
- data/spec/models/amazon_ec2_auto_scaling_integration_spec.rb +81 -0
- data/spec/models/amazon_rds_integration_spec.rb +81 -0
- data/spec/models/amazon_route53_health_check_integration_spec.rb +81 -0
- data/spec/models/amazon_security_hub_integration_spec.rb +81 -0
- data/spec/models/amazon_ses_integration_spec.rb +81 -0
- data/spec/models/amazon_sns_callback_spec.rb +81 -0
- data/spec/models/amazon_sns_integration_spec.rb +81 -0
- data/spec/models/amazon_sns_outgoing_integration_spec.rb +81 -0
- data/spec/models/api_integration_spec.rb +205 -0
- data/spec/models/apica_integration_spec.rb +81 -0
- data/spec/models/apimetrics_integration_spec.rb +81 -0
- data/spec/models/app_dynamics_integration_spec.rb +81 -0
- data/spec/models/app_optics_integration_spec.rb +81 -0
- data/spec/models/app_signal_integration_spec.rb +81 -0
- data/spec/models/app_signal_v2_integration_spec.rb +81 -0
- data/spec/models/assign_alert_payload_spec.rb +59 -0
- data/spec/models/atatus_integration_spec.rb +81 -0
- data/spec/models/atlassian_bamboo_integration_spec.rb +81 -0
- data/spec/models/authenticate_integration_payload_spec.rb +45 -0
- data/spec/models/auto_close_action_spec.rb +41 -0
- data/spec/models/auto_restart_action_spec.rb +47 -0
- data/spec/models/auto_task_email_integration_spec.rb +81 -0
- data/spec/models/autotask_aem_email_integration_spec.rb +81 -0
- data/spec/models/azure_auto_scale_integration_spec.rb +81 -0
- data/spec/models/azure_integration_spec.rb +81 -0
- data/spec/models/azure_oms_integration_spec.rb +81 -0
- data/spec/models/azure_resource_health_integration_spec.rb +81 -0
- data/spec/models/azure_service_health_integration_spec.rb +81 -0
- data/spec/models/base_alert_spec.rb +155 -0
- data/spec/models/base_incident_spec.rb +119 -0
- data/spec/models/base_incoming_feature_spec.rb +129 -0
- data/spec/models/base_integration_action_spec.rb +63 -0
- data/spec/models/base_response_spec.rb +47 -0
- data/spec/models/base_response_with_expandable_spec.rb +53 -0
- data/spec/models/base_webhook_callback_spec.rb +97 -0
- data/spec/models/bidirectional_callback_new_spec.rb +85 -0
- data/spec/models/bidirectional_callback_spec.rb +73 -0
- data/spec/models/big_panda_integration_spec.rb +81 -0
- data/spec/models/bitbucket_integration_spec.rb +81 -0
- data/spec/models/blue_matador_integration_spec.rb +81 -0
- data/spec/models/bmc_foot_prints_v11_callback_spec.rb +115 -0
- data/spec/models/bmc_foot_prints_v11_integration_spec.rb +199 -0
- data/spec/models/bmc_foot_prints_v12_callback_spec.rb +109 -0
- data/spec/models/bmc_foot_prints_v12_integration_spec.rb +199 -0
- data/spec/models/bmc_remedy_callback_spec.rb +109 -0
- data/spec/models/bmc_remedy_force_integration_spec.rb +81 -0
- data/spec/models/bmc_remedy_integration_spec.rb +199 -0
- data/spec/models/bmc_remedy_on_demand_callback_spec.rb +93 -0
- data/spec/models/bmc_remedy_on_demand_integration_spec.rb +81 -0
- data/spec/models/boundary_integration_spec.rb +81 -0
- data/spec/models/callback_condition_spec.rb +73 -0
- data/spec/models/campfire_callback_spec.rb +81 -0
- data/spec/models/campfire_integration_spec.rb +81 -0
- data/spec/models/catchpoint_integration_spec.rb +81 -0
- data/spec/models/change_notification_rule_order_payload_spec.rb +41 -0
- data/spec/models/change_policy_order_payload_spec.rb +41 -0
- data/spec/models/change_team_routing_rule_order_payload_spec.rb +41 -0
- data/spec/models/check_mk_integration_spec.rb +81 -0
- data/spec/models/cherwell_callback_spec.rb +109 -0
- data/spec/models/cherwell_integration_spec.rb +199 -0
- data/spec/models/circle_ci_integration_spec.rb +81 -0
- data/spec/models/circonus_callback_spec.rb +91 -0
- data/spec/models/circonus_integration_spec.rb +199 -0
- data/spec/models/close_alert_payload_spec.rb +53 -0
- data/spec/models/close_incident_payload_spec.rb +41 -0
- data/spec/models/close_integration_action_spec.rb +81 -0
- data/spec/models/cloud_monix_integration_spec.rb +81 -0
- data/spec/models/cloud_sploit_integration_spec.rb +81 -0
- data/spec/models/cloud_watch_events_integration_spec.rb +81 -0
- data/spec/models/cloud_watch_integration_spec.rb +81 -0
- data/spec/models/codeship_integration_spec.rb +81 -0
- data/spec/models/common_integration_action_spec.rb +81 -0
- data/spec/models/compose_integration_spec.rb +81 -0
- data/spec/models/condition_spec.rb +79 -0
- data/spec/models/connect_wise_automate_integration_spec.rb +81 -0
- data/spec/models/connect_wise_callback_spec.rb +79 -0
- data/spec/models/connect_wise_integration_spec.rb +199 -0
- data/spec/models/connect_wise_manage_callback_spec.rb +121 -0
- data/spec/models/connect_wise_manage_integration_spec.rb +199 -0
- data/spec/models/connect_wise_manage_v2_callback_spec.rb +133 -0
- data/spec/models/connect_wise_manage_v2_integration_spec.rb +199 -0
- data/spec/models/consul_integration_spec.rb +81 -0
- data/spec/models/contact_meta_spec.rb +51 -0
- data/spec/models/contact_spec.rb +59 -0
- data/spec/models/contact_status_spec.rb +47 -0
- data/spec/models/contact_with_apply_order_spec.rb +65 -0
- data/spec/models/copper_egg_integration_spec.rb +81 -0
- data/spec/models/crashlytics_integration_spec.rb +81 -0
- data/spec/models/create_alert_payload_spec.rb +117 -0
- data/spec/models/create_contact_payload_spec.rb +51 -0
- data/spec/models/create_custom_user_role_payload_spec.rb +59 -0
- data/spec/models/create_escalation_payload_spec.rb +65 -0
- data/spec/models/create_forwarding_rule_payload_spec.rb +65 -0
- data/spec/models/create_forwarding_rule_response_spec.rb +53 -0
- data/spec/models/create_heartbeat_payload_spec.rb +35 -0
- data/spec/models/create_heartbeat_response_spec.rb +53 -0
- data/spec/models/create_incident_payload_spec.rb +99 -0
- data/spec/models/create_integration_action_spec.rb +193 -0
- data/spec/models/create_integration_actions_response_spec.rb +53 -0
- data/spec/models/create_integration_response_spec.rb +53 -0
- data/spec/models/create_maintenance_payload_spec.rb +53 -0
- data/spec/models/create_maintenance_response_spec.rb +53 -0
- data/spec/models/create_notification_rule_payload_spec.rb +95 -0
- data/spec/models/create_notification_rule_response_spec.rb +53 -0
- data/spec/models/create_notification_rule_step_payload_spec.rb +53 -0
- data/spec/models/create_policy_response_spec.rb +53 -0
- data/spec/models/create_saved_search_payload_spec.rb +65 -0
- data/spec/models/create_saved_search_response_spec.rb +53 -0
- data/spec/models/create_schedule_override_payload_spec.rb +65 -0
- data/spec/models/create_schedule_override_response_spec.rb +53 -0
- data/spec/models/create_schedule_payload_spec.rb +71 -0
- data/spec/models/create_schedule_response_spec.rb +53 -0
- data/spec/models/create_schedule_rotation_payload_spec.rb +81 -0
- data/spec/models/create_team_payload_spec.rb +53 -0
- data/spec/models/create_team_role_payload_spec.rb +47 -0
- data/spec/models/create_team_routing_rule_payload_spec.rb +71 -0
- data/spec/models/create_user_payload_spec.rb +95 -0
- data/spec/models/custom_user_role_spec.rb +65 -0
- data/spec/models/datadog_callback_spec.rb +97 -0
- data/spec/models/datadog_integration_spec.rb +199 -0
- data/spec/models/dataloop_io_integration_spec.rb +81 -0
- data/spec/models/deduplication_action_spec.rb +57 -0
- data/spec/models/delay_action_spec.rb +63 -0
- data/spec/models/deprecated_alert_policy_meta_spec.rb +69 -0
- data/spec/models/deprecated_alert_policy_spec.rb +81 -0
- data/spec/models/deprecated_auto_close_alert_policy_spec.rb +87 -0
- data/spec/models/deprecated_auto_restart_notifications_alert_policy_spec.rb +93 -0
- data/spec/models/deprecated_change_alert_policy_order_payload_spec.rb +41 -0
- data/spec/models/deprecated_create_alert_policy_response_spec.rb +53 -0
- data/spec/models/deprecated_get_alert_policy_response_spec.rb +53 -0
- data/spec/models/deprecated_list_alert_policies_response_spec.rb +53 -0
- data/spec/models/deprecated_modify_alert_policy_spec.rb +181 -0
- data/spec/models/deprecated_notification_deduplication_alert_policy_spec.rb +103 -0
- data/spec/models/deprecated_notification_delay_alert_policy_spec.rb +109 -0
- data/spec/models/deprecated_notification_renotify_alert_policy_spec.rb +81 -0
- data/spec/models/deprecated_notification_suppress_alert_policy_spec.rb +81 -0
- data/spec/models/desk_callback_spec.rb +103 -0
- data/spec/models/desk_integration_spec.rb +199 -0
- data/spec/models/detectify_integration_spec.rb +81 -0
- data/spec/models/disable_heartbeat_response_spec.rb +53 -0
- data/spec/models/disable_integration_response_spec.rb +53 -0
- data/spec/models/dns_check_integration_spec.rb +81 -0
- data/spec/models/drip_stat_integration_spec.rb +81 -0
- data/spec/models/duration_spec.rb +51 -0
- data/spec/models/dynatrace_app_mon_callback_spec.rb +109 -0
- data/spec/models/dynatrace_app_mon_integration_spec.rb +199 -0
- data/spec/models/dynatrace_integration_spec.rb +81 -0
- data/spec/models/dynatrace_v2_integration_spec.rb +81 -0
- data/spec/models/email_based_incoming_feature_spec.rb +141 -0
- data/spec/models/email_integration_spec.rb +81 -0
- data/spec/models/enable_heartbeat_response_spec.rb +53 -0
- data/spec/models/enable_integration_response_spec.rb +53 -0
- data/spec/models/error_response_spec.rb +65 -0
- data/spec/models/errorception_integration_spec.rb +81 -0
- data/spec/models/escalate_alert_to_next_payload_spec.rb +59 -0
- data/spec/models/escalation_recipient_spec.rb +57 -0
- data/spec/models/escalation_repeat_spec.rb +59 -0
- data/spec/models/escalation_rule_spec.rb +67 -0
- data/spec/models/escalation_spec.rb +71 -0
- data/spec/models/evident_io_integration_spec.rb +81 -0
- data/spec/models/execute_custom_alert_action_payload_spec.rb +53 -0
- data/spec/models/filter_spec.rb +45 -0
- data/spec/models/flock_callback_spec.rb +97 -0
- data/spec/models/flock_integration_spec.rb +81 -0
- data/spec/models/flowdock_callback_spec.rb +75 -0
- data/spec/models/flowdock_integration_spec.rb +81 -0
- data/spec/models/flowdock_v2_callback_spec.rb +63 -0
- data/spec/models/flowdock_v2_integration_spec.rb +81 -0
- data/spec/models/forwarding_rule_meta_spec.rb +47 -0
- data/spec/models/forwarding_rule_spec.rb +71 -0
- data/spec/models/freshdesk_callback_spec.rb +97 -0
- data/spec/models/freshdesk_integration_spec.rb +199 -0
- data/spec/models/freshservice_callback_spec.rb +103 -0
- data/spec/models/freshservice_integration_spec.rb +199 -0
- data/spec/models/get_account_info_response_spec.rb +53 -0
- data/spec/models/get_alert_attachment_response_spec.rb +53 -0
- data/spec/models/get_alert_response_spec.rb +53 -0
- data/spec/models/get_contact_response_spec.rb +53 -0
- data/spec/models/get_count_alerts_response_data_spec.rb +41 -0
- data/spec/models/get_count_alerts_response_spec.rb +53 -0
- data/spec/models/get_custom_user_role_response_spec.rb +53 -0
- data/spec/models/get_escalation_response_spec.rb +53 -0
- data/spec/models/get_forwarding_rule_response_spec.rb +53 -0
- data/spec/models/get_heartbeat_response_spec.rb +53 -0
- data/spec/models/get_incident_request_status_response_spec.rb +53 -0
- data/spec/models/get_incident_response_spec.rb +53 -0
- data/spec/models/get_integration_response_spec.rb +53 -0
- data/spec/models/get_maintenance_response_spec.rb +53 -0
- data/spec/models/get_next_on_call_response_spec.rb +53 -0
- data/spec/models/get_notification_rule_response_spec.rb +53 -0
- data/spec/models/get_notification_rule_step_response_spec.rb +53 -0
- data/spec/models/get_on_call_response_spec.rb +53 -0
- data/spec/models/get_policy_response_spec.rb +53 -0
- data/spec/models/get_request_status_response_spec.rb +53 -0
- data/spec/models/get_saved_search_response_spec.rb +53 -0
- data/spec/models/get_schedule_override_response_spec.rb +53 -0
- data/spec/models/get_schedule_response_spec.rb +53 -0
- data/spec/models/get_schedule_rotation_response_spec.rb +53 -0
- data/spec/models/get_schedule_timeline_response_spec.rb +59 -0
- data/spec/models/get_team_response_spec.rb +53 -0
- data/spec/models/get_team_role_response_spec.rb +53 -0
- data/spec/models/get_team_routing_rule_response_spec.rb +53 -0
- data/spec/models/get_user_response_spec.rb +59 -0
- data/spec/models/ghost_inspector_integration_spec.rb +81 -0
- data/spec/models/git_hub_integration_spec.rb +81 -0
- data/spec/models/git_lab_integration_spec.rb +81 -0
- data/spec/models/google_stack_driver_integration_spec.rb +81 -0
- data/spec/models/grafana_integration_spec.rb +81 -0
- data/spec/models/grafana_v2_integration_spec.rb +81 -0
- data/spec/models/graylog_integration_spec.rb +81 -0
- data/spec/models/group_recipient_spec.rb +57 -0
- data/spec/models/heartbeat_integration_spec.rb +81 -0
- data/spec/models/heartbeat_meta_spec.rb +53 -0
- data/spec/models/heartbeat_spec.rb +81 -0
- data/spec/models/hip_chat_add_on_callback_spec.rb +97 -0
- data/spec/models/hip_chat_add_on_integration_spec.rb +273 -0
- data/spec/models/hip_chat_callback_v2_spec.rb +97 -0
- data/spec/models/hip_chat_integration_spec.rb +81 -0
- data/spec/models/hip_chat_integration_v2_spec.rb +199 -0
- data/spec/models/honeybadger_integration_spec.rb +81 -0
- data/spec/models/hosted_graphite_integration_spec.rb +81 -0
- data/spec/models/hp_service_manager_callback_spec.rb +97 -0
- data/spec/models/hp_service_manager_integration_spec.rb +199 -0
- data/spec/models/humio_integration_spec.rb +81 -0
- data/spec/models/icinga2_callback_spec.rb +85 -0
- data/spec/models/icinga2_integration_spec.rb +199 -0
- data/spec/models/icinga_callback_spec.rb +85 -0
- data/spec/models/icinga_integration_spec.rb +199 -0
- data/spec/models/ignore_integration_action_spec.rb +63 -0
- data/spec/models/incident_action_payload_spec.rb +41 -0
- data/spec/models/incident_request_status_spec.rb +77 -0
- data/spec/models/incident_spec.rb +125 -0
- data/spec/models/incoming_call_integration_spec.rb +81 -0
- data/spec/models/instana_integration_spec.rb +81 -0
- data/spec/models/integration_action_filter_spec.rb +51 -0
- data/spec/models/integration_condition_spec.rb +63 -0
- data/spec/models/integration_meta_spec.rb +65 -0
- data/spec/models/integration_spec.rb +81 -0
- data/spec/models/jenkins_integration_spec.rb +81 -0
- data/spec/models/jira_callback_spec.rb +115 -0
- data/spec/models/jira_integration_spec.rb +199 -0
- data/spec/models/jira_service_desk_callback_spec.rb +115 -0
- data/spec/models/jira_service_desk_integration_spec.rb +199 -0
- data/spec/models/kapacitor_integration_spec.rb +81 -0
- data/spec/models/kayako_callback_spec.rb +103 -0
- data/spec/models/kayako_integration_spec.rb +199 -0
- data/spec/models/kore_callback_spec.rb +97 -0
- data/spec/models/kore_integration_spec.rb +81 -0
- data/spec/models/lab_tech_email_integration_spec.rb +81 -0
- data/spec/models/librato_integration_spec.rb +81 -0
- data/spec/models/libre_nms_callback_spec.rb +97 -0
- data/spec/models/libre_nms_integration_spec.rb +199 -0
- data/spec/models/lightstep_integration_spec.rb +81 -0
- data/spec/models/list_alert_attachments_response_spec.rb +53 -0
- data/spec/models/list_alert_logs_response_spec.rb +59 -0
- data/spec/models/list_alert_notes_response_spec.rb +59 -0
- data/spec/models/list_alert_recipients_response_spec.rb +53 -0
- data/spec/models/list_alerts_response_spec.rb +59 -0
- data/spec/models/list_contacts_response_spec.rb +53 -0
- data/spec/models/list_custom_user_roles_response_spec.rb +53 -0
- data/spec/models/list_escalations_response_spec.rb +53 -0
- data/spec/models/list_forwarding_rules_response_spec.rb +53 -0
- data/spec/models/list_heartbeat_response_data_spec.rb +41 -0
- data/spec/models/list_heartbeat_response_spec.rb +53 -0
- data/spec/models/list_incidents_response_spec.rb +59 -0
- data/spec/models/list_integration_actions_response_spec.rb +53 -0
- data/spec/models/list_integrations_response_spec.rb +53 -0
- data/spec/models/list_maintenance_response_spec.rb +53 -0
- data/spec/models/list_notification_rule_steps_response_spec.rb +53 -0
- data/spec/models/list_notification_rules_response_spec.rb +53 -0
- data/spec/models/list_on_calls_response_spec.rb +53 -0
- data/spec/models/list_policies_response_spec.rb +53 -0
- data/spec/models/list_saved_searches_response_spec.rb +53 -0
- data/spec/models/list_schedule_override_response_spec.rb +53 -0
- data/spec/models/list_schedule_rotations_response_spec.rb +53 -0
- data/spec/models/list_schedules_response_spec.rb +59 -0
- data/spec/models/list_team_logs_response_spec.rb +53 -0
- data/spec/models/list_team_role_response_spec.rb +53 -0
- data/spec/models/list_team_routing_rules_response_spec.rb +53 -0
- data/spec/models/list_teams_response_spec.rb +59 -0
- data/spec/models/list_user_escalations_response_spec.rb +53 -0
- data/spec/models/list_user_forwarding_rules_response_spec.rb +53 -0
- data/spec/models/list_user_schedules_response_spec.rb +53 -0
- data/spec/models/list_user_teams_response_spec.rb +53 -0
- data/spec/models/list_users_response_spec.rb +65 -0
- data/spec/models/logentries_integration_spec.rb +81 -0
- data/spec/models/loggly_integration_spec.rb +81 -0
- data/spec/models/logic_monitor_callback_spec.rb +103 -0
- data/spec/models/logic_monitor_integration_spec.rb +199 -0
- data/spec/models/logstash_integration_spec.rb +81 -0
- data/spec/models/logz_io_integration_spec.rb +81 -0
- data/spec/models/looker_integration_spec.rb +81 -0
- data/spec/models/loom_integration_spec.rb +81 -0
- data/spec/models/magentrix_callback_spec.rb +103 -0
- data/spec/models/magentrix_integration_spec.rb +199 -0
- data/spec/models/maintenance_entity_spec.rb +51 -0
- data/spec/models/maintenance_meta_spec.rb +63 -0
- data/spec/models/maintenance_rule_spec.rb +51 -0
- data/spec/models/maintenance_spec.rb +69 -0
- data/spec/models/maintenance_time_spec.rb +57 -0
- data/spec/models/manage_engine_integration_dto_spec.rb +81 -0
- data/spec/models/marid_callback_spec.rb +73 -0
- data/spec/models/marid_integration_spec.rb +199 -0
- data/spec/models/match_all_conditions_spec.rb +51 -0
- data/spec/models/match_all_spec.rb +45 -0
- data/spec/models/match_any_condition_spec.rb +51 -0
- data/spec/models/mattermost_callback_spec.rb +79 -0
- data/spec/models/mattermost_integration_spec.rb +199 -0
- data/spec/models/mongo_db_cloud_integration_spec.rb +81 -0
- data/spec/models/monitis_email_integration_spec.rb +81 -0
- data/spec/models/monitis_integration_spec.rb +81 -0
- data/spec/models/moxtra_callback_spec.rb +97 -0
- data/spec/models/moxtra_integration_spec.rb +81 -0
- data/spec/models/ms_teams_callback_spec.rb +91 -0
- data/spec/models/ms_teams_integration_spec.rb +273 -0
- data/spec/models/ms_teams_v2_callback_spec.rb +97 -0
- data/spec/models/ms_teams_v2_integration_spec.rb +285 -0
- data/spec/models/nagios_based_v1_callback_spec.rb +85 -0
- data/spec/models/nagios_based_v2_callback_spec.rb +85 -0
- data/spec/models/nagios_integration_v1_spec.rb +199 -0
- data/spec/models/nagios_integration_v2_spec.rb +199 -0
- data/spec/models/nagios_xi_integration_v1_spec.rb +199 -0
- data/spec/models/nagios_xi_integration_v2_spec.rb +199 -0
- data/spec/models/nagios_xiv1_callback_spec.rb +85 -0
- data/spec/models/nagios_xiv2_callback_spec.rb +85 -0
- data/spec/models/netuitive_integration_spec.rb +81 -0
- data/spec/models/neustar_integration_spec.rb +81 -0
- data/spec/models/new_relic_integration_spec.rb +81 -0
- data/spec/models/new_relic_v2_integration_spec.rb +81 -0
- data/spec/models/next_on_call_spec.rb +65 -0
- data/spec/models/no_recipient_spec.rb +51 -0
- data/spec/models/node_ping_integration_spec.rb +81 -0
- data/spec/models/notification_action_type_spec.rb +35 -0
- data/spec/models/notification_policy_spec.rb +117 -0
- data/spec/models/notification_repeat_spec.rb +47 -0
- data/spec/models/notification_rule_meta_spec.rb +65 -0
- data/spec/models/notification_rule_spec.rb +101 -0
- data/spec/models/notification_rule_step_parent_spec.rb +47 -0
- data/spec/models/notification_rule_step_spec.rb +65 -0
- data/spec/models/notify_time_spec.rb +35 -0
- data/spec/models/observium_integration_spec.rb +81 -0
- data/spec/models/observium_v2_integration_spec.rb +81 -0
- data/spec/models/oec_callback_spec.rb +63 -0
- data/spec/models/oec_integration_spec.rb +199 -0
- data/spec/models/oem_email_integration_spec.rb +81 -0
- data/spec/models/oem_integration_spec.rb +81 -0
- data/spec/models/on_call_spec.rb +53 -0
- data/spec/models/op5_callback_spec.rb +103 -0
- data/spec/models/op5_integration_spec.rb +199 -0
- data/spec/models/ops_dash_integration_spec.rb +81 -0
- data/spec/models/ops_genie_callback_spec.rb +91 -0
- data/spec/models/ops_genie_integration_spec.rb +199 -0
- data/spec/models/opsview_integration_spec.rb +81 -0
- data/spec/models/outgoing_callback_new_spec.rb +63 -0
- data/spec/models/outgoing_callback_spec.rb +57 -0
- data/spec/models/page_details_spec.rb +59 -0
- data/spec/models/pager_duty_compatibility_integration_spec.rb +81 -0
- data/spec/models/panopta_integration_spec.rb +81 -0
- data/spec/models/papertrail_integration_spec.rb +81 -0
- data/spec/models/participant_spec.rb +77 -0
- data/spec/models/pingdom_integration_spec.rb +81 -0
- data/spec/models/pingdom_v2_integration_spec.rb +81 -0
- data/spec/models/pingdom_webhook_integration_spec.rb +81 -0
- data/spec/models/pingometer_integration_spec.rb +81 -0
- data/spec/models/planio_callback_spec.rb +75 -0
- data/spec/models/planio_integration_spec.rb +81 -0
- data/spec/models/policy_meta_spec.rb +69 -0
- data/spec/models/policy_spec.rb +87 -0
- data/spec/models/prometheus_integration_spec.rb +81 -0
- data/spec/models/prtg_callback_spec.rb +103 -0
- data/spec/models/prtg_integration_spec.rb +199 -0
- data/spec/models/rackspace_integration_spec.rb +81 -0
- data/spec/models/raygun_integration_spec.rb +81 -0
- data/spec/models/recipient_spec.rb +51 -0
- data/spec/models/red_gate_sql_monitor_email_integration_spec.rb +81 -0
- data/spec/models/responder_spec.rb +51 -0
- data/spec/models/riemann_integration_spec.rb +81 -0
- data/spec/models/rigor_integration_spec.rb +81 -0
- data/spec/models/ring_central_email_integration_spec.rb +81 -0
- data/spec/models/ring_central_glip_callback_spec.rb +97 -0
- data/spec/models/ring_central_glip_integration_spec.rb +81 -0
- data/spec/models/rollbar_callback_spec.rb +91 -0
- data/spec/models/rollbar_integration_spec.rb +199 -0
- data/spec/models/runscope_integration_spec.rb +81 -0
- data/spec/models/sales_force_service_cloud_callback_spec.rb +115 -0
- data/spec/models/sales_force_service_cloud_integration_spec.rb +199 -0
- data/spec/models/salt_stack_integration_spec.rb +81 -0
- data/spec/models/saved_search_entity_spec.rb +41 -0
- data/spec/models/saved_search_meta_spec.rb +47 -0
- data/spec/models/saved_search_spec.rb +83 -0
- data/spec/models/scalyr_integration_spec.rb +81 -0
- data/spec/models/schedule_meta_spec.rb +53 -0
- data/spec/models/schedule_override_meta_spec.rb +41 -0
- data/spec/models/schedule_override_rotation_spec.rb +47 -0
- data/spec/models/schedule_override_spec.rb +71 -0
- data/spec/models/schedule_recipient_spec.rb +57 -0
- data/spec/models/schedule_rotation_spec.rb +87 -0
- data/spec/models/schedule_rotation_with_parent_spec.rb +93 -0
- data/spec/models/schedule_spec.rb +77 -0
- data/spec/models/schedule_timeline_spec.rb +77 -0
- data/spec/models/scom_integration_spec.rb +81 -0
- data/spec/models/scout_integration_spec.rb +81 -0
- data/spec/models/sematext_spm_integration_spec.rb +81 -0
- data/spec/models/sensu_integration_spec.rb +81 -0
- data/spec/models/sentry_integration_spec.rb +81 -0
- data/spec/models/server_density_integration_spec.rb +81 -0
- data/spec/models/server_guard24_integration_spec.rb +81 -0
- data/spec/models/service_now_integration_spec.rb +81 -0
- data/spec/models/service_now_v2_callback_spec.rb +103 -0
- data/spec/models/service_now_v2_integration_spec.rb +199 -0
- data/spec/models/service_now_v3_callback_spec.rb +103 -0
- data/spec/models/service_now_v3_integration_spec.rb +199 -0
- data/spec/models/signal_fxv2_integration_spec.rb +81 -0
- data/spec/models/signal_sciences_integration_spec.rb +81 -0
- data/spec/models/signalfx_integration_spec.rb +81 -0
- data/spec/models/site24x7_integration_spec.rb +81 -0
- data/spec/models/slack_app_callback_spec.rb +103 -0
- data/spec/models/slack_app_integration_spec.rb +285 -0
- data/spec/models/slack_callback_spec.rb +79 -0
- data/spec/models/slack_integration_spec.rb +199 -0
- data/spec/models/snooze_alert_payload_spec.rb +59 -0
- data/spec/models/soasta_integration_spec.rb +81 -0
- data/spec/models/solar_winds_web_help_desk_callback_spec.rb +85 -0
- data/spec/models/solar_winds_web_help_desk_integration_spec.rb +199 -0
- data/spec/models/solarwinds_callback_spec.rb +85 -0
- data/spec/models/solarwinds_integration_spec.rb +199 -0
- data/spec/models/solarwinds_msp_ncentral_callback_spec.rb +103 -0
- data/spec/models/solarwinds_mspn_central_integration_spec.rb +199 -0
- data/spec/models/splunk_callback_spec.rb +97 -0
- data/spec/models/splunk_integration_spec.rb +199 -0
- data/spec/models/splunk_itsi_callback_spec.rb +103 -0
- data/spec/models/splunk_itsi_integration_spec.rb +199 -0
- data/spec/models/stack_storm_integration_spec.rb +81 -0
- data/spec/models/stackdriver_callback_spec.rb +79 -0
- data/spec/models/stackdriver_integration_spec.rb +199 -0
- data/spec/models/status_cake_integration_spec.rb +81 -0
- data/spec/models/status_hub_integration_spec.rb +81 -0
- data/spec/models/status_io_callback_spec.rb +91 -0
- data/spec/models/status_io_integration_spec.rb +199 -0
- data/spec/models/status_page_entry_spec.rb +47 -0
- data/spec/models/status_page_io_callback_spec.rb +97 -0
- data/spec/models/status_page_io_integration_spec.rb +199 -0
- data/spec/models/statusy_callback_spec.rb +97 -0
- data/spec/models/statusy_integration_spec.rb +81 -0
- data/spec/models/struxure_ware_integration_spec.rb +81 -0
- data/spec/models/success_data_spec.rb +47 -0
- data/spec/models/success_response_spec.rb +59 -0
- data/spec/models/sumo_logic_callback_spec.rb +91 -0
- data/spec/models/sumo_logic_integration_spec.rb +199 -0
- data/spec/models/sysdig_cloud_integration_spec.rb +81 -0
- data/spec/models/team_log_details_spec.rb +53 -0
- data/spec/models/team_log_spec.rb +47 -0
- data/spec/models/team_member_spec.rb +47 -0
- data/spec/models/team_meta_spec.rb +47 -0
- data/spec/models/team_recipient_spec.rb +57 -0
- data/spec/models/team_responder_spec.rb +57 -0
- data/spec/models/team_right_spec.rb +47 -0
- data/spec/models/team_role_spec.rb +53 -0
- data/spec/models/team_routing_rule_spec.rb +83 -0
- data/spec/models/team_spec.rb +59 -0
- data/spec/models/thousand_eyes_integration_spec.rb +81 -0
- data/spec/models/threat_stack_integration_spec.rb +81 -0
- data/spec/models/thundra_integration_spec.rb +81 -0
- data/spec/models/tideways_integration_spec.rb +81 -0
- data/spec/models/time_of_day_restriction_interval_spec.rb +51 -0
- data/spec/models/time_of_day_restriction_spec.rb +59 -0
- data/spec/models/time_restriction_interval_spec.rb +45 -0
- data/spec/models/timeline_period_spec.rb +71 -0
- data/spec/models/timeline_recipient_spec.rb +59 -0
- data/spec/models/timeline_rotation_spec.rb +59 -0
- data/spec/models/timeline_spec.rb +41 -0
- data/spec/models/token_based_incoming_feature_spec.rb +153 -0
- data/spec/models/trace_integration_spec.rb +81 -0
- data/spec/models/track_it_callback_spec.rb +85 -0
- data/spec/models/track_it_integration_spec.rb +199 -0
- data/spec/models/travis_ci_integration_spec.rb +81 -0
- data/spec/models/twilio_integration_spec.rb +81 -0
- data/spec/models/un_acknowledge_alert_payload_spec.rb +53 -0
- data/spec/models/update_alert_description_payload_spec.rb +41 -0
- data/spec/models/update_alert_message_payload_spec.rb +41 -0
- data/spec/models/update_alert_priority_payload_spec.rb +45 -0
- data/spec/models/update_contact_payload_spec.rb +41 -0
- data/spec/models/update_custom_user_role_payload_spec.rb +59 -0
- data/spec/models/update_escalation_payload_spec.rb +65 -0
- data/spec/models/update_forwarding_rule_payload_spec.rb +59 -0
- data/spec/models/update_heartbeat_payload_spec.rb +63 -0
- data/spec/models/update_heartbeat_response_spec.rb +53 -0
- data/spec/models/update_integration_actions_response_spec.rb +53 -0
- data/spec/models/update_integration_response_spec.rb +53 -0
- data/spec/models/update_maintenance_payload_spec.rb +53 -0
- data/spec/models/update_maintenance_response_spec.rb +53 -0
- data/spec/models/update_notification_rule_payload_spec.rb +89 -0
- data/spec/models/update_notification_rule_response_spec.rb +53 -0
- data/spec/models/update_notification_rule_step_payload_spec.rb +53 -0
- data/spec/models/update_saved_search_payload_spec.rb +65 -0
- data/spec/models/update_schedule_override_payload_spec.rb +59 -0
- data/spec/models/update_schedule_override_response_spec.rb +53 -0
- data/spec/models/update_schedule_payload_spec.rb +71 -0
- data/spec/models/update_schedule_response_spec.rb +53 -0
- data/spec/models/update_schedule_rotation_payload_spec.rb +81 -0
- data/spec/models/update_team_payload_spec.rb +53 -0
- data/spec/models/update_team_role_payload_spec.rb +47 -0
- data/spec/models/update_team_routing_rule_payload_spec.rb +65 -0
- data/spec/models/update_user_payload_spec.rb +95 -0
- data/spec/models/updown_io_integration_spec.rb +81 -0
- data/spec/models/uptime_robot_email_integration_spec.rb +81 -0
- data/spec/models/uptime_robot_integration_spec.rb +81 -0
- data/spec/models/uptime_webhook_integration_spec.rb +81 -0
- data/spec/models/uptrends_email_integration_spec.rb +81 -0
- data/spec/models/user_address_spec.rb +65 -0
- data/spec/models/user_contact_spec.rb +69 -0
- data/spec/models/user_meta_spec.rb +47 -0
- data/spec/models/user_recipient_spec.rb +57 -0
- data/spec/models/user_responder_spec.rb +51 -0
- data/spec/models/user_role_spec.rb +47 -0
- data/spec/models/user_spec.rb +125 -0
- data/spec/models/v_center_integration_spec.rb +81 -0
- data/spec/models/vcsa_integration_spec.rb +81 -0
- data/spec/models/vivid_cortex_integration_spec.rb +81 -0
- data/spec/models/wavefront_integration_spec.rb +81 -0
- data/spec/models/webhook_callback_spec.rb +97 -0
- data/spec/models/webhook_integration_spec.rb +81 -0
- data/spec/models/weekday_time_restriction_interval_spec.rb +51 -0
- data/spec/models/weekday_time_restriction_spec.rb +79 -0
- data/spec/models/whats_up_gold_integration_spec.rb +81 -0
- data/spec/models/workato_integration_spec.rb +81 -0
- data/spec/models/x_pack_alerting_callback_spec.rb +85 -0
- data/spec/models/x_pack_alerting_integration_spec.rb +199 -0
- data/spec/models/xl_release_integration_spec.rb +81 -0
- data/spec/models/xmpp_callback_spec.rb +85 -0
- data/spec/models/xmpp_integration_spec.rb +199 -0
- data/spec/models/zabbix_callback_spec.rb +85 -0
- data/spec/models/zabbix_integration_spec.rb +199 -0
- data/spec/models/zapier_integration_spec.rb +81 -0
- data/spec/models/zendesk_callback_spec.rb +103 -0
- data/spec/models/zendesk_integration_spec.rb +199 -0
- data/spec/models/zenoss_callback_spec.rb +85 -0
- data/spec/models/zenoss_integration_spec.rb +199 -0
- data/spec/models/zyrion_integration_spec.rb +81 -0
- data/spec/spec_helper.rb +111 -0
- data/swagger.yaml +24877 -0
- metadata +2637 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
=begin
|
2
|
+
#Opsgenie REST API
|
3
|
+
|
4
|
+
#Opsgenie OpenAPI Specification
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.13
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module OpsgenieSdk
|
16
|
+
class AccountApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Get Account Info
|
23
|
+
# Used to search and retrieve account information in Opsgenie
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [GetAccountInfoResponse]
|
26
|
+
def get_info(opts = {})
|
27
|
+
data, _status_code, _headers = get_info_with_http_info(opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Get Account Info
|
32
|
+
# Used to search and retrieve account information in Opsgenie
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(GetAccountInfoResponse, Fixnum, Hash)>] GetAccountInfoResponse data, response status code and response headers
|
35
|
+
def get_info_with_http_info(opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: AccountApi.get_info ...'
|
38
|
+
end
|
39
|
+
# resource path
|
40
|
+
local_var_path = '/v2/account'
|
41
|
+
|
42
|
+
# query parameters
|
43
|
+
query_params = {}
|
44
|
+
|
45
|
+
# header parameters
|
46
|
+
header_params = {}
|
47
|
+
# HTTP header 'Accept' (if needed)
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
49
|
+
|
50
|
+
# form parameters
|
51
|
+
form_params = {}
|
52
|
+
|
53
|
+
# http body (model)
|
54
|
+
post_body = nil
|
55
|
+
auth_names = ['GenieKey']
|
56
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
57
|
+
:header_params => header_params,
|
58
|
+
:query_params => query_params,
|
59
|
+
:form_params => form_params,
|
60
|
+
:body => post_body,
|
61
|
+
:auth_names => auth_names,
|
62
|
+
:return_type => 'GetAccountInfoResponse')
|
63
|
+
if @api_client.config.debugging
|
64
|
+
@api_client.config.logger.debug "API called: AccountApi#get_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
65
|
+
end
|
66
|
+
return data, status_code, headers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,2259 @@
|
|
1
|
+
=begin
|
2
|
+
#Opsgenie REST API
|
3
|
+
|
4
|
+
#Opsgenie OpenAPI Specification
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.13
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module OpsgenieSdk
|
16
|
+
class AlertApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Acknowledge Alert
|
23
|
+
# Acknowledges alert with given identifier
|
24
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
27
|
+
# @option opts [AcknowledgeAlertPayload] :body Request payload of acknowledging alert action
|
28
|
+
# @return [SuccessResponse]
|
29
|
+
def acknowledge_alert(identifier, opts = {})
|
30
|
+
data, _status_code, _headers = acknowledge_alert_with_http_info(identifier, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Acknowledge Alert
|
35
|
+
# Acknowledges alert with given identifier
|
36
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
39
|
+
# @option opts [AcknowledgeAlertPayload] :body Request payload of acknowledging alert action
|
40
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
41
|
+
def acknowledge_alert_with_http_info(identifier, opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.acknowledge_alert ...'
|
44
|
+
end
|
45
|
+
# verify the required parameter 'identifier' is set
|
46
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.acknowledge_alert"
|
48
|
+
end
|
49
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
50
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
51
|
+
end
|
52
|
+
# resource path
|
53
|
+
local_var_path = '/v2/alerts/{identifier}/acknowledge'.sub('{' + 'identifier' + '}', identifier.to_s)
|
54
|
+
|
55
|
+
# query parameters
|
56
|
+
query_params = {}
|
57
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
58
|
+
|
59
|
+
# header parameters
|
60
|
+
header_params = {}
|
61
|
+
# HTTP header 'Accept' (if needed)
|
62
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
63
|
+
|
64
|
+
# form parameters
|
65
|
+
form_params = {}
|
66
|
+
|
67
|
+
# http body (model)
|
68
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
69
|
+
auth_names = ['GenieKey']
|
70
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => 'SuccessResponse')
|
77
|
+
if @api_client.config.debugging
|
78
|
+
@api_client.config.logger.debug "API called: AlertApi#acknowledge_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
+
end
|
80
|
+
return data, status_code, headers
|
81
|
+
end
|
82
|
+
# Add Alert Attachment
|
83
|
+
# Add Alert Attachment to related alert
|
84
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
85
|
+
# @param file Attachment file to be uploaded
|
86
|
+
# @param [Hash] opts the optional parameters
|
87
|
+
# @option opts [String] :alert_identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
88
|
+
# @option opts [String] :user Display name of the request owner
|
89
|
+
# @option opts [String] :index_file Name of html file which will be shown when attachment clicked on UI
|
90
|
+
# @return [SuccessResponse]
|
91
|
+
def add_attachment(identifier, file, opts = {})
|
92
|
+
data, _status_code, _headers = add_attachment_with_http_info(identifier, file, opts)
|
93
|
+
data
|
94
|
+
end
|
95
|
+
|
96
|
+
# Add Alert Attachment
|
97
|
+
# Add Alert Attachment to related alert
|
98
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
99
|
+
# @param file Attachment file to be uploaded
|
100
|
+
# @param [Hash] opts the optional parameters
|
101
|
+
# @option opts [String] :alert_identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
102
|
+
# @option opts [String] :user Display name of the request owner
|
103
|
+
# @option opts [String] :index_file Name of html file which will be shown when attachment clicked on UI
|
104
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
105
|
+
def add_attachment_with_http_info(identifier, file, opts = {})
|
106
|
+
if @api_client.config.debugging
|
107
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.add_attachment ...'
|
108
|
+
end
|
109
|
+
# verify the required parameter 'identifier' is set
|
110
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
111
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.add_attachment"
|
112
|
+
end
|
113
|
+
# verify the required parameter 'file' is set
|
114
|
+
if @api_client.config.client_side_validation && file.nil?
|
115
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling AlertApi.add_attachment"
|
116
|
+
end
|
117
|
+
if @api_client.config.client_side_validation && opts[:'alert_identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'alert_identifier_type'])
|
118
|
+
fail ArgumentError, 'invalid value for "alert_identifier_type", must be one of id, alias, tiny'
|
119
|
+
end
|
120
|
+
# resource path
|
121
|
+
local_var_path = '/v2/alerts/{identifier}/attachments'.sub('{' + 'identifier' + '}', identifier.to_s)
|
122
|
+
|
123
|
+
# query parameters
|
124
|
+
query_params = {}
|
125
|
+
query_params[:'alertIdentifierType'] = opts[:'alert_identifier_type'] if !opts[:'alert_identifier_type'].nil?
|
126
|
+
|
127
|
+
# header parameters
|
128
|
+
header_params = {}
|
129
|
+
# HTTP header 'Accept' (if needed)
|
130
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
131
|
+
# HTTP header 'Content-Type'
|
132
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
133
|
+
|
134
|
+
# form parameters
|
135
|
+
form_params = {}
|
136
|
+
form_params['file'] = file
|
137
|
+
form_params['user'] = opts[:'user'] if !opts[:'user'].nil?
|
138
|
+
form_params['indexFile'] = opts[:'index_file'] if !opts[:'index_file'].nil?
|
139
|
+
|
140
|
+
# http body (model)
|
141
|
+
post_body = nil
|
142
|
+
auth_names = ['GenieKey']
|
143
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
144
|
+
:header_params => header_params,
|
145
|
+
:query_params => query_params,
|
146
|
+
:form_params => form_params,
|
147
|
+
:body => post_body,
|
148
|
+
:auth_names => auth_names,
|
149
|
+
:return_type => 'SuccessResponse')
|
150
|
+
if @api_client.config.debugging
|
151
|
+
@api_client.config.logger.debug "API called: AlertApi#add_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
152
|
+
end
|
153
|
+
return data, status_code, headers
|
154
|
+
end
|
155
|
+
# Add Details
|
156
|
+
# Add details to the alert with given identifier
|
157
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
158
|
+
# @param body Request payload of adding alert details action
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
161
|
+
# @return [SuccessResponse]
|
162
|
+
def add_details(identifier, body, opts = {})
|
163
|
+
data, _status_code, _headers = add_details_with_http_info(identifier, body, opts)
|
164
|
+
data
|
165
|
+
end
|
166
|
+
|
167
|
+
# Add Details
|
168
|
+
# Add details to the alert with given identifier
|
169
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
170
|
+
# @param body Request payload of adding alert details action
|
171
|
+
# @param [Hash] opts the optional parameters
|
172
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
173
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
174
|
+
def add_details_with_http_info(identifier, body, opts = {})
|
175
|
+
if @api_client.config.debugging
|
176
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.add_details ...'
|
177
|
+
end
|
178
|
+
# verify the required parameter 'identifier' is set
|
179
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
180
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.add_details"
|
181
|
+
end
|
182
|
+
# verify the required parameter 'body' is set
|
183
|
+
if @api_client.config.client_side_validation && body.nil?
|
184
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.add_details"
|
185
|
+
end
|
186
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
187
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
188
|
+
end
|
189
|
+
# resource path
|
190
|
+
local_var_path = '/v2/alerts/{identifier}/details'.sub('{' + 'identifier' + '}', identifier.to_s)
|
191
|
+
|
192
|
+
# query parameters
|
193
|
+
query_params = {}
|
194
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
195
|
+
|
196
|
+
# header parameters
|
197
|
+
header_params = {}
|
198
|
+
# HTTP header 'Accept' (if needed)
|
199
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
200
|
+
|
201
|
+
# form parameters
|
202
|
+
form_params = {}
|
203
|
+
|
204
|
+
# http body (model)
|
205
|
+
post_body = @api_client.object_to_http_body(body)
|
206
|
+
auth_names = ['GenieKey']
|
207
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
208
|
+
:header_params => header_params,
|
209
|
+
:query_params => query_params,
|
210
|
+
:form_params => form_params,
|
211
|
+
:body => post_body,
|
212
|
+
:auth_names => auth_names,
|
213
|
+
:return_type => 'SuccessResponse')
|
214
|
+
if @api_client.config.debugging
|
215
|
+
@api_client.config.logger.debug "API called: AlertApi#add_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
216
|
+
end
|
217
|
+
return data, status_code, headers
|
218
|
+
end
|
219
|
+
# Add Note
|
220
|
+
# Adds note to alert with given identifier
|
221
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
222
|
+
# @param body Request payload of adding note to alert action
|
223
|
+
# @param [Hash] opts the optional parameters
|
224
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
225
|
+
# @return [SuccessResponse]
|
226
|
+
def add_note(identifier, body, opts = {})
|
227
|
+
data, _status_code, _headers = add_note_with_http_info(identifier, body, opts)
|
228
|
+
data
|
229
|
+
end
|
230
|
+
|
231
|
+
# Add Note
|
232
|
+
# Adds note to alert with given identifier
|
233
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
234
|
+
# @param body Request payload of adding note to alert action
|
235
|
+
# @param [Hash] opts the optional parameters
|
236
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
237
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
238
|
+
def add_note_with_http_info(identifier, body, opts = {})
|
239
|
+
if @api_client.config.debugging
|
240
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.add_note ...'
|
241
|
+
end
|
242
|
+
# verify the required parameter 'identifier' is set
|
243
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
244
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.add_note"
|
245
|
+
end
|
246
|
+
# verify the required parameter 'body' is set
|
247
|
+
if @api_client.config.client_side_validation && body.nil?
|
248
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.add_note"
|
249
|
+
end
|
250
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
251
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
252
|
+
end
|
253
|
+
# resource path
|
254
|
+
local_var_path = '/v2/alerts/{identifier}/notes'.sub('{' + 'identifier' + '}', identifier.to_s)
|
255
|
+
|
256
|
+
# query parameters
|
257
|
+
query_params = {}
|
258
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
259
|
+
|
260
|
+
# header parameters
|
261
|
+
header_params = {}
|
262
|
+
# HTTP header 'Accept' (if needed)
|
263
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
264
|
+
|
265
|
+
# form parameters
|
266
|
+
form_params = {}
|
267
|
+
|
268
|
+
# http body (model)
|
269
|
+
post_body = @api_client.object_to_http_body(body)
|
270
|
+
auth_names = ['GenieKey']
|
271
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
272
|
+
:header_params => header_params,
|
273
|
+
:query_params => query_params,
|
274
|
+
:form_params => form_params,
|
275
|
+
:body => post_body,
|
276
|
+
:auth_names => auth_names,
|
277
|
+
:return_type => 'SuccessResponse')
|
278
|
+
if @api_client.config.debugging
|
279
|
+
@api_client.config.logger.debug "API called: AlertApi#add_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
280
|
+
end
|
281
|
+
return data, status_code, headers
|
282
|
+
end
|
283
|
+
# Add Responder
|
284
|
+
# Add responder to alert with given identifier
|
285
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
286
|
+
# @param body Request payload of adding responder to alert action
|
287
|
+
# @param [Hash] opts the optional parameters
|
288
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
289
|
+
# @return [SuccessResponse]
|
290
|
+
def add_responder(identifier, body, opts = {})
|
291
|
+
data, _status_code, _headers = add_responder_with_http_info(identifier, body, opts)
|
292
|
+
data
|
293
|
+
end
|
294
|
+
|
295
|
+
# Add Responder
|
296
|
+
# Add responder to alert with given identifier
|
297
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
298
|
+
# @param body Request payload of adding responder to alert action
|
299
|
+
# @param [Hash] opts the optional parameters
|
300
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
301
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
302
|
+
def add_responder_with_http_info(identifier, body, opts = {})
|
303
|
+
if @api_client.config.debugging
|
304
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.add_responder ...'
|
305
|
+
end
|
306
|
+
# verify the required parameter 'identifier' is set
|
307
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
308
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.add_responder"
|
309
|
+
end
|
310
|
+
# verify the required parameter 'body' is set
|
311
|
+
if @api_client.config.client_side_validation && body.nil?
|
312
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.add_responder"
|
313
|
+
end
|
314
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
315
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
316
|
+
end
|
317
|
+
# resource path
|
318
|
+
local_var_path = '/v2/alerts/{identifier}/responders'.sub('{' + 'identifier' + '}', identifier.to_s)
|
319
|
+
|
320
|
+
# query parameters
|
321
|
+
query_params = {}
|
322
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
323
|
+
|
324
|
+
# header parameters
|
325
|
+
header_params = {}
|
326
|
+
# HTTP header 'Accept' (if needed)
|
327
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
328
|
+
|
329
|
+
# form parameters
|
330
|
+
form_params = {}
|
331
|
+
|
332
|
+
# http body (model)
|
333
|
+
post_body = @api_client.object_to_http_body(body)
|
334
|
+
auth_names = ['GenieKey']
|
335
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
336
|
+
:header_params => header_params,
|
337
|
+
:query_params => query_params,
|
338
|
+
:form_params => form_params,
|
339
|
+
:body => post_body,
|
340
|
+
:auth_names => auth_names,
|
341
|
+
:return_type => 'SuccessResponse')
|
342
|
+
if @api_client.config.debugging
|
343
|
+
@api_client.config.logger.debug "API called: AlertApi#add_responder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
344
|
+
end
|
345
|
+
return data, status_code, headers
|
346
|
+
end
|
347
|
+
# Add Tags
|
348
|
+
# Add tags to the alert with given identifier
|
349
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
350
|
+
# @param body Request payload of creating alert tags action
|
351
|
+
# @param [Hash] opts the optional parameters
|
352
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
353
|
+
# @return [SuccessResponse]
|
354
|
+
def add_tags(identifier, body, opts = {})
|
355
|
+
data, _status_code, _headers = add_tags_with_http_info(identifier, body, opts)
|
356
|
+
data
|
357
|
+
end
|
358
|
+
|
359
|
+
# Add Tags
|
360
|
+
# Add tags to the alert with given identifier
|
361
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
362
|
+
# @param body Request payload of creating alert tags action
|
363
|
+
# @param [Hash] opts the optional parameters
|
364
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
365
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
366
|
+
def add_tags_with_http_info(identifier, body, opts = {})
|
367
|
+
if @api_client.config.debugging
|
368
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.add_tags ...'
|
369
|
+
end
|
370
|
+
# verify the required parameter 'identifier' is set
|
371
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
372
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.add_tags"
|
373
|
+
end
|
374
|
+
# verify the required parameter 'body' is set
|
375
|
+
if @api_client.config.client_side_validation && body.nil?
|
376
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.add_tags"
|
377
|
+
end
|
378
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
379
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
380
|
+
end
|
381
|
+
# resource path
|
382
|
+
local_var_path = '/v2/alerts/{identifier}/tags'.sub('{' + 'identifier' + '}', identifier.to_s)
|
383
|
+
|
384
|
+
# query parameters
|
385
|
+
query_params = {}
|
386
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
387
|
+
|
388
|
+
# header parameters
|
389
|
+
header_params = {}
|
390
|
+
# HTTP header 'Accept' (if needed)
|
391
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
392
|
+
|
393
|
+
# form parameters
|
394
|
+
form_params = {}
|
395
|
+
|
396
|
+
# http body (model)
|
397
|
+
post_body = @api_client.object_to_http_body(body)
|
398
|
+
auth_names = ['GenieKey']
|
399
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
400
|
+
:header_params => header_params,
|
401
|
+
:query_params => query_params,
|
402
|
+
:form_params => form_params,
|
403
|
+
:body => post_body,
|
404
|
+
:auth_names => auth_names,
|
405
|
+
:return_type => 'SuccessResponse')
|
406
|
+
if @api_client.config.debugging
|
407
|
+
@api_client.config.logger.debug "API called: AlertApi#add_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
408
|
+
end
|
409
|
+
return data, status_code, headers
|
410
|
+
end
|
411
|
+
# Add Team
|
412
|
+
# Add team to alert with given identifier
|
413
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
414
|
+
# @param body Request payload of adding team to alert action
|
415
|
+
# @param [Hash] opts the optional parameters
|
416
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
417
|
+
# @return [SuccessResponse]
|
418
|
+
def add_team(identifier, body, opts = {})
|
419
|
+
data, _status_code, _headers = add_team_with_http_info(identifier, body, opts)
|
420
|
+
data
|
421
|
+
end
|
422
|
+
|
423
|
+
# Add Team
|
424
|
+
# Add team to alert with given identifier
|
425
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
426
|
+
# @param body Request payload of adding team to alert action
|
427
|
+
# @param [Hash] opts the optional parameters
|
428
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
429
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
430
|
+
def add_team_with_http_info(identifier, body, opts = {})
|
431
|
+
if @api_client.config.debugging
|
432
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.add_team ...'
|
433
|
+
end
|
434
|
+
# verify the required parameter 'identifier' is set
|
435
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
436
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.add_team"
|
437
|
+
end
|
438
|
+
# verify the required parameter 'body' is set
|
439
|
+
if @api_client.config.client_side_validation && body.nil?
|
440
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.add_team"
|
441
|
+
end
|
442
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
443
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
444
|
+
end
|
445
|
+
# resource path
|
446
|
+
local_var_path = '/v2/alerts/{identifier}/teams'.sub('{' + 'identifier' + '}', identifier.to_s)
|
447
|
+
|
448
|
+
# query parameters
|
449
|
+
query_params = {}
|
450
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
451
|
+
|
452
|
+
# header parameters
|
453
|
+
header_params = {}
|
454
|
+
# HTTP header 'Accept' (if needed)
|
455
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
456
|
+
|
457
|
+
# form parameters
|
458
|
+
form_params = {}
|
459
|
+
|
460
|
+
# http body (model)
|
461
|
+
post_body = @api_client.object_to_http_body(body)
|
462
|
+
auth_names = ['GenieKey']
|
463
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
464
|
+
:header_params => header_params,
|
465
|
+
:query_params => query_params,
|
466
|
+
:form_params => form_params,
|
467
|
+
:body => post_body,
|
468
|
+
:auth_names => auth_names,
|
469
|
+
:return_type => 'SuccessResponse')
|
470
|
+
if @api_client.config.debugging
|
471
|
+
@api_client.config.logger.debug "API called: AlertApi#add_team\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
472
|
+
end
|
473
|
+
return data, status_code, headers
|
474
|
+
end
|
475
|
+
# Assign Alert
|
476
|
+
# Assign alert with given identifier
|
477
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
478
|
+
# @param body Request payload of assigning alert action
|
479
|
+
# @param [Hash] opts the optional parameters
|
480
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
481
|
+
# @return [SuccessResponse]
|
482
|
+
def assign_alert(identifier, body, opts = {})
|
483
|
+
data, _status_code, _headers = assign_alert_with_http_info(identifier, body, opts)
|
484
|
+
data
|
485
|
+
end
|
486
|
+
|
487
|
+
# Assign Alert
|
488
|
+
# Assign alert with given identifier
|
489
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
490
|
+
# @param body Request payload of assigning alert action
|
491
|
+
# @param [Hash] opts the optional parameters
|
492
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
493
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
494
|
+
def assign_alert_with_http_info(identifier, body, opts = {})
|
495
|
+
if @api_client.config.debugging
|
496
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.assign_alert ...'
|
497
|
+
end
|
498
|
+
# verify the required parameter 'identifier' is set
|
499
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
500
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.assign_alert"
|
501
|
+
end
|
502
|
+
# verify the required parameter 'body' is set
|
503
|
+
if @api_client.config.client_side_validation && body.nil?
|
504
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.assign_alert"
|
505
|
+
end
|
506
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
507
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
508
|
+
end
|
509
|
+
# resource path
|
510
|
+
local_var_path = '/v2/alerts/{identifier}/assign'.sub('{' + 'identifier' + '}', identifier.to_s)
|
511
|
+
|
512
|
+
# query parameters
|
513
|
+
query_params = {}
|
514
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
515
|
+
|
516
|
+
# header parameters
|
517
|
+
header_params = {}
|
518
|
+
# HTTP header 'Accept' (if needed)
|
519
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
520
|
+
|
521
|
+
# form parameters
|
522
|
+
form_params = {}
|
523
|
+
|
524
|
+
# http body (model)
|
525
|
+
post_body = @api_client.object_to_http_body(body)
|
526
|
+
auth_names = ['GenieKey']
|
527
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
528
|
+
:header_params => header_params,
|
529
|
+
:query_params => query_params,
|
530
|
+
:form_params => form_params,
|
531
|
+
:body => post_body,
|
532
|
+
:auth_names => auth_names,
|
533
|
+
:return_type => 'SuccessResponse')
|
534
|
+
if @api_client.config.debugging
|
535
|
+
@api_client.config.logger.debug "API called: AlertApi#assign_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
536
|
+
end
|
537
|
+
return data, status_code, headers
|
538
|
+
end
|
539
|
+
# Close Alert
|
540
|
+
# Closes alert with given identifier
|
541
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
542
|
+
# @param [Hash] opts the optional parameters
|
543
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
544
|
+
# @option opts [CloseAlertPayload] :body Request payload of closing alert action
|
545
|
+
# @return [SuccessResponse]
|
546
|
+
def close_alert(identifier, opts = {})
|
547
|
+
data, _status_code, _headers = close_alert_with_http_info(identifier, opts)
|
548
|
+
data
|
549
|
+
end
|
550
|
+
|
551
|
+
# Close Alert
|
552
|
+
# Closes alert with given identifier
|
553
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
554
|
+
# @param [Hash] opts the optional parameters
|
555
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
556
|
+
# @option opts [CloseAlertPayload] :body Request payload of closing alert action
|
557
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
558
|
+
def close_alert_with_http_info(identifier, opts = {})
|
559
|
+
if @api_client.config.debugging
|
560
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.close_alert ...'
|
561
|
+
end
|
562
|
+
# verify the required parameter 'identifier' is set
|
563
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
564
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.close_alert"
|
565
|
+
end
|
566
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
567
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
568
|
+
end
|
569
|
+
# resource path
|
570
|
+
local_var_path = '/v2/alerts/{identifier}/close'.sub('{' + 'identifier' + '}', identifier.to_s)
|
571
|
+
|
572
|
+
# query parameters
|
573
|
+
query_params = {}
|
574
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
575
|
+
|
576
|
+
# header parameters
|
577
|
+
header_params = {}
|
578
|
+
# HTTP header 'Accept' (if needed)
|
579
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
580
|
+
|
581
|
+
# form parameters
|
582
|
+
form_params = {}
|
583
|
+
|
584
|
+
# http body (model)
|
585
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
586
|
+
auth_names = ['GenieKey']
|
587
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
588
|
+
:header_params => header_params,
|
589
|
+
:query_params => query_params,
|
590
|
+
:form_params => form_params,
|
591
|
+
:body => post_body,
|
592
|
+
:auth_names => auth_names,
|
593
|
+
:return_type => 'SuccessResponse')
|
594
|
+
if @api_client.config.debugging
|
595
|
+
@api_client.config.logger.debug "API called: AlertApi#close_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
596
|
+
end
|
597
|
+
return data, status_code, headers
|
598
|
+
end
|
599
|
+
# Count Alerts
|
600
|
+
# Count alerts in Opsgenie
|
601
|
+
# @param [Hash] opts the optional parameters
|
602
|
+
# @option opts [String] :query Search query to apply while filtering the alerts
|
603
|
+
# @option opts [String] :search_identifier Identifier of the saved search query to apply while filtering the alerts
|
604
|
+
# @option opts [String] :search_identifier_type Identifier type of the saved search query. Possible values are id and name. Default value is id. If searchIdentifier is not provided, this value is ignored. (default to id)
|
605
|
+
# @return [GetCountAlertsResponse]
|
606
|
+
def count_alerts(opts = {})
|
607
|
+
data, _status_code, _headers = count_alerts_with_http_info(opts)
|
608
|
+
data
|
609
|
+
end
|
610
|
+
|
611
|
+
# Count Alerts
|
612
|
+
# Count alerts in Opsgenie
|
613
|
+
# @param [Hash] opts the optional parameters
|
614
|
+
# @option opts [String] :query Search query to apply while filtering the alerts
|
615
|
+
# @option opts [String] :search_identifier Identifier of the saved search query to apply while filtering the alerts
|
616
|
+
# @option opts [String] :search_identifier_type Identifier type of the saved search query. Possible values are id and name. Default value is id. If searchIdentifier is not provided, this value is ignored.
|
617
|
+
# @return [Array<(GetCountAlertsResponse, Fixnum, Hash)>] GetCountAlertsResponse data, response status code and response headers
|
618
|
+
def count_alerts_with_http_info(opts = {})
|
619
|
+
if @api_client.config.debugging
|
620
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.count_alerts ...'
|
621
|
+
end
|
622
|
+
if @api_client.config.client_side_validation && opts[:'search_identifier_type'] && !['id', 'name'].include?(opts[:'search_identifier_type'])
|
623
|
+
fail ArgumentError, 'invalid value for "search_identifier_type", must be one of id, name'
|
624
|
+
end
|
625
|
+
# resource path
|
626
|
+
local_var_path = '/v2/alerts/count'
|
627
|
+
|
628
|
+
# query parameters
|
629
|
+
query_params = {}
|
630
|
+
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
631
|
+
query_params[:'searchIdentifier'] = opts[:'search_identifier'] if !opts[:'search_identifier'].nil?
|
632
|
+
query_params[:'searchIdentifierType'] = opts[:'search_identifier_type'] if !opts[:'search_identifier_type'].nil?
|
633
|
+
|
634
|
+
# header parameters
|
635
|
+
header_params = {}
|
636
|
+
# HTTP header 'Accept' (if needed)
|
637
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
638
|
+
|
639
|
+
# form parameters
|
640
|
+
form_params = {}
|
641
|
+
|
642
|
+
# http body (model)
|
643
|
+
post_body = nil
|
644
|
+
auth_names = ['GenieKey']
|
645
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
646
|
+
:header_params => header_params,
|
647
|
+
:query_params => query_params,
|
648
|
+
:form_params => form_params,
|
649
|
+
:body => post_body,
|
650
|
+
:auth_names => auth_names,
|
651
|
+
:return_type => 'GetCountAlertsResponse')
|
652
|
+
if @api_client.config.debugging
|
653
|
+
@api_client.config.logger.debug "API called: AlertApi#count_alerts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
654
|
+
end
|
655
|
+
return data, status_code, headers
|
656
|
+
end
|
657
|
+
# Create Alert
|
658
|
+
# Creates a new alert
|
659
|
+
# @param body Request payload of created alert
|
660
|
+
# @param [Hash] opts the optional parameters
|
661
|
+
# @return [SuccessResponse]
|
662
|
+
def create_alert(body, opts = {})
|
663
|
+
data, _status_code, _headers = create_alert_with_http_info(body, opts)
|
664
|
+
data
|
665
|
+
end
|
666
|
+
|
667
|
+
# Create Alert
|
668
|
+
# Creates a new alert
|
669
|
+
# @param body Request payload of created alert
|
670
|
+
# @param [Hash] opts the optional parameters
|
671
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
672
|
+
def create_alert_with_http_info(body, opts = {})
|
673
|
+
if @api_client.config.debugging
|
674
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.create_alert ...'
|
675
|
+
end
|
676
|
+
# verify the required parameter 'body' is set
|
677
|
+
if @api_client.config.client_side_validation && body.nil?
|
678
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.create_alert"
|
679
|
+
end
|
680
|
+
# resource path
|
681
|
+
local_var_path = '/v2/alerts'
|
682
|
+
|
683
|
+
# query parameters
|
684
|
+
query_params = {}
|
685
|
+
|
686
|
+
# header parameters
|
687
|
+
header_params = {}
|
688
|
+
# HTTP header 'Accept' (if needed)
|
689
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
690
|
+
|
691
|
+
# form parameters
|
692
|
+
form_params = {}
|
693
|
+
|
694
|
+
# http body (model)
|
695
|
+
post_body = @api_client.object_to_http_body(body)
|
696
|
+
auth_names = ['GenieKey']
|
697
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
698
|
+
:header_params => header_params,
|
699
|
+
:query_params => query_params,
|
700
|
+
:form_params => form_params,
|
701
|
+
:body => post_body,
|
702
|
+
:auth_names => auth_names,
|
703
|
+
:return_type => 'SuccessResponse')
|
704
|
+
if @api_client.config.debugging
|
705
|
+
@api_client.config.logger.debug "API called: AlertApi#create_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
706
|
+
end
|
707
|
+
return data, status_code, headers
|
708
|
+
end
|
709
|
+
# Create Saved Search
|
710
|
+
# Create saved search with given fields
|
711
|
+
# @param body Request payload of creating saved search
|
712
|
+
# @param [Hash] opts the optional parameters
|
713
|
+
# @return [CreateSavedSearchResponse]
|
714
|
+
def create_saved_searches(body, opts = {})
|
715
|
+
data, _status_code, _headers = create_saved_searches_with_http_info(body, opts)
|
716
|
+
data
|
717
|
+
end
|
718
|
+
|
719
|
+
# Create Saved Search
|
720
|
+
# Create saved search with given fields
|
721
|
+
# @param body Request payload of creating saved search
|
722
|
+
# @param [Hash] opts the optional parameters
|
723
|
+
# @return [Array<(CreateSavedSearchResponse, Fixnum, Hash)>] CreateSavedSearchResponse data, response status code and response headers
|
724
|
+
def create_saved_searches_with_http_info(body, opts = {})
|
725
|
+
if @api_client.config.debugging
|
726
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.create_saved_searches ...'
|
727
|
+
end
|
728
|
+
# verify the required parameter 'body' is set
|
729
|
+
if @api_client.config.client_side_validation && body.nil?
|
730
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.create_saved_searches"
|
731
|
+
end
|
732
|
+
# resource path
|
733
|
+
local_var_path = '/v2/alerts/saved-searches'
|
734
|
+
|
735
|
+
# query parameters
|
736
|
+
query_params = {}
|
737
|
+
|
738
|
+
# header parameters
|
739
|
+
header_params = {}
|
740
|
+
# HTTP header 'Accept' (if needed)
|
741
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
742
|
+
|
743
|
+
# form parameters
|
744
|
+
form_params = {}
|
745
|
+
|
746
|
+
# http body (model)
|
747
|
+
post_body = @api_client.object_to_http_body(body)
|
748
|
+
auth_names = ['GenieKey']
|
749
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
750
|
+
:header_params => header_params,
|
751
|
+
:query_params => query_params,
|
752
|
+
:form_params => form_params,
|
753
|
+
:body => post_body,
|
754
|
+
:auth_names => auth_names,
|
755
|
+
:return_type => 'CreateSavedSearchResponse')
|
756
|
+
if @api_client.config.debugging
|
757
|
+
@api_client.config.logger.debug "API called: AlertApi#create_saved_searches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
758
|
+
end
|
759
|
+
return data, status_code, headers
|
760
|
+
end
|
761
|
+
# Delete Alert
|
762
|
+
# Deletes an alert using alert id, tiny id or alias
|
763
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
764
|
+
# @param [Hash] opts the optional parameters
|
765
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
766
|
+
# @option opts [String] :user Display name of the request owner
|
767
|
+
# @option opts [String] :source Display name of the request source
|
768
|
+
# @return [SuccessResponse]
|
769
|
+
def delete_alert(identifier, opts = {})
|
770
|
+
data, _status_code, _headers = delete_alert_with_http_info(identifier, opts)
|
771
|
+
data
|
772
|
+
end
|
773
|
+
|
774
|
+
# Delete Alert
|
775
|
+
# Deletes an alert using alert id, tiny id or alias
|
776
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
777
|
+
# @param [Hash] opts the optional parameters
|
778
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
779
|
+
# @option opts [String] :user Display name of the request owner
|
780
|
+
# @option opts [String] :source Display name of the request source
|
781
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
782
|
+
def delete_alert_with_http_info(identifier, opts = {})
|
783
|
+
if @api_client.config.debugging
|
784
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.delete_alert ...'
|
785
|
+
end
|
786
|
+
# verify the required parameter 'identifier' is set
|
787
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
788
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.delete_alert"
|
789
|
+
end
|
790
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
791
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
792
|
+
end
|
793
|
+
# resource path
|
794
|
+
local_var_path = '/v2/alerts/{identifier}'.sub('{' + 'identifier' + '}', identifier.to_s)
|
795
|
+
|
796
|
+
# query parameters
|
797
|
+
query_params = {}
|
798
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
799
|
+
query_params[:'user'] = opts[:'user'] if !opts[:'user'].nil?
|
800
|
+
query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
|
801
|
+
|
802
|
+
# header parameters
|
803
|
+
header_params = {}
|
804
|
+
# HTTP header 'Accept' (if needed)
|
805
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
806
|
+
|
807
|
+
# form parameters
|
808
|
+
form_params = {}
|
809
|
+
|
810
|
+
# http body (model)
|
811
|
+
post_body = nil
|
812
|
+
auth_names = ['GenieKey']
|
813
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
814
|
+
:header_params => header_params,
|
815
|
+
:query_params => query_params,
|
816
|
+
:form_params => form_params,
|
817
|
+
:body => post_body,
|
818
|
+
:auth_names => auth_names,
|
819
|
+
:return_type => 'SuccessResponse')
|
820
|
+
if @api_client.config.debugging
|
821
|
+
@api_client.config.logger.debug "API called: AlertApi#delete_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
822
|
+
end
|
823
|
+
return data, status_code, headers
|
824
|
+
end
|
825
|
+
# Delete Saved Search
|
826
|
+
# Deletes saved search using given search identifier
|
827
|
+
# @param identifier Identifier of the saved search which could be 'id' or 'name'
|
828
|
+
# @param [Hash] opts the optional parameters
|
829
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', or 'name' (default to id)
|
830
|
+
# @return [SuccessResponse]
|
831
|
+
def delete_saved_search(identifier, opts = {})
|
832
|
+
data, _status_code, _headers = delete_saved_search_with_http_info(identifier, opts)
|
833
|
+
data
|
834
|
+
end
|
835
|
+
|
836
|
+
# Delete Saved Search
|
837
|
+
# Deletes saved search using given search identifier
|
838
|
+
# @param identifier Identifier of the saved search which could be 'id' or 'name'
|
839
|
+
# @param [Hash] opts the optional parameters
|
840
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', or 'name'
|
841
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
842
|
+
def delete_saved_search_with_http_info(identifier, opts = {})
|
843
|
+
if @api_client.config.debugging
|
844
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.delete_saved_search ...'
|
845
|
+
end
|
846
|
+
# verify the required parameter 'identifier' is set
|
847
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
848
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.delete_saved_search"
|
849
|
+
end
|
850
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'name'].include?(opts[:'identifier_type'])
|
851
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, name'
|
852
|
+
end
|
853
|
+
# resource path
|
854
|
+
local_var_path = '/v2/alerts/saved-searches/{identifier}'.sub('{' + 'identifier' + '}', identifier.to_s)
|
855
|
+
|
856
|
+
# query parameters
|
857
|
+
query_params = {}
|
858
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
859
|
+
|
860
|
+
# header parameters
|
861
|
+
header_params = {}
|
862
|
+
# HTTP header 'Accept' (if needed)
|
863
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
864
|
+
|
865
|
+
# form parameters
|
866
|
+
form_params = {}
|
867
|
+
|
868
|
+
# http body (model)
|
869
|
+
post_body = nil
|
870
|
+
auth_names = ['GenieKey']
|
871
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
872
|
+
:header_params => header_params,
|
873
|
+
:query_params => query_params,
|
874
|
+
:form_params => form_params,
|
875
|
+
:body => post_body,
|
876
|
+
:auth_names => auth_names,
|
877
|
+
:return_type => 'SuccessResponse')
|
878
|
+
if @api_client.config.debugging
|
879
|
+
@api_client.config.logger.debug "API called: AlertApi#delete_saved_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
880
|
+
end
|
881
|
+
return data, status_code, headers
|
882
|
+
end
|
883
|
+
# Escalate Alert
|
884
|
+
# Escalate alert with given identifier
|
885
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
886
|
+
# @param body Request payload of escalating alert action
|
887
|
+
# @param [Hash] opts the optional parameters
|
888
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
889
|
+
# @return [SuccessResponse]
|
890
|
+
def escalate_alert(identifier, body, opts = {})
|
891
|
+
data, _status_code, _headers = escalate_alert_with_http_info(identifier, body, opts)
|
892
|
+
data
|
893
|
+
end
|
894
|
+
|
895
|
+
# Escalate Alert
|
896
|
+
# Escalate alert with given identifier
|
897
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
898
|
+
# @param body Request payload of escalating alert action
|
899
|
+
# @param [Hash] opts the optional parameters
|
900
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
901
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
902
|
+
def escalate_alert_with_http_info(identifier, body, opts = {})
|
903
|
+
if @api_client.config.debugging
|
904
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.escalate_alert ...'
|
905
|
+
end
|
906
|
+
# verify the required parameter 'identifier' is set
|
907
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
908
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.escalate_alert"
|
909
|
+
end
|
910
|
+
# verify the required parameter 'body' is set
|
911
|
+
if @api_client.config.client_side_validation && body.nil?
|
912
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.escalate_alert"
|
913
|
+
end
|
914
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
915
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
916
|
+
end
|
917
|
+
# resource path
|
918
|
+
local_var_path = '/v2/alerts/{identifier}/escalate'.sub('{' + 'identifier' + '}', identifier.to_s)
|
919
|
+
|
920
|
+
# query parameters
|
921
|
+
query_params = {}
|
922
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
923
|
+
|
924
|
+
# header parameters
|
925
|
+
header_params = {}
|
926
|
+
# HTTP header 'Accept' (if needed)
|
927
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
928
|
+
|
929
|
+
# form parameters
|
930
|
+
form_params = {}
|
931
|
+
|
932
|
+
# http body (model)
|
933
|
+
post_body = @api_client.object_to_http_body(body)
|
934
|
+
auth_names = ['GenieKey']
|
935
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
936
|
+
:header_params => header_params,
|
937
|
+
:query_params => query_params,
|
938
|
+
:form_params => form_params,
|
939
|
+
:body => post_body,
|
940
|
+
:auth_names => auth_names,
|
941
|
+
:return_type => 'SuccessResponse')
|
942
|
+
if @api_client.config.debugging
|
943
|
+
@api_client.config.logger.debug "API called: AlertApi#escalate_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
944
|
+
end
|
945
|
+
return data, status_code, headers
|
946
|
+
end
|
947
|
+
# Custom Alert Action
|
948
|
+
# Custom actions for the alert
|
949
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
950
|
+
# @param action_name Name of the action to execute
|
951
|
+
# @param [Hash] opts the optional parameters
|
952
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
953
|
+
# @option opts [ExecuteCustomAlertActionPayload] :body Request payload of executing custom alert action
|
954
|
+
# @return [SuccessResponse]
|
955
|
+
def execute_custom_alert_action(identifier, action_name, opts = {})
|
956
|
+
data, _status_code, _headers = execute_custom_alert_action_with_http_info(identifier, action_name, opts)
|
957
|
+
data
|
958
|
+
end
|
959
|
+
|
960
|
+
# Custom Alert Action
|
961
|
+
# Custom actions for the alert
|
962
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
963
|
+
# @param action_name Name of the action to execute
|
964
|
+
# @param [Hash] opts the optional parameters
|
965
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
966
|
+
# @option opts [ExecuteCustomAlertActionPayload] :body Request payload of executing custom alert action
|
967
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
968
|
+
def execute_custom_alert_action_with_http_info(identifier, action_name, opts = {})
|
969
|
+
if @api_client.config.debugging
|
970
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.execute_custom_alert_action ...'
|
971
|
+
end
|
972
|
+
# verify the required parameter 'identifier' is set
|
973
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
974
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.execute_custom_alert_action"
|
975
|
+
end
|
976
|
+
# verify the required parameter 'action_name' is set
|
977
|
+
if @api_client.config.client_side_validation && action_name.nil?
|
978
|
+
fail ArgumentError, "Missing the required parameter 'action_name' when calling AlertApi.execute_custom_alert_action"
|
979
|
+
end
|
980
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
981
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
982
|
+
end
|
983
|
+
# resource path
|
984
|
+
local_var_path = '/v2/alerts/{identifier}/actions/{actionName}'.sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'actionName' + '}', action_name.to_s)
|
985
|
+
|
986
|
+
# query parameters
|
987
|
+
query_params = {}
|
988
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
989
|
+
|
990
|
+
# header parameters
|
991
|
+
header_params = {}
|
992
|
+
# HTTP header 'Accept' (if needed)
|
993
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
994
|
+
|
995
|
+
# form parameters
|
996
|
+
form_params = {}
|
997
|
+
|
998
|
+
# http body (model)
|
999
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
1000
|
+
auth_names = ['GenieKey']
|
1001
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1002
|
+
:header_params => header_params,
|
1003
|
+
:query_params => query_params,
|
1004
|
+
:form_params => form_params,
|
1005
|
+
:body => post_body,
|
1006
|
+
:auth_names => auth_names,
|
1007
|
+
:return_type => 'SuccessResponse')
|
1008
|
+
if @api_client.config.debugging
|
1009
|
+
@api_client.config.logger.debug "API called: AlertApi#execute_custom_alert_action\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1010
|
+
end
|
1011
|
+
return data, status_code, headers
|
1012
|
+
end
|
1013
|
+
# Get Alert
|
1014
|
+
# Returns alert with given id, tiny id or alias
|
1015
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1016
|
+
# @param [Hash] opts the optional parameters
|
1017
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
1018
|
+
# @return [GetAlertResponse]
|
1019
|
+
def get_alert(identifier, opts = {})
|
1020
|
+
data, _status_code, _headers = get_alert_with_http_info(identifier, opts)
|
1021
|
+
data
|
1022
|
+
end
|
1023
|
+
|
1024
|
+
# Get Alert
|
1025
|
+
# Returns alert with given id, tiny id or alias
|
1026
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1027
|
+
# @param [Hash] opts the optional parameters
|
1028
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
1029
|
+
# @return [Array<(GetAlertResponse, Fixnum, Hash)>] GetAlertResponse data, response status code and response headers
|
1030
|
+
def get_alert_with_http_info(identifier, opts = {})
|
1031
|
+
if @api_client.config.debugging
|
1032
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.get_alert ...'
|
1033
|
+
end
|
1034
|
+
# verify the required parameter 'identifier' is set
|
1035
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
1036
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.get_alert"
|
1037
|
+
end
|
1038
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
1039
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
1040
|
+
end
|
1041
|
+
# resource path
|
1042
|
+
local_var_path = '/v2/alerts/{identifier}'.sub('{' + 'identifier' + '}', identifier.to_s)
|
1043
|
+
|
1044
|
+
# query parameters
|
1045
|
+
query_params = {}
|
1046
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
1047
|
+
|
1048
|
+
# header parameters
|
1049
|
+
header_params = {}
|
1050
|
+
# HTTP header 'Accept' (if needed)
|
1051
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1052
|
+
|
1053
|
+
# form parameters
|
1054
|
+
form_params = {}
|
1055
|
+
|
1056
|
+
# http body (model)
|
1057
|
+
post_body = nil
|
1058
|
+
auth_names = ['GenieKey']
|
1059
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1060
|
+
:header_params => header_params,
|
1061
|
+
:query_params => query_params,
|
1062
|
+
:form_params => form_params,
|
1063
|
+
:body => post_body,
|
1064
|
+
:auth_names => auth_names,
|
1065
|
+
:return_type => 'GetAlertResponse')
|
1066
|
+
if @api_client.config.debugging
|
1067
|
+
@api_client.config.logger.debug "API called: AlertApi#get_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1068
|
+
end
|
1069
|
+
return data, status_code, headers
|
1070
|
+
end
|
1071
|
+
# Get Alert Attachment
|
1072
|
+
# Get alert attachment name and url for the given identifier
|
1073
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1074
|
+
# @param attachment_id Identifier of alert attachment
|
1075
|
+
# @param [Hash] opts the optional parameters
|
1076
|
+
# @option opts [String] :alert_identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
1077
|
+
# @return [GetAlertAttachmentResponse]
|
1078
|
+
def get_attachment(identifier, attachment_id, opts = {})
|
1079
|
+
data, _status_code, _headers = get_attachment_with_http_info(identifier, attachment_id, opts)
|
1080
|
+
data
|
1081
|
+
end
|
1082
|
+
|
1083
|
+
# Get Alert Attachment
|
1084
|
+
# Get alert attachment name and url for the given identifier
|
1085
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1086
|
+
# @param attachment_id Identifier of alert attachment
|
1087
|
+
# @param [Hash] opts the optional parameters
|
1088
|
+
# @option opts [String] :alert_identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
1089
|
+
# @return [Array<(GetAlertAttachmentResponse, Fixnum, Hash)>] GetAlertAttachmentResponse data, response status code and response headers
|
1090
|
+
def get_attachment_with_http_info(identifier, attachment_id, opts = {})
|
1091
|
+
if @api_client.config.debugging
|
1092
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.get_attachment ...'
|
1093
|
+
end
|
1094
|
+
# verify the required parameter 'identifier' is set
|
1095
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
1096
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.get_attachment"
|
1097
|
+
end
|
1098
|
+
# verify the required parameter 'attachment_id' is set
|
1099
|
+
if @api_client.config.client_side_validation && attachment_id.nil?
|
1100
|
+
fail ArgumentError, "Missing the required parameter 'attachment_id' when calling AlertApi.get_attachment"
|
1101
|
+
end
|
1102
|
+
if @api_client.config.client_side_validation && opts[:'alert_identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'alert_identifier_type'])
|
1103
|
+
fail ArgumentError, 'invalid value for "alert_identifier_type", must be one of id, alias, tiny'
|
1104
|
+
end
|
1105
|
+
# resource path
|
1106
|
+
local_var_path = '/v2/alerts/{identifier}/attachments/{attachmentId}'.sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'attachmentId' + '}', attachment_id.to_s)
|
1107
|
+
|
1108
|
+
# query parameters
|
1109
|
+
query_params = {}
|
1110
|
+
query_params[:'alertIdentifierType'] = opts[:'alert_identifier_type'] if !opts[:'alert_identifier_type'].nil?
|
1111
|
+
|
1112
|
+
# header parameters
|
1113
|
+
header_params = {}
|
1114
|
+
# HTTP header 'Accept' (if needed)
|
1115
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1116
|
+
|
1117
|
+
# form parameters
|
1118
|
+
form_params = {}
|
1119
|
+
|
1120
|
+
# http body (model)
|
1121
|
+
post_body = nil
|
1122
|
+
auth_names = ['GenieKey']
|
1123
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1124
|
+
:header_params => header_params,
|
1125
|
+
:query_params => query_params,
|
1126
|
+
:form_params => form_params,
|
1127
|
+
:body => post_body,
|
1128
|
+
:auth_names => auth_names,
|
1129
|
+
:return_type => 'GetAlertAttachmentResponse')
|
1130
|
+
if @api_client.config.debugging
|
1131
|
+
@api_client.config.logger.debug "API called: AlertApi#get_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1132
|
+
end
|
1133
|
+
return data, status_code, headers
|
1134
|
+
end
|
1135
|
+
# Get Request Status of Alert
|
1136
|
+
# Used to track the status and alert details (if any) of the request whose identifier is given
|
1137
|
+
# @param request_id Universally unique identifier of the questioned request
|
1138
|
+
# @param [Hash] opts the optional parameters
|
1139
|
+
# @return [GetRequestStatusResponse]
|
1140
|
+
def get_request_status(request_id, opts = {})
|
1141
|
+
data, _status_code, _headers = get_request_status_with_http_info(request_id, opts)
|
1142
|
+
data
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
# Get Request Status of Alert
|
1146
|
+
# Used to track the status and alert details (if any) of the request whose identifier is given
|
1147
|
+
# @param request_id Universally unique identifier of the questioned request
|
1148
|
+
# @param [Hash] opts the optional parameters
|
1149
|
+
# @return [Array<(GetRequestStatusResponse, Fixnum, Hash)>] GetRequestStatusResponse data, response status code and response headers
|
1150
|
+
def get_request_status_with_http_info(request_id, opts = {})
|
1151
|
+
if @api_client.config.debugging
|
1152
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.get_request_status ...'
|
1153
|
+
end
|
1154
|
+
# verify the required parameter 'request_id' is set
|
1155
|
+
if @api_client.config.client_side_validation && request_id.nil?
|
1156
|
+
fail ArgumentError, "Missing the required parameter 'request_id' when calling AlertApi.get_request_status"
|
1157
|
+
end
|
1158
|
+
# resource path
|
1159
|
+
local_var_path = '/v2/alerts/requests/{requestId}'.sub('{' + 'requestId' + '}', request_id.to_s)
|
1160
|
+
|
1161
|
+
# query parameters
|
1162
|
+
query_params = {}
|
1163
|
+
|
1164
|
+
# header parameters
|
1165
|
+
header_params = {}
|
1166
|
+
# HTTP header 'Accept' (if needed)
|
1167
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1168
|
+
|
1169
|
+
# form parameters
|
1170
|
+
form_params = {}
|
1171
|
+
|
1172
|
+
# http body (model)
|
1173
|
+
post_body = nil
|
1174
|
+
auth_names = ['GenieKey']
|
1175
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1176
|
+
:header_params => header_params,
|
1177
|
+
:query_params => query_params,
|
1178
|
+
:form_params => form_params,
|
1179
|
+
:body => post_body,
|
1180
|
+
:auth_names => auth_names,
|
1181
|
+
:return_type => 'GetRequestStatusResponse')
|
1182
|
+
if @api_client.config.debugging
|
1183
|
+
@api_client.config.logger.debug "API called: AlertApi#get_request_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1184
|
+
end
|
1185
|
+
return data, status_code, headers
|
1186
|
+
end
|
1187
|
+
# Get Saved Search
|
1188
|
+
# Get saved search for the given search identifier
|
1189
|
+
# @param identifier Identifier of the saved search which could be 'id' or 'name'
|
1190
|
+
# @param [Hash] opts the optional parameters
|
1191
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', or 'name' (default to id)
|
1192
|
+
# @return [GetSavedSearchResponse]
|
1193
|
+
def get_saved_search(identifier, opts = {})
|
1194
|
+
data, _status_code, _headers = get_saved_search_with_http_info(identifier, opts)
|
1195
|
+
data
|
1196
|
+
end
|
1197
|
+
|
1198
|
+
# Get Saved Search
|
1199
|
+
# Get saved search for the given search identifier
|
1200
|
+
# @param identifier Identifier of the saved search which could be 'id' or 'name'
|
1201
|
+
# @param [Hash] opts the optional parameters
|
1202
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', or 'name'
|
1203
|
+
# @return [Array<(GetSavedSearchResponse, Fixnum, Hash)>] GetSavedSearchResponse data, response status code and response headers
|
1204
|
+
def get_saved_search_with_http_info(identifier, opts = {})
|
1205
|
+
if @api_client.config.debugging
|
1206
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.get_saved_search ...'
|
1207
|
+
end
|
1208
|
+
# verify the required parameter 'identifier' is set
|
1209
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
1210
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.get_saved_search"
|
1211
|
+
end
|
1212
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'name'].include?(opts[:'identifier_type'])
|
1213
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, name'
|
1214
|
+
end
|
1215
|
+
# resource path
|
1216
|
+
local_var_path = '/v2/alerts/saved-searches/{identifier}'.sub('{' + 'identifier' + '}', identifier.to_s)
|
1217
|
+
|
1218
|
+
# query parameters
|
1219
|
+
query_params = {}
|
1220
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
1221
|
+
|
1222
|
+
# header parameters
|
1223
|
+
header_params = {}
|
1224
|
+
# HTTP header 'Accept' (if needed)
|
1225
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1226
|
+
|
1227
|
+
# form parameters
|
1228
|
+
form_params = {}
|
1229
|
+
|
1230
|
+
# http body (model)
|
1231
|
+
post_body = nil
|
1232
|
+
auth_names = ['GenieKey']
|
1233
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1234
|
+
:header_params => header_params,
|
1235
|
+
:query_params => query_params,
|
1236
|
+
:form_params => form_params,
|
1237
|
+
:body => post_body,
|
1238
|
+
:auth_names => auth_names,
|
1239
|
+
:return_type => 'GetSavedSearchResponse')
|
1240
|
+
if @api_client.config.debugging
|
1241
|
+
@api_client.config.logger.debug "API called: AlertApi#get_saved_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1242
|
+
end
|
1243
|
+
return data, status_code, headers
|
1244
|
+
end
|
1245
|
+
# List Alerts
|
1246
|
+
# Returns list of alerts
|
1247
|
+
# @param [Hash] opts the optional parameters
|
1248
|
+
# @option opts [String] :query Search query to apply while filtering the alerts
|
1249
|
+
# @option opts [String] :search_identifier Identifier of the saved search query to apply while filtering the alerts
|
1250
|
+
# @option opts [String] :search_identifier_type Identifier type of the saved search query. Possible values are 'id', or 'name' (default to id)
|
1251
|
+
# @option opts [Integer] :offset Start index of the result set (to apply pagination). Minimum value (and also default value) is 0
|
1252
|
+
# @option opts [Integer] :limit Maximum number of items to provide in the result. Must be a positive integer value. Default value is 20 and maximum value is 100
|
1253
|
+
# @option opts [String] :sort Name of the field that result set will be sorted by (default to createdAt)
|
1254
|
+
# @option opts [String] :order Sorting order of the result set (default to desc)
|
1255
|
+
# @return [ListAlertsResponse]
|
1256
|
+
def list_alerts(opts = {})
|
1257
|
+
data, _status_code, _headers = list_alerts_with_http_info(opts)
|
1258
|
+
data
|
1259
|
+
end
|
1260
|
+
|
1261
|
+
# List Alerts
|
1262
|
+
# Returns list of alerts
|
1263
|
+
# @param [Hash] opts the optional parameters
|
1264
|
+
# @option opts [String] :query Search query to apply while filtering the alerts
|
1265
|
+
# @option opts [String] :search_identifier Identifier of the saved search query to apply while filtering the alerts
|
1266
|
+
# @option opts [String] :search_identifier_type Identifier type of the saved search query. Possible values are 'id', or 'name'
|
1267
|
+
# @option opts [Integer] :offset Start index of the result set (to apply pagination). Minimum value (and also default value) is 0
|
1268
|
+
# @option opts [Integer] :limit Maximum number of items to provide in the result. Must be a positive integer value. Default value is 20 and maximum value is 100
|
1269
|
+
# @option opts [String] :sort Name of the field that result set will be sorted by
|
1270
|
+
# @option opts [String] :order Sorting order of the result set
|
1271
|
+
# @return [Array<(ListAlertsResponse, Fixnum, Hash)>] ListAlertsResponse data, response status code and response headers
|
1272
|
+
def list_alerts_with_http_info(opts = {})
|
1273
|
+
if @api_client.config.debugging
|
1274
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.list_alerts ...'
|
1275
|
+
end
|
1276
|
+
if @api_client.config.client_side_validation && opts[:'search_identifier_type'] && !['id', 'name'].include?(opts[:'search_identifier_type'])
|
1277
|
+
fail ArgumentError, 'invalid value for "search_identifier_type", must be one of id, name'
|
1278
|
+
end
|
1279
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
1280
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling AlertApi.list_alerts, must be greater than or equal to 0.'
|
1281
|
+
end
|
1282
|
+
|
1283
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
1284
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AlertApi.list_alerts, must be smaller than or equal to 100.'
|
1285
|
+
end
|
1286
|
+
|
1287
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1288
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AlertApi.list_alerts, must be greater than or equal to 1.'
|
1289
|
+
end
|
1290
|
+
|
1291
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !['createdAt', 'updatedAt', 'tinyId', 'alias', 'message', 'status', 'acknowledged', 'isSeen', 'snoozed', 'snoozedUntil', 'count', 'lastOccurredAt', 'source', 'owner', 'integration.name', 'integration.type', 'report.ackTime', 'report.closeTime', 'report.acknowledgedBy', 'report.closedBy'].include?(opts[:'sort'])
|
1292
|
+
fail ArgumentError, 'invalid value for "sort", must be one of createdAt, updatedAt, tinyId, alias, message, status, acknowledged, isSeen, snoozed, snoozedUntil, count, lastOccurredAt, source, owner, integration.name, integration.type, report.ackTime, report.closeTime, report.acknowledgedBy, report.closedBy'
|
1293
|
+
end
|
1294
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['asc', 'desc'].include?(opts[:'order'])
|
1295
|
+
fail ArgumentError, 'invalid value for "order", must be one of asc, desc'
|
1296
|
+
end
|
1297
|
+
# resource path
|
1298
|
+
local_var_path = '/v2/alerts'
|
1299
|
+
|
1300
|
+
# query parameters
|
1301
|
+
query_params = {}
|
1302
|
+
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
1303
|
+
query_params[:'searchIdentifier'] = opts[:'search_identifier'] if !opts[:'search_identifier'].nil?
|
1304
|
+
query_params[:'searchIdentifierType'] = opts[:'search_identifier_type'] if !opts[:'search_identifier_type'].nil?
|
1305
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1306
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1307
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
1308
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
1309
|
+
|
1310
|
+
# header parameters
|
1311
|
+
header_params = {}
|
1312
|
+
# HTTP header 'Accept' (if needed)
|
1313
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1314
|
+
|
1315
|
+
# form parameters
|
1316
|
+
form_params = {}
|
1317
|
+
|
1318
|
+
# http body (model)
|
1319
|
+
post_body = nil
|
1320
|
+
auth_names = ['GenieKey']
|
1321
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1322
|
+
:header_params => header_params,
|
1323
|
+
:query_params => query_params,
|
1324
|
+
:form_params => form_params,
|
1325
|
+
:body => post_body,
|
1326
|
+
:auth_names => auth_names,
|
1327
|
+
:return_type => 'ListAlertsResponse')
|
1328
|
+
if @api_client.config.debugging
|
1329
|
+
@api_client.config.logger.debug "API called: AlertApi#list_alerts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1330
|
+
end
|
1331
|
+
return data, status_code, headers
|
1332
|
+
end
|
1333
|
+
# List Alert Attachments
|
1334
|
+
# List alert attachment names and urls for related alert
|
1335
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1336
|
+
# @param [Hash] opts the optional parameters
|
1337
|
+
# @option opts [String] :alert_identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
1338
|
+
# @return [ListAlertAttachmentsResponse]
|
1339
|
+
def list_attachments(identifier, opts = {})
|
1340
|
+
data, _status_code, _headers = list_attachments_with_http_info(identifier, opts)
|
1341
|
+
data
|
1342
|
+
end
|
1343
|
+
|
1344
|
+
# List Alert Attachments
|
1345
|
+
# List alert attachment names and urls for related alert
|
1346
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1347
|
+
# @param [Hash] opts the optional parameters
|
1348
|
+
# @option opts [String] :alert_identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
1349
|
+
# @return [Array<(ListAlertAttachmentsResponse, Fixnum, Hash)>] ListAlertAttachmentsResponse data, response status code and response headers
|
1350
|
+
def list_attachments_with_http_info(identifier, opts = {})
|
1351
|
+
if @api_client.config.debugging
|
1352
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.list_attachments ...'
|
1353
|
+
end
|
1354
|
+
# verify the required parameter 'identifier' is set
|
1355
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
1356
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.list_attachments"
|
1357
|
+
end
|
1358
|
+
if @api_client.config.client_side_validation && opts[:'alert_identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'alert_identifier_type'])
|
1359
|
+
fail ArgumentError, 'invalid value for "alert_identifier_type", must be one of id, alias, tiny'
|
1360
|
+
end
|
1361
|
+
# resource path
|
1362
|
+
local_var_path = '/v2/alerts/{identifier}/attachments'.sub('{' + 'identifier' + '}', identifier.to_s)
|
1363
|
+
|
1364
|
+
# query parameters
|
1365
|
+
query_params = {}
|
1366
|
+
query_params[:'alertIdentifierType'] = opts[:'alert_identifier_type'] if !opts[:'alert_identifier_type'].nil?
|
1367
|
+
|
1368
|
+
# header parameters
|
1369
|
+
header_params = {}
|
1370
|
+
# HTTP header 'Accept' (if needed)
|
1371
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1372
|
+
|
1373
|
+
# form parameters
|
1374
|
+
form_params = {}
|
1375
|
+
|
1376
|
+
# http body (model)
|
1377
|
+
post_body = nil
|
1378
|
+
auth_names = ['GenieKey']
|
1379
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1380
|
+
:header_params => header_params,
|
1381
|
+
:query_params => query_params,
|
1382
|
+
:form_params => form_params,
|
1383
|
+
:body => post_body,
|
1384
|
+
:auth_names => auth_names,
|
1385
|
+
:return_type => 'ListAlertAttachmentsResponse')
|
1386
|
+
if @api_client.config.debugging
|
1387
|
+
@api_client.config.logger.debug "API called: AlertApi#list_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1388
|
+
end
|
1389
|
+
return data, status_code, headers
|
1390
|
+
end
|
1391
|
+
# List Alert Logs
|
1392
|
+
# List alert logs for the given alert identifier
|
1393
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1394
|
+
# @param [Hash] opts the optional parameters
|
1395
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
1396
|
+
# @option opts [String] :offset Starting value of the offset property
|
1397
|
+
# @option opts [String] :direction Page direction to apply for the given offset with 'next' and 'prev' (default to next)
|
1398
|
+
# @option opts [Integer] :limit Maximum number of items to provide in the result. Must be a positive integer value. Default value is 20 and maximum value is 100
|
1399
|
+
# @option opts [String] :order Sorting order of the result set (default to desc)
|
1400
|
+
# @return [ListAlertLogsResponse]
|
1401
|
+
def list_logs(identifier, opts = {})
|
1402
|
+
data, _status_code, _headers = list_logs_with_http_info(identifier, opts)
|
1403
|
+
data
|
1404
|
+
end
|
1405
|
+
|
1406
|
+
# List Alert Logs
|
1407
|
+
# List alert logs for the given alert identifier
|
1408
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1409
|
+
# @param [Hash] opts the optional parameters
|
1410
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
1411
|
+
# @option opts [String] :offset Starting value of the offset property
|
1412
|
+
# @option opts [String] :direction Page direction to apply for the given offset with 'next' and 'prev'
|
1413
|
+
# @option opts [Integer] :limit Maximum number of items to provide in the result. Must be a positive integer value. Default value is 20 and maximum value is 100
|
1414
|
+
# @option opts [String] :order Sorting order of the result set
|
1415
|
+
# @return [Array<(ListAlertLogsResponse, Fixnum, Hash)>] ListAlertLogsResponse data, response status code and response headers
|
1416
|
+
def list_logs_with_http_info(identifier, opts = {})
|
1417
|
+
if @api_client.config.debugging
|
1418
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.list_logs ...'
|
1419
|
+
end
|
1420
|
+
# verify the required parameter 'identifier' is set
|
1421
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
1422
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.list_logs"
|
1423
|
+
end
|
1424
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
1425
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
1426
|
+
end
|
1427
|
+
if @api_client.config.client_side_validation && opts[:'direction'] && !['next', 'prev'].include?(opts[:'direction'])
|
1428
|
+
fail ArgumentError, 'invalid value for "direction", must be one of next, prev'
|
1429
|
+
end
|
1430
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
1431
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AlertApi.list_logs, must be smaller than or equal to 100.'
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1435
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AlertApi.list_logs, must be greater than or equal to 1.'
|
1436
|
+
end
|
1437
|
+
|
1438
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['asc', 'desc'].include?(opts[:'order'])
|
1439
|
+
fail ArgumentError, 'invalid value for "order", must be one of asc, desc'
|
1440
|
+
end
|
1441
|
+
# resource path
|
1442
|
+
local_var_path = '/v2/alerts/{identifier}/logs'.sub('{' + 'identifier' + '}', identifier.to_s)
|
1443
|
+
|
1444
|
+
# query parameters
|
1445
|
+
query_params = {}
|
1446
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
1447
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1448
|
+
query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
|
1449
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1450
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
1451
|
+
|
1452
|
+
# header parameters
|
1453
|
+
header_params = {}
|
1454
|
+
# HTTP header 'Accept' (if needed)
|
1455
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1456
|
+
|
1457
|
+
# form parameters
|
1458
|
+
form_params = {}
|
1459
|
+
|
1460
|
+
# http body (model)
|
1461
|
+
post_body = nil
|
1462
|
+
auth_names = ['GenieKey']
|
1463
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1464
|
+
:header_params => header_params,
|
1465
|
+
:query_params => query_params,
|
1466
|
+
:form_params => form_params,
|
1467
|
+
:body => post_body,
|
1468
|
+
:auth_names => auth_names,
|
1469
|
+
:return_type => 'ListAlertLogsResponse')
|
1470
|
+
if @api_client.config.debugging
|
1471
|
+
@api_client.config.logger.debug "API called: AlertApi#list_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1472
|
+
end
|
1473
|
+
return data, status_code, headers
|
1474
|
+
end
|
1475
|
+
# List Alert Notes
|
1476
|
+
# List alert notes for the given alert identifier
|
1477
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1478
|
+
# @param [Hash] opts the optional parameters
|
1479
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
1480
|
+
# @option opts [String] :offset Starting value of the offset property
|
1481
|
+
# @option opts [String] :direction Page direction to apply for the given offset with 'next' and 'prev' (default to next)
|
1482
|
+
# @option opts [Integer] :limit Maximum number of items to provide in the result. Must be a positive integer value. Default value is 20 and maximum value is 100
|
1483
|
+
# @option opts [String] :order Sorting order of the result set (default to desc)
|
1484
|
+
# @return [ListAlertNotesResponse]
|
1485
|
+
def list_notes(identifier, opts = {})
|
1486
|
+
data, _status_code, _headers = list_notes_with_http_info(identifier, opts)
|
1487
|
+
data
|
1488
|
+
end
|
1489
|
+
|
1490
|
+
# List Alert Notes
|
1491
|
+
# List alert notes for the given alert identifier
|
1492
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1493
|
+
# @param [Hash] opts the optional parameters
|
1494
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
1495
|
+
# @option opts [String] :offset Starting value of the offset property
|
1496
|
+
# @option opts [String] :direction Page direction to apply for the given offset with 'next' and 'prev'
|
1497
|
+
# @option opts [Integer] :limit Maximum number of items to provide in the result. Must be a positive integer value. Default value is 20 and maximum value is 100
|
1498
|
+
# @option opts [String] :order Sorting order of the result set
|
1499
|
+
# @return [Array<(ListAlertNotesResponse, Fixnum, Hash)>] ListAlertNotesResponse data, response status code and response headers
|
1500
|
+
def list_notes_with_http_info(identifier, opts = {})
|
1501
|
+
if @api_client.config.debugging
|
1502
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.list_notes ...'
|
1503
|
+
end
|
1504
|
+
# verify the required parameter 'identifier' is set
|
1505
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
1506
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.list_notes"
|
1507
|
+
end
|
1508
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
1509
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
1510
|
+
end
|
1511
|
+
if @api_client.config.client_side_validation && opts[:'direction'] && !['next', 'prev'].include?(opts[:'direction'])
|
1512
|
+
fail ArgumentError, 'invalid value for "direction", must be one of next, prev'
|
1513
|
+
end
|
1514
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
1515
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AlertApi.list_notes, must be smaller than or equal to 100.'
|
1516
|
+
end
|
1517
|
+
|
1518
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1519
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AlertApi.list_notes, must be greater than or equal to 1.'
|
1520
|
+
end
|
1521
|
+
|
1522
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['asc', 'desc'].include?(opts[:'order'])
|
1523
|
+
fail ArgumentError, 'invalid value for "order", must be one of asc, desc'
|
1524
|
+
end
|
1525
|
+
# resource path
|
1526
|
+
local_var_path = '/v2/alerts/{identifier}/notes'.sub('{' + 'identifier' + '}', identifier.to_s)
|
1527
|
+
|
1528
|
+
# query parameters
|
1529
|
+
query_params = {}
|
1530
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
1531
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1532
|
+
query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
|
1533
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1534
|
+
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
1535
|
+
|
1536
|
+
# header parameters
|
1537
|
+
header_params = {}
|
1538
|
+
# HTTP header 'Accept' (if needed)
|
1539
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1540
|
+
|
1541
|
+
# form parameters
|
1542
|
+
form_params = {}
|
1543
|
+
|
1544
|
+
# http body (model)
|
1545
|
+
post_body = nil
|
1546
|
+
auth_names = ['GenieKey']
|
1547
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1548
|
+
:header_params => header_params,
|
1549
|
+
:query_params => query_params,
|
1550
|
+
:form_params => form_params,
|
1551
|
+
:body => post_body,
|
1552
|
+
:auth_names => auth_names,
|
1553
|
+
:return_type => 'ListAlertNotesResponse')
|
1554
|
+
if @api_client.config.debugging
|
1555
|
+
@api_client.config.logger.debug "API called: AlertApi#list_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1556
|
+
end
|
1557
|
+
return data, status_code, headers
|
1558
|
+
end
|
1559
|
+
# List Alert Recipients
|
1560
|
+
# List alert recipients for the given alert identifier
|
1561
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1562
|
+
# @param [Hash] opts the optional parameters
|
1563
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
1564
|
+
# @return [ListAlertRecipientsResponse]
|
1565
|
+
def list_recipients(identifier, opts = {})
|
1566
|
+
data, _status_code, _headers = list_recipients_with_http_info(identifier, opts)
|
1567
|
+
data
|
1568
|
+
end
|
1569
|
+
|
1570
|
+
# List Alert Recipients
|
1571
|
+
# List alert recipients for the given alert identifier
|
1572
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1573
|
+
# @param [Hash] opts the optional parameters
|
1574
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
1575
|
+
# @return [Array<(ListAlertRecipientsResponse, Fixnum, Hash)>] ListAlertRecipientsResponse data, response status code and response headers
|
1576
|
+
def list_recipients_with_http_info(identifier, opts = {})
|
1577
|
+
if @api_client.config.debugging
|
1578
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.list_recipients ...'
|
1579
|
+
end
|
1580
|
+
# verify the required parameter 'identifier' is set
|
1581
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
1582
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.list_recipients"
|
1583
|
+
end
|
1584
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
1585
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
1586
|
+
end
|
1587
|
+
# resource path
|
1588
|
+
local_var_path = '/v2/alerts/{identifier}/recipients'.sub('{' + 'identifier' + '}', identifier.to_s)
|
1589
|
+
|
1590
|
+
# query parameters
|
1591
|
+
query_params = {}
|
1592
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
1593
|
+
|
1594
|
+
# header parameters
|
1595
|
+
header_params = {}
|
1596
|
+
# HTTP header 'Accept' (if needed)
|
1597
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1598
|
+
|
1599
|
+
# form parameters
|
1600
|
+
form_params = {}
|
1601
|
+
|
1602
|
+
# http body (model)
|
1603
|
+
post_body = nil
|
1604
|
+
auth_names = ['GenieKey']
|
1605
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1606
|
+
:header_params => header_params,
|
1607
|
+
:query_params => query_params,
|
1608
|
+
:form_params => form_params,
|
1609
|
+
:body => post_body,
|
1610
|
+
:auth_names => auth_names,
|
1611
|
+
:return_type => 'ListAlertRecipientsResponse')
|
1612
|
+
if @api_client.config.debugging
|
1613
|
+
@api_client.config.logger.debug "API called: AlertApi#list_recipients\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1614
|
+
end
|
1615
|
+
return data, status_code, headers
|
1616
|
+
end
|
1617
|
+
# Lists Saved Searches
|
1618
|
+
# List all saved searches
|
1619
|
+
# @param [Hash] opts the optional parameters
|
1620
|
+
# @return [ListSavedSearchesResponse]
|
1621
|
+
def list_saved_searches(opts = {})
|
1622
|
+
data, _status_code, _headers = list_saved_searches_with_http_info(opts)
|
1623
|
+
data
|
1624
|
+
end
|
1625
|
+
|
1626
|
+
# Lists Saved Searches
|
1627
|
+
# List all saved searches
|
1628
|
+
# @param [Hash] opts the optional parameters
|
1629
|
+
# @return [Array<(ListSavedSearchesResponse, Fixnum, Hash)>] ListSavedSearchesResponse data, response status code and response headers
|
1630
|
+
def list_saved_searches_with_http_info(opts = {})
|
1631
|
+
if @api_client.config.debugging
|
1632
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.list_saved_searches ...'
|
1633
|
+
end
|
1634
|
+
# resource path
|
1635
|
+
local_var_path = '/v2/alerts/saved-searches'
|
1636
|
+
|
1637
|
+
# query parameters
|
1638
|
+
query_params = {}
|
1639
|
+
|
1640
|
+
# header parameters
|
1641
|
+
header_params = {}
|
1642
|
+
# HTTP header 'Accept' (if needed)
|
1643
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1644
|
+
|
1645
|
+
# form parameters
|
1646
|
+
form_params = {}
|
1647
|
+
|
1648
|
+
# http body (model)
|
1649
|
+
post_body = nil
|
1650
|
+
auth_names = ['GenieKey']
|
1651
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1652
|
+
:header_params => header_params,
|
1653
|
+
:query_params => query_params,
|
1654
|
+
:form_params => form_params,
|
1655
|
+
:body => post_body,
|
1656
|
+
:auth_names => auth_names,
|
1657
|
+
:return_type => 'ListSavedSearchesResponse')
|
1658
|
+
if @api_client.config.debugging
|
1659
|
+
@api_client.config.logger.debug "API called: AlertApi#list_saved_searches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1660
|
+
end
|
1661
|
+
return data, status_code, headers
|
1662
|
+
end
|
1663
|
+
# Remove Alert Attachment
|
1664
|
+
# Remove alert attachment for the given identifier
|
1665
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1666
|
+
# @param attachment_id Identifier of alert attachment
|
1667
|
+
# @param [Hash] opts the optional parameters
|
1668
|
+
# @option opts [String] :alert_identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
1669
|
+
# @option opts [String] :user Display name of the request owner
|
1670
|
+
# @return [SuccessResponse]
|
1671
|
+
def remove_attachment(identifier, attachment_id, opts = {})
|
1672
|
+
data, _status_code, _headers = remove_attachment_with_http_info(identifier, attachment_id, opts)
|
1673
|
+
data
|
1674
|
+
end
|
1675
|
+
|
1676
|
+
# Remove Alert Attachment
|
1677
|
+
# Remove alert attachment for the given identifier
|
1678
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1679
|
+
# @param attachment_id Identifier of alert attachment
|
1680
|
+
# @param [Hash] opts the optional parameters
|
1681
|
+
# @option opts [String] :alert_identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
1682
|
+
# @option opts [String] :user Display name of the request owner
|
1683
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
1684
|
+
def remove_attachment_with_http_info(identifier, attachment_id, opts = {})
|
1685
|
+
if @api_client.config.debugging
|
1686
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.remove_attachment ...'
|
1687
|
+
end
|
1688
|
+
# verify the required parameter 'identifier' is set
|
1689
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
1690
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.remove_attachment"
|
1691
|
+
end
|
1692
|
+
# verify the required parameter 'attachment_id' is set
|
1693
|
+
if @api_client.config.client_side_validation && attachment_id.nil?
|
1694
|
+
fail ArgumentError, "Missing the required parameter 'attachment_id' when calling AlertApi.remove_attachment"
|
1695
|
+
end
|
1696
|
+
if @api_client.config.client_side_validation && opts[:'alert_identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'alert_identifier_type'])
|
1697
|
+
fail ArgumentError, 'invalid value for "alert_identifier_type", must be one of id, alias, tiny'
|
1698
|
+
end
|
1699
|
+
# resource path
|
1700
|
+
local_var_path = '/v2/alerts/{identifier}/attachments/{attachmentId}'.sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'attachmentId' + '}', attachment_id.to_s)
|
1701
|
+
|
1702
|
+
# query parameters
|
1703
|
+
query_params = {}
|
1704
|
+
query_params[:'alertIdentifierType'] = opts[:'alert_identifier_type'] if !opts[:'alert_identifier_type'].nil?
|
1705
|
+
query_params[:'user'] = opts[:'user'] if !opts[:'user'].nil?
|
1706
|
+
|
1707
|
+
# header parameters
|
1708
|
+
header_params = {}
|
1709
|
+
# HTTP header 'Accept' (if needed)
|
1710
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1711
|
+
|
1712
|
+
# form parameters
|
1713
|
+
form_params = {}
|
1714
|
+
|
1715
|
+
# http body (model)
|
1716
|
+
post_body = nil
|
1717
|
+
auth_names = ['GenieKey']
|
1718
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
1719
|
+
:header_params => header_params,
|
1720
|
+
:query_params => query_params,
|
1721
|
+
:form_params => form_params,
|
1722
|
+
:body => post_body,
|
1723
|
+
:auth_names => auth_names,
|
1724
|
+
:return_type => 'SuccessResponse')
|
1725
|
+
if @api_client.config.debugging
|
1726
|
+
@api_client.config.logger.debug "API called: AlertApi#remove_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1727
|
+
end
|
1728
|
+
return data, status_code, headers
|
1729
|
+
end
|
1730
|
+
# Remove Details
|
1731
|
+
# Remove details of the alert with given identifier
|
1732
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1733
|
+
# @param keys Comma separated list of keys to remove from the custom properties of the alert (e.g. 'key1,key2')
|
1734
|
+
# @param [Hash] opts the optional parameters
|
1735
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
1736
|
+
# @option opts [String] :user Display name of the request owner
|
1737
|
+
# @option opts [String] :note Additional alert note to add
|
1738
|
+
# @option opts [String] :source Display name of the request source
|
1739
|
+
# @return [SuccessResponse]
|
1740
|
+
def remove_details(identifier, keys, opts = {})
|
1741
|
+
data, _status_code, _headers = remove_details_with_http_info(identifier, keys, opts)
|
1742
|
+
data
|
1743
|
+
end
|
1744
|
+
|
1745
|
+
# Remove Details
|
1746
|
+
# Remove details of the alert with given identifier
|
1747
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1748
|
+
# @param keys Comma separated list of keys to remove from the custom properties of the alert (e.g. 'key1,key2')
|
1749
|
+
# @param [Hash] opts the optional parameters
|
1750
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
1751
|
+
# @option opts [String] :user Display name of the request owner
|
1752
|
+
# @option opts [String] :note Additional alert note to add
|
1753
|
+
# @option opts [String] :source Display name of the request source
|
1754
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
1755
|
+
def remove_details_with_http_info(identifier, keys, opts = {})
|
1756
|
+
if @api_client.config.debugging
|
1757
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.remove_details ...'
|
1758
|
+
end
|
1759
|
+
# verify the required parameter 'identifier' is set
|
1760
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
1761
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.remove_details"
|
1762
|
+
end
|
1763
|
+
# verify the required parameter 'keys' is set
|
1764
|
+
if @api_client.config.client_side_validation && keys.nil?
|
1765
|
+
fail ArgumentError, "Missing the required parameter 'keys' when calling AlertApi.remove_details"
|
1766
|
+
end
|
1767
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
1768
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
1769
|
+
end
|
1770
|
+
# resource path
|
1771
|
+
local_var_path = '/v2/alerts/{identifier}/details'.sub('{' + 'identifier' + '}', identifier.to_s)
|
1772
|
+
|
1773
|
+
# query parameters
|
1774
|
+
query_params = {}
|
1775
|
+
query_params[:'keys'] = @api_client.build_collection_param(keys, :csv)
|
1776
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
1777
|
+
query_params[:'user'] = opts[:'user'] if !opts[:'user'].nil?
|
1778
|
+
query_params[:'note'] = opts[:'note'] if !opts[:'note'].nil?
|
1779
|
+
query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
|
1780
|
+
|
1781
|
+
# header parameters
|
1782
|
+
header_params = {}
|
1783
|
+
# HTTP header 'Accept' (if needed)
|
1784
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1785
|
+
|
1786
|
+
# form parameters
|
1787
|
+
form_params = {}
|
1788
|
+
|
1789
|
+
# http body (model)
|
1790
|
+
post_body = nil
|
1791
|
+
auth_names = ['GenieKey']
|
1792
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
1793
|
+
:header_params => header_params,
|
1794
|
+
:query_params => query_params,
|
1795
|
+
:form_params => form_params,
|
1796
|
+
:body => post_body,
|
1797
|
+
:auth_names => auth_names,
|
1798
|
+
:return_type => 'SuccessResponse')
|
1799
|
+
if @api_client.config.debugging
|
1800
|
+
@api_client.config.logger.debug "API called: AlertApi#remove_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1801
|
+
end
|
1802
|
+
return data, status_code, headers
|
1803
|
+
end
|
1804
|
+
# Remove Tags
|
1805
|
+
# Remove tags of the alert with given identifier
|
1806
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1807
|
+
# @param tags Tags field of the given alert as comma seperated values (e.g. 'tag1, tag2')
|
1808
|
+
# @param [Hash] opts the optional parameters
|
1809
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
1810
|
+
# @option opts [String] :user Display name of the request owner
|
1811
|
+
# @option opts [String] :note Additional alert note to add
|
1812
|
+
# @option opts [String] :source Display name of the request source
|
1813
|
+
# @return [SuccessResponse]
|
1814
|
+
def remove_tags(identifier, tags, opts = {})
|
1815
|
+
data, _status_code, _headers = remove_tags_with_http_info(identifier, tags, opts)
|
1816
|
+
data
|
1817
|
+
end
|
1818
|
+
|
1819
|
+
# Remove Tags
|
1820
|
+
# Remove tags of the alert with given identifier
|
1821
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1822
|
+
# @param tags Tags field of the given alert as comma seperated values (e.g. 'tag1, tag2')
|
1823
|
+
# @param [Hash] opts the optional parameters
|
1824
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
1825
|
+
# @option opts [String] :user Display name of the request owner
|
1826
|
+
# @option opts [String] :note Additional alert note to add
|
1827
|
+
# @option opts [String] :source Display name of the request source
|
1828
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
1829
|
+
def remove_tags_with_http_info(identifier, tags, opts = {})
|
1830
|
+
if @api_client.config.debugging
|
1831
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.remove_tags ...'
|
1832
|
+
end
|
1833
|
+
# verify the required parameter 'identifier' is set
|
1834
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
1835
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.remove_tags"
|
1836
|
+
end
|
1837
|
+
# verify the required parameter 'tags' is set
|
1838
|
+
if @api_client.config.client_side_validation && tags.nil?
|
1839
|
+
fail ArgumentError, "Missing the required parameter 'tags' when calling AlertApi.remove_tags"
|
1840
|
+
end
|
1841
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
1842
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
1843
|
+
end
|
1844
|
+
# resource path
|
1845
|
+
local_var_path = '/v2/alerts/{identifier}/tags'.sub('{' + 'identifier' + '}', identifier.to_s)
|
1846
|
+
|
1847
|
+
# query parameters
|
1848
|
+
query_params = {}
|
1849
|
+
query_params[:'tags'] = @api_client.build_collection_param(tags, :csv)
|
1850
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
1851
|
+
query_params[:'user'] = opts[:'user'] if !opts[:'user'].nil?
|
1852
|
+
query_params[:'note'] = opts[:'note'] if !opts[:'note'].nil?
|
1853
|
+
query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
|
1854
|
+
|
1855
|
+
# header parameters
|
1856
|
+
header_params = {}
|
1857
|
+
# HTTP header 'Accept' (if needed)
|
1858
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1859
|
+
|
1860
|
+
# form parameters
|
1861
|
+
form_params = {}
|
1862
|
+
|
1863
|
+
# http body (model)
|
1864
|
+
post_body = nil
|
1865
|
+
auth_names = ['GenieKey']
|
1866
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
1867
|
+
:header_params => header_params,
|
1868
|
+
:query_params => query_params,
|
1869
|
+
:form_params => form_params,
|
1870
|
+
:body => post_body,
|
1871
|
+
:auth_names => auth_names,
|
1872
|
+
:return_type => 'SuccessResponse')
|
1873
|
+
if @api_client.config.debugging
|
1874
|
+
@api_client.config.logger.debug "API called: AlertApi#remove_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1875
|
+
end
|
1876
|
+
return data, status_code, headers
|
1877
|
+
end
|
1878
|
+
# Snooze Alert
|
1879
|
+
# Snooze alert with given identifier
|
1880
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1881
|
+
# @param body Request payload of snoozing alert action
|
1882
|
+
# @param [Hash] opts the optional parameters
|
1883
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
1884
|
+
# @return [SuccessResponse]
|
1885
|
+
def snooze_alert(identifier, body, opts = {})
|
1886
|
+
data, _status_code, _headers = snooze_alert_with_http_info(identifier, body, opts)
|
1887
|
+
data
|
1888
|
+
end
|
1889
|
+
|
1890
|
+
# Snooze Alert
|
1891
|
+
# Snooze alert with given identifier
|
1892
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1893
|
+
# @param body Request payload of snoozing alert action
|
1894
|
+
# @param [Hash] opts the optional parameters
|
1895
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
1896
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
1897
|
+
def snooze_alert_with_http_info(identifier, body, opts = {})
|
1898
|
+
if @api_client.config.debugging
|
1899
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.snooze_alert ...'
|
1900
|
+
end
|
1901
|
+
# verify the required parameter 'identifier' is set
|
1902
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
1903
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.snooze_alert"
|
1904
|
+
end
|
1905
|
+
# verify the required parameter 'body' is set
|
1906
|
+
if @api_client.config.client_side_validation && body.nil?
|
1907
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.snooze_alert"
|
1908
|
+
end
|
1909
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
1910
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
1911
|
+
end
|
1912
|
+
# resource path
|
1913
|
+
local_var_path = '/v2/alerts/{identifier}/snooze'.sub('{' + 'identifier' + '}', identifier.to_s)
|
1914
|
+
|
1915
|
+
# query parameters
|
1916
|
+
query_params = {}
|
1917
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
1918
|
+
|
1919
|
+
# header parameters
|
1920
|
+
header_params = {}
|
1921
|
+
# HTTP header 'Accept' (if needed)
|
1922
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1923
|
+
|
1924
|
+
# form parameters
|
1925
|
+
form_params = {}
|
1926
|
+
|
1927
|
+
# http body (model)
|
1928
|
+
post_body = @api_client.object_to_http_body(body)
|
1929
|
+
auth_names = ['GenieKey']
|
1930
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1931
|
+
:header_params => header_params,
|
1932
|
+
:query_params => query_params,
|
1933
|
+
:form_params => form_params,
|
1934
|
+
:body => post_body,
|
1935
|
+
:auth_names => auth_names,
|
1936
|
+
:return_type => 'SuccessResponse')
|
1937
|
+
if @api_client.config.debugging
|
1938
|
+
@api_client.config.logger.debug "API called: AlertApi#snooze_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1939
|
+
end
|
1940
|
+
return data, status_code, headers
|
1941
|
+
end
|
1942
|
+
# UnAcknowledge Alert
|
1943
|
+
# UnAcknowledge alert with given identifier
|
1944
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1945
|
+
# @param [Hash] opts the optional parameters
|
1946
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
1947
|
+
# @option opts [UnAcknowledgeAlertPayload] :body Request payload of unacknowledging alert action
|
1948
|
+
# @return [SuccessResponse]
|
1949
|
+
def un_acknowledge_alert(identifier, opts = {})
|
1950
|
+
data, _status_code, _headers = un_acknowledge_alert_with_http_info(identifier, opts)
|
1951
|
+
data
|
1952
|
+
end
|
1953
|
+
|
1954
|
+
# UnAcknowledge Alert
|
1955
|
+
# UnAcknowledge alert with given identifier
|
1956
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
1957
|
+
# @param [Hash] opts the optional parameters
|
1958
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
1959
|
+
# @option opts [UnAcknowledgeAlertPayload] :body Request payload of unacknowledging alert action
|
1960
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
1961
|
+
def un_acknowledge_alert_with_http_info(identifier, opts = {})
|
1962
|
+
if @api_client.config.debugging
|
1963
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.un_acknowledge_alert ...'
|
1964
|
+
end
|
1965
|
+
# verify the required parameter 'identifier' is set
|
1966
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
1967
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.un_acknowledge_alert"
|
1968
|
+
end
|
1969
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
1970
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
1971
|
+
end
|
1972
|
+
# resource path
|
1973
|
+
local_var_path = '/v2/alerts/{identifier}/unacknowledge'.sub('{' + 'identifier' + '}', identifier.to_s)
|
1974
|
+
|
1975
|
+
# query parameters
|
1976
|
+
query_params = {}
|
1977
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
1978
|
+
|
1979
|
+
# header parameters
|
1980
|
+
header_params = {}
|
1981
|
+
# HTTP header 'Accept' (if needed)
|
1982
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1983
|
+
|
1984
|
+
# form parameters
|
1985
|
+
form_params = {}
|
1986
|
+
|
1987
|
+
# http body (model)
|
1988
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
1989
|
+
auth_names = ['GenieKey']
|
1990
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1991
|
+
:header_params => header_params,
|
1992
|
+
:query_params => query_params,
|
1993
|
+
:form_params => form_params,
|
1994
|
+
:body => post_body,
|
1995
|
+
:auth_names => auth_names,
|
1996
|
+
:return_type => 'SuccessResponse')
|
1997
|
+
if @api_client.config.debugging
|
1998
|
+
@api_client.config.logger.debug "API called: AlertApi#un_acknowledge_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1999
|
+
end
|
2000
|
+
return data, status_code, headers
|
2001
|
+
end
|
2002
|
+
# Update Alert Description
|
2003
|
+
# Update the description of the alert with given identifier
|
2004
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
2005
|
+
# @param body Request payload of update alert description
|
2006
|
+
# @param [Hash] opts the optional parameters
|
2007
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
2008
|
+
# @return [SuccessResponse]
|
2009
|
+
def update_alert_description(identifier, body, opts = {})
|
2010
|
+
data, _status_code, _headers = update_alert_description_with_http_info(identifier, body, opts)
|
2011
|
+
data
|
2012
|
+
end
|
2013
|
+
|
2014
|
+
# Update Alert Description
|
2015
|
+
# Update the description of the alert with given identifier
|
2016
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
2017
|
+
# @param body Request payload of update alert description
|
2018
|
+
# @param [Hash] opts the optional parameters
|
2019
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
2020
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
2021
|
+
def update_alert_description_with_http_info(identifier, body, opts = {})
|
2022
|
+
if @api_client.config.debugging
|
2023
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.update_alert_description ...'
|
2024
|
+
end
|
2025
|
+
# verify the required parameter 'identifier' is set
|
2026
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
2027
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.update_alert_description"
|
2028
|
+
end
|
2029
|
+
# verify the required parameter 'body' is set
|
2030
|
+
if @api_client.config.client_side_validation && body.nil?
|
2031
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.update_alert_description"
|
2032
|
+
end
|
2033
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
2034
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
2035
|
+
end
|
2036
|
+
# resource path
|
2037
|
+
local_var_path = '/v2/alerts/{identifier}/description'.sub('{' + 'identifier' + '}', identifier.to_s)
|
2038
|
+
|
2039
|
+
# query parameters
|
2040
|
+
query_params = {}
|
2041
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
2042
|
+
|
2043
|
+
# header parameters
|
2044
|
+
header_params = {}
|
2045
|
+
# HTTP header 'Accept' (if needed)
|
2046
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2047
|
+
|
2048
|
+
# form parameters
|
2049
|
+
form_params = {}
|
2050
|
+
|
2051
|
+
# http body (model)
|
2052
|
+
post_body = @api_client.object_to_http_body(body)
|
2053
|
+
auth_names = ['GenieKey']
|
2054
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
2055
|
+
:header_params => header_params,
|
2056
|
+
:query_params => query_params,
|
2057
|
+
:form_params => form_params,
|
2058
|
+
:body => post_body,
|
2059
|
+
:auth_names => auth_names,
|
2060
|
+
:return_type => 'SuccessResponse')
|
2061
|
+
if @api_client.config.debugging
|
2062
|
+
@api_client.config.logger.debug "API called: AlertApi#update_alert_description\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2063
|
+
end
|
2064
|
+
return data, status_code, headers
|
2065
|
+
end
|
2066
|
+
# Update Alert Message
|
2067
|
+
# Update the message of the alert with given identifier
|
2068
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
2069
|
+
# @param body Request payload of update alert message
|
2070
|
+
# @param [Hash] opts the optional parameters
|
2071
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
2072
|
+
# @return [SuccessResponse]
|
2073
|
+
def update_alert_message(identifier, body, opts = {})
|
2074
|
+
data, _status_code, _headers = update_alert_message_with_http_info(identifier, body, opts)
|
2075
|
+
data
|
2076
|
+
end
|
2077
|
+
|
2078
|
+
# Update Alert Message
|
2079
|
+
# Update the message of the alert with given identifier
|
2080
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
2081
|
+
# @param body Request payload of update alert message
|
2082
|
+
# @param [Hash] opts the optional parameters
|
2083
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
2084
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
2085
|
+
def update_alert_message_with_http_info(identifier, body, opts = {})
|
2086
|
+
if @api_client.config.debugging
|
2087
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.update_alert_message ...'
|
2088
|
+
end
|
2089
|
+
# verify the required parameter 'identifier' is set
|
2090
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
2091
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.update_alert_message"
|
2092
|
+
end
|
2093
|
+
# verify the required parameter 'body' is set
|
2094
|
+
if @api_client.config.client_side_validation && body.nil?
|
2095
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.update_alert_message"
|
2096
|
+
end
|
2097
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
2098
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
2099
|
+
end
|
2100
|
+
# resource path
|
2101
|
+
local_var_path = '/v2/alerts/{identifier}/message'.sub('{' + 'identifier' + '}', identifier.to_s)
|
2102
|
+
|
2103
|
+
# query parameters
|
2104
|
+
query_params = {}
|
2105
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
2106
|
+
|
2107
|
+
# header parameters
|
2108
|
+
header_params = {}
|
2109
|
+
# HTTP header 'Accept' (if needed)
|
2110
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2111
|
+
|
2112
|
+
# form parameters
|
2113
|
+
form_params = {}
|
2114
|
+
|
2115
|
+
# http body (model)
|
2116
|
+
post_body = @api_client.object_to_http_body(body)
|
2117
|
+
auth_names = ['GenieKey']
|
2118
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
2119
|
+
:header_params => header_params,
|
2120
|
+
:query_params => query_params,
|
2121
|
+
:form_params => form_params,
|
2122
|
+
:body => post_body,
|
2123
|
+
:auth_names => auth_names,
|
2124
|
+
:return_type => 'SuccessResponse')
|
2125
|
+
if @api_client.config.debugging
|
2126
|
+
@api_client.config.logger.debug "API called: AlertApi#update_alert_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2127
|
+
end
|
2128
|
+
return data, status_code, headers
|
2129
|
+
end
|
2130
|
+
# Update Alert Priority
|
2131
|
+
# Update the priority of the alert with given identifier
|
2132
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
2133
|
+
# @param body Request payload of update alert priority
|
2134
|
+
# @param [Hash] opts the optional parameters
|
2135
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny' (default to id)
|
2136
|
+
# @return [SuccessResponse]
|
2137
|
+
def update_alert_priority(identifier, body, opts = {})
|
2138
|
+
data, _status_code, _headers = update_alert_priority_with_http_info(identifier, body, opts)
|
2139
|
+
data
|
2140
|
+
end
|
2141
|
+
|
2142
|
+
# Update Alert Priority
|
2143
|
+
# Update the priority of the alert with given identifier
|
2144
|
+
# @param identifier Identifier of alert which could be alert id, tiny id or alert alias
|
2145
|
+
# @param body Request payload of update alert priority
|
2146
|
+
# @param [Hash] opts the optional parameters
|
2147
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', 'alias' or 'tiny'
|
2148
|
+
# @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
|
2149
|
+
def update_alert_priority_with_http_info(identifier, body, opts = {})
|
2150
|
+
if @api_client.config.debugging
|
2151
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.update_alert_priority ...'
|
2152
|
+
end
|
2153
|
+
# verify the required parameter 'identifier' is set
|
2154
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
2155
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.update_alert_priority"
|
2156
|
+
end
|
2157
|
+
# verify the required parameter 'body' is set
|
2158
|
+
if @api_client.config.client_side_validation && body.nil?
|
2159
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.update_alert_priority"
|
2160
|
+
end
|
2161
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
|
2162
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
|
2163
|
+
end
|
2164
|
+
# resource path
|
2165
|
+
local_var_path = '/v2/alerts/{identifier}/priority'.sub('{' + 'identifier' + '}', identifier.to_s)
|
2166
|
+
|
2167
|
+
# query parameters
|
2168
|
+
query_params = {}
|
2169
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
2170
|
+
|
2171
|
+
# header parameters
|
2172
|
+
header_params = {}
|
2173
|
+
# HTTP header 'Accept' (if needed)
|
2174
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2175
|
+
|
2176
|
+
# form parameters
|
2177
|
+
form_params = {}
|
2178
|
+
|
2179
|
+
# http body (model)
|
2180
|
+
post_body = @api_client.object_to_http_body(body)
|
2181
|
+
auth_names = ['GenieKey']
|
2182
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
2183
|
+
:header_params => header_params,
|
2184
|
+
:query_params => query_params,
|
2185
|
+
:form_params => form_params,
|
2186
|
+
:body => post_body,
|
2187
|
+
:auth_names => auth_names,
|
2188
|
+
:return_type => 'SuccessResponse')
|
2189
|
+
if @api_client.config.debugging
|
2190
|
+
@api_client.config.logger.debug "API called: AlertApi#update_alert_priority\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2191
|
+
end
|
2192
|
+
return data, status_code, headers
|
2193
|
+
end
|
2194
|
+
# Update Saved Search
|
2195
|
+
# Update saved search for the given search identifier
|
2196
|
+
# @param identifier Identifier of the saved search which could be 'id' or 'name'
|
2197
|
+
# @param body Request payload of updating saved search
|
2198
|
+
# @param [Hash] opts the optional parameters
|
2199
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', or 'name' (default to id)
|
2200
|
+
# @return [GetSavedSearchResponse]
|
2201
|
+
def update_saved_search(identifier, body, opts = {})
|
2202
|
+
data, _status_code, _headers = update_saved_search_with_http_info(identifier, body, opts)
|
2203
|
+
data
|
2204
|
+
end
|
2205
|
+
|
2206
|
+
# Update Saved Search
|
2207
|
+
# Update saved search for the given search identifier
|
2208
|
+
# @param identifier Identifier of the saved search which could be 'id' or 'name'
|
2209
|
+
# @param body Request payload of updating saved search
|
2210
|
+
# @param [Hash] opts the optional parameters
|
2211
|
+
# @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are 'id', or 'name'
|
2212
|
+
# @return [Array<(GetSavedSearchResponse, Fixnum, Hash)>] GetSavedSearchResponse data, response status code and response headers
|
2213
|
+
def update_saved_search_with_http_info(identifier, body, opts = {})
|
2214
|
+
if @api_client.config.debugging
|
2215
|
+
@api_client.config.logger.debug 'Calling API: AlertApi.update_saved_search ...'
|
2216
|
+
end
|
2217
|
+
# verify the required parameter 'identifier' is set
|
2218
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
2219
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.update_saved_search"
|
2220
|
+
end
|
2221
|
+
# verify the required parameter 'body' is set
|
2222
|
+
if @api_client.config.client_side_validation && body.nil?
|
2223
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.update_saved_search"
|
2224
|
+
end
|
2225
|
+
if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'name'].include?(opts[:'identifier_type'])
|
2226
|
+
fail ArgumentError, 'invalid value for "identifier_type", must be one of id, name'
|
2227
|
+
end
|
2228
|
+
# resource path
|
2229
|
+
local_var_path = '/v2/alerts/saved-searches/{identifier}'.sub('{' + 'identifier' + '}', identifier.to_s)
|
2230
|
+
|
2231
|
+
# query parameters
|
2232
|
+
query_params = {}
|
2233
|
+
query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
|
2234
|
+
|
2235
|
+
# header parameters
|
2236
|
+
header_params = {}
|
2237
|
+
# HTTP header 'Accept' (if needed)
|
2238
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2239
|
+
|
2240
|
+
# form parameters
|
2241
|
+
form_params = {}
|
2242
|
+
|
2243
|
+
# http body (model)
|
2244
|
+
post_body = @api_client.object_to_http_body(body)
|
2245
|
+
auth_names = ['GenieKey']
|
2246
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
2247
|
+
:header_params => header_params,
|
2248
|
+
:query_params => query_params,
|
2249
|
+
:form_params => form_params,
|
2250
|
+
:body => post_body,
|
2251
|
+
:auth_names => auth_names,
|
2252
|
+
:return_type => 'GetSavedSearchResponse')
|
2253
|
+
if @api_client.config.debugging
|
2254
|
+
@api_client.config.logger.debug "API called: AlertApi#update_saved_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2255
|
+
end
|
2256
|
+
return data, status_code, headers
|
2257
|
+
end
|
2258
|
+
end
|
2259
|
+
end
|