Package com.datadog.api.client.v1.api
Class SnapshotsApi
java.lang.Object
com.datadog.api.client.v1.api.SnapshotsApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SnapshotsApi
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to getGraphSnapshot. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the API client.getGraphSnapshot(Long start, Long end) Take graph snapshots.getGraphSnapshot(Long start, Long end, SnapshotsApi.GetGraphSnapshotOptionalParameters parameters) Take graph snapshots.getGraphSnapshotAsync(Long start, Long end) Take graph snapshots.getGraphSnapshotAsync(Long start, Long end, SnapshotsApi.GetGraphSnapshotOptionalParameters parameters) Take graph snapshots.getGraphSnapshotWithHttpInfo(Long start, Long end, SnapshotsApi.GetGraphSnapshotOptionalParameters parameters) Take graph snapshots.getGraphSnapshotWithHttpInfoAsync(Long start, Long end, SnapshotsApi.GetGraphSnapshotOptionalParameters parameters) Take graph snapshots.voidsetApiClient(ApiClient apiClient) Set the API client.
-
Constructor Details
-
SnapshotsApi
public SnapshotsApi() -
SnapshotsApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
getGraphSnapshot
Take graph snapshots.- Parameters:
start- The POSIX timestamp of the start of the query in seconds. (required)end- The POSIX timestamp of the end of the query in seconds. (required)- Returns:
- GraphSnapshot
- Throws:
ApiException- if fails to make API call
-
getGraphSnapshotAsync
Take graph snapshots.- Parameters:
start- The POSIX timestamp of the start of the query in seconds. (required)end- The POSIX timestamp of the end of the query in seconds. (required)- Returns:
- CompletableFuture<GraphSnapshot>
-
getGraphSnapshot
public GraphSnapshot getGraphSnapshot(Long start, Long end, SnapshotsApi.GetGraphSnapshotOptionalParameters parameters) throws ApiException Take graph snapshots.- Parameters:
start- The POSIX timestamp of the start of the query in seconds. (required)end- The POSIX timestamp of the end of the query in seconds. (required)parameters- Optional parameters for the request.- Returns:
- GraphSnapshot
- Throws:
ApiException- if fails to make API call
-
getGraphSnapshotAsync
public CompletableFuture<GraphSnapshot> getGraphSnapshotAsync(Long start, Long end, SnapshotsApi.GetGraphSnapshotOptionalParameters parameters) Take graph snapshots.- Parameters:
start- The POSIX timestamp of the start of the query in seconds. (required)end- The POSIX timestamp of the end of the query in seconds. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<GraphSnapshot>
-
getGraphSnapshotWithHttpInfo
public ApiResponse<GraphSnapshot> getGraphSnapshotWithHttpInfo(Long start, Long end, SnapshotsApi.GetGraphSnapshotOptionalParameters parameters) throws ApiException Take graph snapshots. Snapshots are PNG images generated by rendering a specified widget in a web page and capturing it once the data is available. The image is then uploaded to cloud storage.Note: When a snapshot is created, there is some delay before it is available.
- Parameters:
start- The POSIX timestamp of the start of the query in seconds. (required)end- The POSIX timestamp of the end of the query in seconds. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<GraphSnapshot>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 429 Too many requests -
-
getGraphSnapshotWithHttpInfoAsync
public CompletableFuture<ApiResponse<GraphSnapshot>> getGraphSnapshotWithHttpInfoAsync(Long start, Long end, SnapshotsApi.GetGraphSnapshotOptionalParameters parameters) Take graph snapshots.- Parameters:
start- The POSIX timestamp of the start of the query in seconds. (required)end- The POSIX timestamp of the end of the query in seconds. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<GraphSnapshot>>
-