@Generated(value="OracleSDKGenerator", comments="API Version: 20200630") public interface OperationsInsightsAsync extends AutoCloseable
Use the Operations Insights API to perform data extraction operations to obtain database resource utilization, performance statistics, and reference information. For more information, see About Oracle Cloud Infrastructure Operations Insights.
closevoid setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint - The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
Sets 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.
region - The region of the service.void setRegion(String regionId)
Sets 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.
regionId - The public region ID.Future<IngestSqlBucketResponse> ingestSqlBucket(IngestSqlBucketRequest request, AsyncHandler<IngestSqlBucketRequest,IngestSqlBucketResponse> handler)
The sqlbucket endpoint takes in a JSON payload, persists it in Operations Insights ingest pipeline.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<IngestSqlPlanLinesResponse> ingestSqlPlanLines(IngestSqlPlanLinesRequest request, AsyncHandler<IngestSqlPlanLinesRequest,IngestSqlPlanLinesResponse> handler)
The SqlPlanLines endpoint takes in a JSON payload, persists it in Operation Insights ingest pipeline.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<IngestSqlTextResponse> ingestSqlText(IngestSqlTextRequest request, AsyncHandler<IngestSqlTextRequest,IngestSqlTextResponse> handler)
The 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.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListDatabaseInsightsResponse> listDatabaseInsights(ListDatabaseInsightsRequest request, AsyncHandler<ListDatabaseInsightsRequest,ListDatabaseInsightsResponse> handler)
Lists database insight resources
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListSqlPlansResponse> listSqlPlans(ListSqlPlansRequest request, AsyncHandler<ListSqlPlansRequest,ListSqlPlansResponse> handler)
Query 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.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListSqlSearchesResponse> listSqlSearches(ListSqlSearchesRequest request, AsyncHandler<ListSqlSearchesRequest,ListSqlSearchesResponse> handler)
Search 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.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListSqlTextsResponse> listSqlTexts(ListSqlTextsRequest request, AsyncHandler<ListSqlTextsRequest,ListSqlTextsResponse> handler)
Query SQL Warehouse to get the full SQL Text for a SQL.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<SummarizeDatabaseInsightResourceCapacityTrendResponse> summarizeDatabaseInsightResourceCapacityTrend(SummarizeDatabaseInsightResourceCapacityTrendRequest request, AsyncHandler<SummarizeDatabaseInsightResourceCapacityTrendRequest,SummarizeDatabaseInsightResourceCapacityTrendResponse> handler)
Returns 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.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<SummarizeDatabaseInsightResourceForecastTrendResponse> summarizeDatabaseInsightResourceForecastTrend(SummarizeDatabaseInsightResourceForecastTrendRequest request, AsyncHandler<SummarizeDatabaseInsightResourceForecastTrendRequest,SummarizeDatabaseInsightResourceForecastTrendResponse> handler)
Get Forecast predictions for CPU and Storage resources since a time in the past.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<SummarizeDatabaseInsightResourceStatisticsResponse> summarizeDatabaseInsightResourceStatistics(SummarizeDatabaseInsightResourceStatisticsRequest request, AsyncHandler<SummarizeDatabaseInsightResourceStatisticsRequest,SummarizeDatabaseInsightResourceStatisticsResponse> handler)
Lists the Resource statistics (usage,capacity, usage change percent, utilization percent, base capacity, isAutoScalingEnabled) for each database filtered by utilization level
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<SummarizeDatabaseInsightResourceUsageResponse> summarizeDatabaseInsightResourceUsage(SummarizeDatabaseInsightResourceUsageRequest request, AsyncHandler<SummarizeDatabaseInsightResourceUsageRequest,SummarizeDatabaseInsightResourceUsageResponse> handler)
A 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.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<SummarizeDatabaseInsightResourceUsageTrendResponse> summarizeDatabaseInsightResourceUsageTrend(SummarizeDatabaseInsightResourceUsageTrendRequest request, AsyncHandler<SummarizeDatabaseInsightResourceUsageTrendRequest,SummarizeDatabaseInsightResourceUsageTrendResponse> handler)
Returns 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.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<SummarizeDatabaseInsightResourceUtilizationInsightResponse> summarizeDatabaseInsightResourceUtilizationInsight(SummarizeDatabaseInsightResourceUtilizationInsightRequest request, AsyncHandler<SummarizeDatabaseInsightResourceUtilizationInsightRequest,SummarizeDatabaseInsightResourceUtilizationInsightResponse> handler)
Gets resources with current utilization (high and low) and projected utilization (high and low) for a resource type over specified time period.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<SummarizeSqlInsightsResponse> summarizeSqlInsights(SummarizeSqlInsightsRequest request, AsyncHandler<SummarizeSqlInsightsRequest,SummarizeSqlInsightsResponse> handler)
Query 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.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<SummarizeSqlPlanInsightsResponse> summarizeSqlPlanInsights(SummarizeSqlPlanInsightsRequest request, AsyncHandler<SummarizeSqlPlanInsightsRequest,SummarizeSqlPlanInsightsResponse> handler)
Query SQL Warehouse to get the performance insights on the execution plans for a given SQL for a given time period.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<SummarizeSqlResponseTimeDistributionsResponse> summarizeSqlResponseTimeDistributions(SummarizeSqlResponseTimeDistributionsRequest request, AsyncHandler<SummarizeSqlResponseTimeDistributionsRequest,SummarizeSqlResponseTimeDistributionsResponse> handler)
Query SQL Warehouse to summarize the response time distribution of query executions for a given SQL for a given time period.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<SummarizeSqlStatisticsResponse> summarizeSqlStatistics(SummarizeSqlStatisticsRequest request, AsyncHandler<SummarizeSqlStatisticsRequest,SummarizeSqlStatisticsResponse> handler)
Query 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.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<SummarizeSqlStatisticsTimeSeriesResponse> summarizeSqlStatisticsTimeSeries(SummarizeSqlStatisticsTimeSeriesRequest request, AsyncHandler<SummarizeSqlStatisticsTimeSeriesRequest,SummarizeSqlStatisticsTimeSeriesResponse> handler)
Query SQL Warehouse to get the performance statistics time series for a given SQL across given databases for a given time period.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<SummarizeSqlStatisticsTimeSeriesByPlanResponse> summarizeSqlStatisticsTimeSeriesByPlan(SummarizeSqlStatisticsTimeSeriesByPlanRequest request, AsyncHandler<SummarizeSqlStatisticsTimeSeriesByPlanRequest,SummarizeSqlStatisticsTimeSeriesByPlanResponse> handler)
Query SQL Warehouse to get the performance statistics time series for a given SQL by execution plans for a given time period.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Copyright © 2016–2021. All rights reserved.