@Generated(value="OracleSDKGenerator", comments="API Version: 20200630") public class OperationsInsightsAsyncClient extends Object implements OperationsInsightsAsync
Async client implementation for OperationsInsights service.
There are two ways to use async client:
InputStream, like
getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else,
because the stream will be closed right after the AsyncHandler is invoked. | Modifier and Type | Class and Description |
|---|---|
static class |
OperationsInsightsAsyncClient.Builder
Builder class for this client.
|
| Modifier and Type | Field and Description |
|---|---|
static Service |
SERVICE
Service instance for OperationsInsights.
|
| Constructor and Description |
|---|
OperationsInsightsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Creates a new service instance using the given authentication provider and client configuration.
|
OperationsInsightsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Creates a new service instance using the given authentication provider and client configuration.
|
OperationsInsightsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Creates a new service instance using the given authentication provider and client configuration.
|
OperationsInsightsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Creates a new service instance using the given authentication provider and client configuration.
|
OperationsInsightsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder)
Creates a new service instance using the given authentication provider and client configuration.
|
OperationsInsightsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Creates a new service instance using the given authentication provider.
|
OperationsInsightsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Creates a new service instance using the given authentication provider and client configuration.
|
OperationsInsightsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Creates a new service instance using the given authentication provider and client configuration.
|
public static final Service SERVICE
Service instance for OperationsInsights.
public OperationsInsightsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Creates a new service instance using the given authentication provider.
authenticationDetailsProvider - The authentication details provider, required.public OperationsInsightsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Creates a new service instance using the given authentication provider and client configuration.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.public OperationsInsightsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.public OperationsInsightsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.public OperationsInsightsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.additionalClientConfigurators - Additional client configurators to be run after the primary configurator.public OperationsInsightsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.additionalClientConfigurators - Additional client configurators to be run after the primary configurator.endpoint - Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider)public OperationsInsightsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.signingStrategyRequestSignerFactories - The request signer factories for each signing strategy used to create the request signeradditionalClientConfigurators - Additional client configurators to be run after the primary configurator.endpoint - Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider)public OperationsInsightsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider - The authentication details provider, required.configuration - The client configuration, optional.clientConfigurator - ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory - The request signer factory used to create the request signer for this service.signingStrategyRequestSignerFactories - The request signer factories for each signing strategy used to create the request signeradditionalClientConfigurators - Additional client configurators to be run after the primary configurator.endpoint - Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider)restClientFactoryBuilder - the builder for the RestClientFactorypublic static OperationsInsightsAsyncClient.Builder builder()
Create a builder for this client.
public void setEndpoint(String endpoint)
OperationsInsightsAsyncSets the endpoint to call (ex, https://www.example.com).
setEndpoint in interface OperationsInsightsAsyncendpoint - The endpoint of the serice.public String getEndpoint()
OperationsInsightsAsyncGets the set endpoint for REST call (ex, https://www.example.com)
getEndpoint in interface OperationsInsightsAsyncpublic void setRegion(Region region)
OperationsInsightsAsyncSets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint after resolving the endpoint. If the service is not available in this region, however, an IllegalArgumentException will be raised.
setRegion in interface OperationsInsightsAsyncregion - The region of the service.public void setRegion(String regionId)
OperationsInsightsAsyncSets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call
setRegion.
If no known Region could be determined, it will create an endpoint based on the
default endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint.
setRegion in interface OperationsInsightsAsyncregionId - The public region ID.public void close()
close in interface AutoCloseablepublic Future<IngestSqlBucketResponse> ingestSqlBucket(IngestSqlBucketRequest request, AsyncHandler<IngestSqlBucketRequest,IngestSqlBucketResponse> handler)
OperationsInsightsAsyncThe sqlbucket endpoint takes in a JSON payload, persists it in Operations Insights ingest pipeline.
ingestSqlBucket in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<IngestSqlPlanLinesResponse> ingestSqlPlanLines(IngestSqlPlanLinesRequest request, AsyncHandler<IngestSqlPlanLinesRequest,IngestSqlPlanLinesResponse> handler)
OperationsInsightsAsyncThe SqlPlanLines endpoint takes in a JSON payload, persists it in Operation Insights ingest pipeline.
ingestSqlPlanLines in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<IngestSqlTextResponse> ingestSqlText(IngestSqlTextRequest request, AsyncHandler<IngestSqlTextRequest,IngestSqlTextResponse> handler)
OperationsInsightsAsyncThe SqlText endpoint takes in a JSON payload, persists it in Operation Insights ingest pipeline. Disclaimer: SQL text being uploaded explicitly via APIs is not masked. Any sensitive literals contained in the sqlFullText column should be masked prior to ingestion.
ingestSqlText in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<ListDatabaseInsightsResponse> listDatabaseInsights(ListDatabaseInsightsRequest request, AsyncHandler<ListDatabaseInsightsRequest,ListDatabaseInsightsResponse> handler)
OperationsInsightsAsyncLists database insight resources
listDatabaseInsights in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<ListSqlPlansResponse> listSqlPlans(ListSqlPlansRequest request, AsyncHandler<ListSqlPlansRequest,ListSqlPlansResponse> handler)
OperationsInsightsAsyncQuery SQL Warehouse to list the plan xml for a given SQL execution plan. This returns a SqlPlanCollection object, but is currently limited to a single plan.
listSqlPlans in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<ListSqlSearchesResponse> listSqlSearches(ListSqlSearchesRequest request, AsyncHandler<ListSqlSearchesRequest,ListSqlSearchesResponse> handler)
OperationsInsightsAsyncSearch SQL by SQL Identifier across databases and get the SQL Text and the details of the databases executing the SQL for a given time period.
listSqlSearches in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<ListSqlTextsResponse> listSqlTexts(ListSqlTextsRequest request, AsyncHandler<ListSqlTextsRequest,ListSqlTextsResponse> handler)
OperationsInsightsAsyncQuery SQL Warehouse to get the full SQL Text for a SQL.
listSqlTexts in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<SummarizeDatabaseInsightResourceCapacityTrendResponse> summarizeDatabaseInsightResourceCapacityTrend(SummarizeDatabaseInsightResourceCapacityTrendRequest request, AsyncHandler<SummarizeDatabaseInsightResourceCapacityTrendRequest,SummarizeDatabaseInsightResourceCapacityTrendResponse> handler)
OperationsInsightsAsyncReturns response with time series data (endTimestamp, capacity, baseCapacity) for the time period specified. The maximum time range for analysis is 2 years, hence this is intentionally not paginated.
summarizeDatabaseInsightResourceCapacityTrend in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<SummarizeDatabaseInsightResourceForecastTrendResponse> summarizeDatabaseInsightResourceForecastTrend(SummarizeDatabaseInsightResourceForecastTrendRequest request, AsyncHandler<SummarizeDatabaseInsightResourceForecastTrendRequest,SummarizeDatabaseInsightResourceForecastTrendResponse> handler)
OperationsInsightsAsyncGet Forecast predictions for CPU and Storage resources since a time in the past.
summarizeDatabaseInsightResourceForecastTrend in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<SummarizeDatabaseInsightResourceStatisticsResponse> summarizeDatabaseInsightResourceStatistics(SummarizeDatabaseInsightResourceStatisticsRequest request, AsyncHandler<SummarizeDatabaseInsightResourceStatisticsRequest,SummarizeDatabaseInsightResourceStatisticsResponse> handler)
OperationsInsightsAsyncLists the Resource statistics (usage,capacity, usage change percent, utilization percent, base capacity, isAutoScalingEnabled) for each database filtered by utilization level
summarizeDatabaseInsightResourceStatistics in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<SummarizeDatabaseInsightResourceUsageResponse> summarizeDatabaseInsightResourceUsage(SummarizeDatabaseInsightResourceUsageRequest request, AsyncHandler<SummarizeDatabaseInsightResourceUsageRequest,SummarizeDatabaseInsightResourceUsageResponse> handler)
OperationsInsightsAsyncA cumulative distribution function is used to rank the usage data points per database within the specified time period. For each database, the minimum data point with a ranking > the percentile value is included in the summation. Linear regression functions are used to calculate the usage change percentage.
summarizeDatabaseInsightResourceUsage in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<SummarizeDatabaseInsightResourceUsageTrendResponse> summarizeDatabaseInsightResourceUsageTrend(SummarizeDatabaseInsightResourceUsageTrendRequest request, AsyncHandler<SummarizeDatabaseInsightResourceUsageTrendRequest,SummarizeDatabaseInsightResourceUsageTrendResponse> handler)
OperationsInsightsAsyncReturns response with time series data (endTimestamp, usage, capacity) for the time period specified. The maximum time range for analysis is 2 years, hence this is intentionally not paginated.
summarizeDatabaseInsightResourceUsageTrend in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<SummarizeDatabaseInsightResourceUtilizationInsightResponse> summarizeDatabaseInsightResourceUtilizationInsight(SummarizeDatabaseInsightResourceUtilizationInsightRequest request, AsyncHandler<SummarizeDatabaseInsightResourceUtilizationInsightRequest,SummarizeDatabaseInsightResourceUtilizationInsightResponse> handler)
OperationsInsightsAsyncGets resources with current utilization (high and low) and projected utilization (high and low) for a resource type over specified time period.
summarizeDatabaseInsightResourceUtilizationInsight in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<SummarizeSqlInsightsResponse> summarizeSqlInsights(SummarizeSqlInsightsRequest request, AsyncHandler<SummarizeSqlInsightsRequest,SummarizeSqlInsightsResponse> handler)
OperationsInsightsAsyncQuery SQL Warehouse to get the performance insights for SQLs taking greater than X% database time for a given time period across the given databases or database types.
summarizeSqlInsights in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<SummarizeSqlPlanInsightsResponse> summarizeSqlPlanInsights(SummarizeSqlPlanInsightsRequest request, AsyncHandler<SummarizeSqlPlanInsightsRequest,SummarizeSqlPlanInsightsResponse> handler)
OperationsInsightsAsyncQuery SQL Warehouse to get the performance insights on the execution plans for a given SQL for a given time period.
summarizeSqlPlanInsights in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<SummarizeSqlResponseTimeDistributionsResponse> summarizeSqlResponseTimeDistributions(SummarizeSqlResponseTimeDistributionsRequest request, AsyncHandler<SummarizeSqlResponseTimeDistributionsRequest,SummarizeSqlResponseTimeDistributionsResponse> handler)
OperationsInsightsAsyncQuery SQL Warehouse to summarize the response time distribution of query executions for a given SQL for a given time period.
summarizeSqlResponseTimeDistributions in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<SummarizeSqlStatisticsResponse> summarizeSqlStatistics(SummarizeSqlStatisticsRequest request, AsyncHandler<SummarizeSqlStatisticsRequest,SummarizeSqlStatisticsResponse> handler)
OperationsInsightsAsyncQuery SQL Warehouse to get the performance statistics for SQLs taking greater than X% database time for a given time period across the given databases or database types.
summarizeSqlStatistics in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<SummarizeSqlStatisticsTimeSeriesResponse> summarizeSqlStatisticsTimeSeries(SummarizeSqlStatisticsTimeSeriesRequest request, AsyncHandler<SummarizeSqlStatisticsTimeSeriesRequest,SummarizeSqlStatisticsTimeSeriesResponse> handler)
OperationsInsightsAsyncQuery SQL Warehouse to get the performance statistics time series for a given SQL across given databases for a given time period.
summarizeSqlStatisticsTimeSeries in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.public Future<SummarizeSqlStatisticsTimeSeriesByPlanResponse> summarizeSqlStatisticsTimeSeriesByPlan(SummarizeSqlStatisticsTimeSeriesByPlanRequest request, AsyncHandler<SummarizeSqlStatisticsTimeSeriesByPlanRequest,SummarizeSqlStatisticsTimeSeriesByPlanResponse> handler)
OperationsInsightsAsyncQuery SQL Warehouse to get the performance statistics time series for a given SQL by execution plans for a given time period.
summarizeSqlStatisticsTimeSeriesByPlan in interface OperationsInsightsAsyncrequest - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Copyright © 2016–2021. All rights reserved.