Package com.datadog.api.client.v1.api
Class NotebooksApi
java.lang.Object
com.datadog.api.client.v1.api.NotebooksApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class NotebooksApi
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to listNotebooks. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a notebook.Create a notebook.Create a notebook using the specified options.Create a notebook.voiddeleteNotebook(Long notebookId) Delete a notebook.deleteNotebookAsync(Long notebookId) Delete a notebook.deleteNotebookWithHttpInfo(Long notebookId) Delete a notebook using the specified ID.deleteNotebookWithHttpInfoAsync(Long notebookId) Delete a notebook.Get the API client.getNotebook(Long notebookId) Get a notebook.getNotebookAsync(Long notebookId) Get a notebook.getNotebookWithHttpInfo(Long notebookId) Get a notebook using the specified notebook ID.getNotebookWithHttpInfoAsync(Long notebookId) Get a notebook.Get all notebooks.Get all notebooks.Get all notebooks.Get all notebooks.Get all notebooks.Get all notebooks.Get all notebooks.Get all notebooks.voidsetApiClient(ApiClient apiClient) Set the API client.updateNotebook(Long notebookId, NotebookUpdateRequest body) Update a notebook.updateNotebookAsync(Long notebookId, NotebookUpdateRequest body) Update a notebook.updateNotebookWithHttpInfo(Long notebookId, NotebookUpdateRequest body) Update a notebook using the specified ID.updateNotebookWithHttpInfoAsync(Long notebookId, NotebookUpdateRequest body) Update a notebook.
-
Constructor Details
-
NotebooksApi
public NotebooksApi() -
NotebooksApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createNotebook
Create a notebook.See
createNotebookWithHttpInfo(com.datadog.api.client.v1.model.NotebookCreateRequest).- Parameters:
body- The JSON description of the notebook you want to create. (required)- Returns:
- NotebookResponse
- Throws:
ApiException- if fails to make API call
-
createNotebookAsync
Create a notebook.See
createNotebookWithHttpInfoAsync(com.datadog.api.client.v1.model.NotebookCreateRequest).- Parameters:
body- The JSON description of the notebook you want to create. (required)- Returns:
- CompletableFuture<NotebookResponse>
-
createNotebookWithHttpInfo
public ApiResponse<NotebookResponse> createNotebookWithHttpInfo(NotebookCreateRequest body) throws ApiException Create a notebook using the specified options.- Parameters:
body- The JSON description of the notebook you want to create. (required)- Returns:
- ApiResponse<NotebookResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Authentication Error - 429 Too many requests -
-
createNotebookWithHttpInfoAsync
public CompletableFuture<ApiResponse<NotebookResponse>> createNotebookWithHttpInfoAsync(NotebookCreateRequest body) Create a notebook.See
createNotebookWithHttpInfo(com.datadog.api.client.v1.model.NotebookCreateRequest).- Parameters:
body- The JSON description of the notebook you want to create. (required)- Returns:
- CompletableFuture<ApiResponse<NotebookResponse>>
-
deleteNotebook
Delete a notebook.- Parameters:
notebookId- Unique ID, assigned when you create the notebook. (required)- Throws:
ApiException- if fails to make API call
-
deleteNotebookAsync
Delete a notebook.- Parameters:
notebookId- Unique ID, assigned when you create the notebook. (required)- Returns:
- CompletableFuture
-
deleteNotebookWithHttpInfo
Delete a notebook using the specified ID.- Parameters:
notebookId- Unique ID, assigned when you create the notebook. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 OK - 400 Bad Request - 403 Authentication Error - 404 Not Found - 429 Too many requests -
-
deleteNotebookWithHttpInfoAsync
Delete a notebook.- Parameters:
notebookId- Unique ID, assigned when you create the notebook. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getNotebook
Get a notebook.- Parameters:
notebookId- Unique ID, assigned when you create the notebook. (required)- Returns:
- NotebookResponse
- Throws:
ApiException- if fails to make API call
-
getNotebookAsync
Get a notebook.- Parameters:
notebookId- Unique ID, assigned when you create the notebook. (required)- Returns:
- CompletableFuture<NotebookResponse>
-
getNotebookWithHttpInfo
Get a notebook using the specified notebook ID.- Parameters:
notebookId- Unique ID, assigned when you create the notebook. (required)- Returns:
- ApiResponse<NotebookResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Authentication Error - 404 Not Found - 429 Too many requests -
-
getNotebookWithHttpInfoAsync
public CompletableFuture<ApiResponse<NotebookResponse>> getNotebookWithHttpInfoAsync(Long notebookId) Get a notebook.- Parameters:
notebookId- Unique ID, assigned when you create the notebook. (required)- Returns:
- CompletableFuture<ApiResponse<NotebookResponse>>
-
listNotebooks
Get all notebooks.- Returns:
- NotebooksResponse
- Throws:
ApiException- if fails to make API call
-
listNotebooksAsync
Get all notebooks.- Returns:
- CompletableFuture<NotebooksResponse>
-
listNotebooks
public NotebooksResponse listNotebooks(NotebooksApi.ListNotebooksOptionalParameters parameters) throws ApiException Get all notebooks.- Parameters:
parameters- Optional parameters for the request.- Returns:
- NotebooksResponse
- Throws:
ApiException- if fails to make API call
-
listNotebooksAsync
public CompletableFuture<NotebooksResponse> listNotebooksAsync(NotebooksApi.ListNotebooksOptionalParameters parameters) Get all notebooks.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<NotebooksResponse>
-
listNotebooksWithPagination
Get all notebooks.- Returns:
- PaginationIterable<NotebooksResponseData>
-
listNotebooksWithPagination
public PaginationIterable<NotebooksResponseData> listNotebooksWithPagination(NotebooksApi.ListNotebooksOptionalParameters parameters) Get all notebooks.- Returns:
- NotebooksResponse
-
listNotebooksWithHttpInfo
public ApiResponse<NotebooksResponse> listNotebooksWithHttpInfo(NotebooksApi.ListNotebooksOptionalParameters parameters) throws ApiException Get all notebooks. This can also be used to search for notebooks with a particularqueryin the notebooknameor authorhandle.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<NotebooksResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Authentication Error - 429 Too many requests -
-
listNotebooksWithHttpInfoAsync
public CompletableFuture<ApiResponse<NotebooksResponse>> listNotebooksWithHttpInfoAsync(NotebooksApi.ListNotebooksOptionalParameters parameters) Get all notebooks.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<NotebooksResponse>>
-
updateNotebook
public NotebookResponse updateNotebook(Long notebookId, NotebookUpdateRequest body) throws ApiException Update a notebook.See
updateNotebookWithHttpInfo(java.lang.Long, com.datadog.api.client.v1.model.NotebookUpdateRequest).- Parameters:
notebookId- Unique ID, assigned when you create the notebook. (required)body- Update notebook request body. (required)- Returns:
- NotebookResponse
- Throws:
ApiException- if fails to make API call
-
updateNotebookAsync
public CompletableFuture<NotebookResponse> updateNotebookAsync(Long notebookId, NotebookUpdateRequest body) Update a notebook.- Parameters:
notebookId- Unique ID, assigned when you create the notebook. (required)body- Update notebook request body. (required)- Returns:
- CompletableFuture<NotebookResponse>
-
updateNotebookWithHttpInfo
public ApiResponse<NotebookResponse> updateNotebookWithHttpInfo(Long notebookId, NotebookUpdateRequest body) throws ApiException Update a notebook using the specified ID.- Parameters:
notebookId- Unique ID, assigned when you create the notebook. (required)body- Update notebook request body. (required)- Returns:
- ApiResponse<NotebookResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Authentication Error - 404 Not Found - 409 Conflict - 429 Too many requests -
-
updateNotebookWithHttpInfoAsync
public CompletableFuture<ApiResponse<NotebookResponse>> updateNotebookWithHttpInfoAsync(Long notebookId, NotebookUpdateRequest body) Update a notebook.See
updateNotebookWithHttpInfo(java.lang.Long, com.datadog.api.client.v1.model.NotebookUpdateRequest).- Parameters:
notebookId- Unique ID, assigned when you create the notebook. (required)body- Update notebook request body. (required)- Returns:
- CompletableFuture<ApiResponse<NotebookResponse>>
-