@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class NotebooksApi extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NotebooksApi.ListNotebooksOptionalParameters
Manage optional parameters to listNotebooks.
|
Constructor and Description |
---|
NotebooksApi() |
NotebooksApi(ApiClient apiClient) |
public NotebooksApi()
public NotebooksApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient
- an instance of API clientpublic NotebookResponse createNotebook(NotebookCreateRequest body) throws ApiException
See createNotebookWithHttpInfo(com.datadog.api.v1.client.model.NotebookCreateRequest)
.
body
- The JSON description of the notebook you want to create. (required)ApiException
- if fails to make API callpublic CompletableFuture<NotebookResponse> createNotebookAsync(NotebookCreateRequest body)
See createNotebookWithHttpInfoAsync(com.datadog.api.v1.client.model.NotebookCreateRequest)
.
body
- The JSON description of the notebook you want to create. (required)public ApiResponse<NotebookResponse> createNotebookWithHttpInfo(NotebookCreateRequest body) throws ApiException
Create a notebook using the specified options.
body
- The JSON description of the notebook you want to create. (required)ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
400 | Bad Request | - |
403 | Authentication Error | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<NotebookResponse>> createNotebookWithHttpInfoAsync(NotebookCreateRequest body)
See createNotebookWithHttpInfo(com.datadog.api.v1.client.model.NotebookCreateRequest)
.
body
- The JSON description of the notebook you want to create. (required)public void deleteNotebook(Long notebookId) throws ApiException
notebookId
- Unique ID, assigned when you create the notebook. (required)ApiException
- if fails to make API callpublic CompletableFuture<Void> deleteNotebookAsync(Long notebookId)
notebookId
- Unique ID, assigned when you create the notebook. (required)public ApiResponse<Void> deleteNotebookWithHttpInfo(Long notebookId) throws ApiException
Delete a notebook using the specified ID.
notebookId
- Unique ID, assigned when you create the notebook. (required)ApiException
- if fails to make API callStatus Code | Description | Response Headers |
204 | OK | - |
400 | Bad Request | - |
403 | Authentication Error | - |
404 | Not Found | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteNotebookWithHttpInfoAsync(Long notebookId)
notebookId
- Unique ID, assigned when you create the notebook. (required)public NotebookResponse getNotebook(Long notebookId) throws ApiException
notebookId
- Unique ID, assigned when you create the notebook. (required)ApiException
- if fails to make API callpublic CompletableFuture<NotebookResponse> getNotebookAsync(Long notebookId)
notebookId
- Unique ID, assigned when you create the notebook. (required)public ApiResponse<NotebookResponse> getNotebookWithHttpInfo(Long notebookId) throws ApiException
Get a notebook using the specified notebook ID.
notebookId
- Unique ID, assigned when you create the notebook. (required)ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
400 | Bad Request | - |
403 | Authentication Error | - |
404 | Not Found | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<NotebookResponse>> getNotebookWithHttpInfoAsync(Long notebookId)
notebookId
- Unique ID, assigned when you create the notebook. (required)public NotebooksResponse listNotebooks() throws ApiException
ApiException
- if fails to make API callpublic CompletableFuture<NotebooksResponse> listNotebooksAsync()
public NotebooksResponse listNotebooks(NotebooksApi.ListNotebooksOptionalParameters parameters) throws ApiException
parameters
- Optional parameters for the request.ApiException
- if fails to make API callpublic CompletableFuture<NotebooksResponse> listNotebooksAsync(NotebooksApi.ListNotebooksOptionalParameters parameters)
parameters
- Optional parameters for the request.public ApiResponse<NotebooksResponse> listNotebooksWithHttpInfo(NotebooksApi.ListNotebooksOptionalParameters parameters) throws ApiException
Get all notebooks. This can also be used to search for notebooks with a particular `query` in the notebook `name` or author `handle`.
parameters
- Optional parameters for the request.ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
400 | Bad Request | - |
403 | Authentication Error | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<NotebooksResponse>> listNotebooksWithHttpInfoAsync(NotebooksApi.ListNotebooksOptionalParameters parameters)
parameters
- Optional parameters for the request.public NotebookResponse updateNotebook(Long notebookId, NotebookUpdateRequest body) throws ApiException
See updateNotebookWithHttpInfo(java.lang.Long, com.datadog.api.v1.client.model.NotebookUpdateRequest)
.
notebookId
- Unique ID, assigned when you create the notebook. (required)body
- Update notebook request body. (required)ApiException
- if fails to make API callpublic CompletableFuture<NotebookResponse> updateNotebookAsync(Long notebookId, NotebookUpdateRequest body)
notebookId
- Unique ID, assigned when you create the notebook. (required)body
- Update notebook request body. (required)public ApiResponse<NotebookResponse> updateNotebookWithHttpInfo(Long notebookId, NotebookUpdateRequest body) throws ApiException
Update a notebook using the specified ID.
notebookId
- Unique ID, assigned when you create the notebook. (required)body
- Update notebook request body. (required)ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
400 | Bad Request | - |
403 | Authentication Error | - |
404 | Not Found | - |
409 | Conflict | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<NotebookResponse>> updateNotebookWithHttpInfoAsync(Long notebookId, NotebookUpdateRequest body)
See updateNotebookWithHttpInfo(java.lang.Long, com.datadog.api.v1.client.model.NotebookUpdateRequest)
.
notebookId
- Unique ID, assigned when you create the notebook. (required)body
- Update notebook request body. (required)Copyright © 2022. All rights reserved.