@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class OnCallApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OnCallApi.CreateOnCallEscalationPolicyOptionalParameters
Manage optional parameters to createOnCallEscalationPolicy.
|
static class |
OnCallApi.CreateOnCallScheduleOptionalParameters
Manage optional parameters to createOnCallSchedule.
|
static class |
OnCallApi.GetOnCallEscalationPolicyOptionalParameters
Manage optional parameters to getOnCallEscalationPolicy.
|
static class |
OnCallApi.GetOnCallScheduleOptionalParameters
Manage optional parameters to getOnCallSchedule.
|
static class |
OnCallApi.GetOnCallTeamRoutingRulesOptionalParameters
Manage optional parameters to getOnCallTeamRoutingRules.
|
static class |
OnCallApi.GetScheduleOnCallUserOptionalParameters
Manage optional parameters to getScheduleOnCallUser.
|
static class |
OnCallApi.GetTeamOnCallUsersOptionalParameters
Manage optional parameters to getTeamOnCallUsers.
|
static class |
OnCallApi.SetOnCallTeamRoutingRulesOptionalParameters
Manage optional parameters to setOnCallTeamRoutingRules.
|
static class |
OnCallApi.UpdateOnCallEscalationPolicyOptionalParameters
Manage optional parameters to updateOnCallEscalationPolicy.
|
static class |
OnCallApi.UpdateOnCallScheduleOptionalParameters
Manage optional parameters to updateOnCallSchedule.
|
| Constructor and Description |
|---|
OnCallApi() |
OnCallApi(ApiClient apiClient) |
public OnCallApi()
public OnCallApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic EscalationPolicy createOnCallEscalationPolicy(EscalationPolicyCreateRequest body) throws ApiException
body - (required)ApiException - if fails to make API callpublic CompletableFuture<EscalationPolicy> createOnCallEscalationPolicyAsync(EscalationPolicyCreateRequest body)
body - (required)public EscalationPolicy createOnCallEscalationPolicy(EscalationPolicyCreateRequest body, OnCallApi.CreateOnCallEscalationPolicyOptionalParameters parameters) throws ApiException
body - (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<EscalationPolicy> createOnCallEscalationPolicyAsync(EscalationPolicyCreateRequest body, OnCallApi.CreateOnCallEscalationPolicyOptionalParameters parameters)
body - (required)parameters - Optional parameters for the request.public ApiResponse<EscalationPolicy> createOnCallEscalationPolicyWithHttpInfo(EscalationPolicyCreateRequest body, OnCallApi.CreateOnCallEscalationPolicyOptionalParameters parameters) throws ApiException
body - (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<EscalationPolicy>> createOnCallEscalationPolicyWithHttpInfoAsync(EscalationPolicyCreateRequest body, OnCallApi.CreateOnCallEscalationPolicyOptionalParameters parameters)
body - (required)parameters - Optional parameters for the request.public Schedule createOnCallSchedule(ScheduleCreateRequest body) throws ApiException
body - (required)ApiException - if fails to make API callpublic CompletableFuture<Schedule> createOnCallScheduleAsync(ScheduleCreateRequest body)
body - (required)public Schedule createOnCallSchedule(ScheduleCreateRequest body, OnCallApi.CreateOnCallScheduleOptionalParameters parameters) throws ApiException
body - (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<Schedule> createOnCallScheduleAsync(ScheduleCreateRequest body, OnCallApi.CreateOnCallScheduleOptionalParameters parameters)
body - (required)parameters - Optional parameters for the request.public ApiResponse<Schedule> createOnCallScheduleWithHttpInfo(ScheduleCreateRequest body, OnCallApi.CreateOnCallScheduleOptionalParameters parameters) throws ApiException
body - (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Schedule>> createOnCallScheduleWithHttpInfoAsync(ScheduleCreateRequest body, OnCallApi.CreateOnCallScheduleOptionalParameters parameters)
body - (required)parameters - Optional parameters for the request.public void deleteOnCallEscalationPolicy(String policyId) throws ApiException
See deleteOnCallEscalationPolicyWithHttpInfo(java.lang.String).
policyId - The ID of the escalation policy (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteOnCallEscalationPolicyAsync(String policyId)
See deleteOnCallEscalationPolicyWithHttpInfoAsync(java.lang.String).
policyId - The ID of the escalation policy (required)public ApiResponse<Void> deleteOnCallEscalationPolicyWithHttpInfo(String policyId) throws ApiException
policyId - The ID of the escalation policy (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteOnCallEscalationPolicyWithHttpInfoAsync(String policyId)
See deleteOnCallEscalationPolicyWithHttpInfo(java.lang.String).
policyId - The ID of the escalation policy (required)public void deleteOnCallSchedule(String scheduleId) throws ApiException
scheduleId - The ID of the schedule (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteOnCallScheduleAsync(String scheduleId)
See deleteOnCallScheduleWithHttpInfoAsync(java.lang.String).
scheduleId - The ID of the schedule (required)public ApiResponse<Void> deleteOnCallScheduleWithHttpInfo(String scheduleId) throws ApiException
scheduleId - The ID of the schedule (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteOnCallScheduleWithHttpInfoAsync(String scheduleId)
scheduleId - The ID of the schedule (required)public EscalationPolicy getOnCallEscalationPolicy(String policyId) throws ApiException
policyId - The ID of the escalation policy (required)ApiException - if fails to make API callpublic CompletableFuture<EscalationPolicy> getOnCallEscalationPolicyAsync(String policyId)
policyId - The ID of the escalation policy (required)public EscalationPolicy getOnCallEscalationPolicy(String policyId, OnCallApi.GetOnCallEscalationPolicyOptionalParameters parameters) throws ApiException
policyId - The ID of the escalation policy (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<EscalationPolicy> getOnCallEscalationPolicyAsync(String policyId, OnCallApi.GetOnCallEscalationPolicyOptionalParameters parameters)
policyId - The ID of the escalation policy (required)parameters - Optional parameters for the request.public ApiResponse<EscalationPolicy> getOnCallEscalationPolicyWithHttpInfo(String policyId, OnCallApi.GetOnCallEscalationPolicyOptionalParameters parameters) throws ApiException
policyId - The ID of the escalation policy (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<EscalationPolicy>> getOnCallEscalationPolicyWithHttpInfoAsync(String policyId, OnCallApi.GetOnCallEscalationPolicyOptionalParameters parameters)
policyId - The ID of the escalation policy (required)parameters - Optional parameters for the request.public Schedule getOnCallSchedule(String scheduleId) throws ApiException
scheduleId - The ID of the schedule (required)ApiException - if fails to make API callpublic CompletableFuture<Schedule> getOnCallScheduleAsync(String scheduleId)
scheduleId - The ID of the schedule (required)public Schedule getOnCallSchedule(String scheduleId, OnCallApi.GetOnCallScheduleOptionalParameters parameters) throws ApiException
scheduleId - The ID of the schedule (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<Schedule> getOnCallScheduleAsync(String scheduleId, OnCallApi.GetOnCallScheduleOptionalParameters parameters)
scheduleId - The ID of the schedule (required)parameters - Optional parameters for the request.public ApiResponse<Schedule> getOnCallScheduleWithHttpInfo(String scheduleId, OnCallApi.GetOnCallScheduleOptionalParameters parameters) throws ApiException
scheduleId - The ID of the schedule (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Schedule>> getOnCallScheduleWithHttpInfoAsync(String scheduleId, OnCallApi.GetOnCallScheduleOptionalParameters parameters)
scheduleId - The ID of the schedule (required)parameters - Optional parameters for the request.public TeamRoutingRules getOnCallTeamRoutingRules(String teamId) throws ApiException
teamId - The team ID (required)ApiException - if fails to make API callpublic CompletableFuture<TeamRoutingRules> getOnCallTeamRoutingRulesAsync(String teamId)
teamId - The team ID (required)public TeamRoutingRules getOnCallTeamRoutingRules(String teamId, OnCallApi.GetOnCallTeamRoutingRulesOptionalParameters parameters) throws ApiException
teamId - The team ID (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<TeamRoutingRules> getOnCallTeamRoutingRulesAsync(String teamId, OnCallApi.GetOnCallTeamRoutingRulesOptionalParameters parameters)
teamId - The team ID (required)parameters - Optional parameters for the request.public ApiResponse<TeamRoutingRules> getOnCallTeamRoutingRulesWithHttpInfo(String teamId, OnCallApi.GetOnCallTeamRoutingRulesOptionalParameters parameters) throws ApiException
teamId - The team ID (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TeamRoutingRules>> getOnCallTeamRoutingRulesWithHttpInfoAsync(String teamId, OnCallApi.GetOnCallTeamRoutingRulesOptionalParameters parameters)
teamId - The team ID (required)parameters - Optional parameters for the request.public Shift getScheduleOnCallUser(String scheduleId) throws ApiException
scheduleId - The ID of the schedule. (required)ApiException - if fails to make API callpublic CompletableFuture<Shift> getScheduleOnCallUserAsync(String scheduleId)
scheduleId - The ID of the schedule. (required)public Shift getScheduleOnCallUser(String scheduleId, OnCallApi.GetScheduleOnCallUserOptionalParameters parameters) throws ApiException
scheduleId - The ID of the schedule. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<Shift> getScheduleOnCallUserAsync(String scheduleId, OnCallApi.GetScheduleOnCallUserOptionalParameters parameters)
scheduleId - The ID of the schedule. (required)parameters - Optional parameters for the request.public ApiResponse<Shift> getScheduleOnCallUserWithHttpInfo(String scheduleId, OnCallApi.GetScheduleOnCallUserOptionalParameters parameters) throws ApiException
scheduleId - The ID of the schedule. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Shift>> getScheduleOnCallUserWithHttpInfoAsync(String scheduleId, OnCallApi.GetScheduleOnCallUserOptionalParameters parameters)
scheduleId - The ID of the schedule. (required)parameters - Optional parameters for the request.public TeamOnCallResponders getTeamOnCallUsers(String teamId) throws ApiException
teamId - The team ID (required)ApiException - if fails to make API callpublic CompletableFuture<TeamOnCallResponders> getTeamOnCallUsersAsync(String teamId)
teamId - The team ID (required)public TeamOnCallResponders getTeamOnCallUsers(String teamId, OnCallApi.GetTeamOnCallUsersOptionalParameters parameters) throws ApiException
teamId - The team ID (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<TeamOnCallResponders> getTeamOnCallUsersAsync(String teamId, OnCallApi.GetTeamOnCallUsersOptionalParameters parameters)
teamId - The team ID (required)parameters - Optional parameters for the request.public ApiResponse<TeamOnCallResponders> getTeamOnCallUsersWithHttpInfo(String teamId, OnCallApi.GetTeamOnCallUsersOptionalParameters parameters) throws ApiException
teamId - The team ID (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TeamOnCallResponders>> getTeamOnCallUsersWithHttpInfoAsync(String teamId, OnCallApi.GetTeamOnCallUsersOptionalParameters parameters)
teamId - The team ID (required)parameters - Optional parameters for the request.public TeamRoutingRules setOnCallTeamRoutingRules(String teamId, TeamRoutingRulesRequest body) throws ApiException
teamId - The team ID (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<TeamRoutingRules> setOnCallTeamRoutingRulesAsync(String teamId, TeamRoutingRulesRequest body)
teamId - The team ID (required)body - (required)public TeamRoutingRules setOnCallTeamRoutingRules(String teamId, TeamRoutingRulesRequest body, OnCallApi.SetOnCallTeamRoutingRulesOptionalParameters parameters) throws ApiException
teamId - The team ID (required)body - (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<TeamRoutingRules> setOnCallTeamRoutingRulesAsync(String teamId, TeamRoutingRulesRequest body, OnCallApi.SetOnCallTeamRoutingRulesOptionalParameters parameters)
teamId - The team ID (required)body - (required)parameters - Optional parameters for the request.public ApiResponse<TeamRoutingRules> setOnCallTeamRoutingRulesWithHttpInfo(String teamId, TeamRoutingRulesRequest body, OnCallApi.SetOnCallTeamRoutingRulesOptionalParameters parameters) throws ApiException
teamId - The team ID (required)body - (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TeamRoutingRules>> setOnCallTeamRoutingRulesWithHttpInfoAsync(String teamId, TeamRoutingRulesRequest body, OnCallApi.SetOnCallTeamRoutingRulesOptionalParameters parameters)
teamId - The team ID (required)body - (required)parameters - Optional parameters for the request.public EscalationPolicy updateOnCallEscalationPolicy(String policyId, EscalationPolicyUpdateRequest body) throws ApiException
policyId - The ID of the escalation policy (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<EscalationPolicy> updateOnCallEscalationPolicyAsync(String policyId, EscalationPolicyUpdateRequest body)
policyId - The ID of the escalation policy (required)body - (required)public EscalationPolicy updateOnCallEscalationPolicy(String policyId, EscalationPolicyUpdateRequest body, OnCallApi.UpdateOnCallEscalationPolicyOptionalParameters parameters) throws ApiException
policyId - The ID of the escalation policy (required)body - (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<EscalationPolicy> updateOnCallEscalationPolicyAsync(String policyId, EscalationPolicyUpdateRequest body, OnCallApi.UpdateOnCallEscalationPolicyOptionalParameters parameters)
policyId - The ID of the escalation policy (required)body - (required)parameters - Optional parameters for the request.public ApiResponse<EscalationPolicy> updateOnCallEscalationPolicyWithHttpInfo(String policyId, EscalationPolicyUpdateRequest body, OnCallApi.UpdateOnCallEscalationPolicyOptionalParameters parameters) throws ApiException
policyId - The ID of the escalation policy (required)body - (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<EscalationPolicy>> updateOnCallEscalationPolicyWithHttpInfoAsync(String policyId, EscalationPolicyUpdateRequest body, OnCallApi.UpdateOnCallEscalationPolicyOptionalParameters parameters)
policyId - The ID of the escalation policy (required)body - (required)parameters - Optional parameters for the request.public Schedule updateOnCallSchedule(String scheduleId, ScheduleUpdateRequest body) throws ApiException
scheduleId - The ID of the schedule (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<Schedule> updateOnCallScheduleAsync(String scheduleId, ScheduleUpdateRequest body)
scheduleId - The ID of the schedule (required)body - (required)public Schedule updateOnCallSchedule(String scheduleId, ScheduleUpdateRequest body, OnCallApi.UpdateOnCallScheduleOptionalParameters parameters) throws ApiException
scheduleId - The ID of the schedule (required)body - (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<Schedule> updateOnCallScheduleAsync(String scheduleId, ScheduleUpdateRequest body, OnCallApi.UpdateOnCallScheduleOptionalParameters parameters)
scheduleId - The ID of the schedule (required)body - (required)parameters - Optional parameters for the request.public ApiResponse<Schedule> updateOnCallScheduleWithHttpInfo(String scheduleId, ScheduleUpdateRequest body, OnCallApi.UpdateOnCallScheduleOptionalParameters parameters) throws ApiException
scheduleId - The ID of the schedule (required)body - (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Schedule>> updateOnCallScheduleWithHttpInfoAsync(String scheduleId, ScheduleUpdateRequest body, OnCallApi.UpdateOnCallScheduleOptionalParameters parameters)
scheduleId - The ID of the schedule (required)body - (required)parameters - Optional parameters for the request.Copyright © 2025. All rights reserved.