@Generated(value="OracleSDKGenerator", comments="API Version: 20200630") public class OperationsInsightsClient extends Object implements OperationsInsights
| Modifier and Type | Class and Description |
|---|---|
static class |
OperationsInsightsClient.Builder
Builder class for this client.
|
| Modifier and Type | Field and Description |
|---|---|
static Service |
SERVICE
Service instance for OperationsInsights.
|
| Modifier | Constructor and Description |
|---|---|
|
OperationsInsightsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Creates a new service instance using the given authentication provider and client configuration.
|
|
OperationsInsightsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Creates a new service instance using the given authentication provider and client configuration.
|
|
OperationsInsightsClient(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.
|
|
OperationsInsightsClient(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.
|
protected |
OperationsInsightsClient(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.
|
|
OperationsInsightsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Creates a new service instance using the given authentication provider.
|
|
OperationsInsightsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Creates a new service instance using the given authentication provider and client configuration.
|
|
OperationsInsightsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Creates a new service instance using the given authentication provider and client configuration.
|
| Modifier and Type | Method and Description |
|---|---|
static OperationsInsightsClient.Builder |
builder()
Create a builder for this client.
|
void |
close() |
String |
getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
|
OperationsInsightsPaginators |
getPaginators()
Gets the pre-configured paginators available for list operations in this service which may return multiple
pages of data.
|
IngestSqlBucketResponse |
ingestSqlBucket(IngestSqlBucketRequest request)
The sqlbucket endpoint takes in a JSON payload, persists it in Operations Insights ingest pipeline.
|
IngestSqlPlanLinesResponse |
ingestSqlPlanLines(IngestSqlPlanLinesRequest request)
The SqlPlanLines endpoint takes in a JSON payload, persists it in Operation Insights ingest pipeline.
|
IngestSqlTextResponse |
ingestSqlText(IngestSqlTextRequest request)
The SqlText endpoint takes in a JSON payload, persists it in Operation Insights ingest pipeline.
|
ListDatabaseInsightsResponse |
listDatabaseInsights(ListDatabaseInsightsRequest request)
Lists database insight resources
|
ListSqlPlansResponse |
listSqlPlans(ListSqlPlansRequest request)
Query SQL Warehouse to list the plan xml for a given SQL execution plan.
|
ListSqlSearchesResponse |
listSqlSearches(ListSqlSearchesRequest request)
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.
|
ListSqlTextsResponse |
listSqlTexts(ListSqlTextsRequest request)
Query SQL Warehouse to get the full SQL Text for a SQL.
|
void |
setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
|
void |
setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
|
void |
setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
|
SummarizeDatabaseInsightResourceCapacityTrendResponse |
summarizeDatabaseInsightResourceCapacityTrend(SummarizeDatabaseInsightResourceCapacityTrendRequest request)
Returns response with time series data (endTimestamp, capacity, baseCapacity) for the time period specified.
|
SummarizeDatabaseInsightResourceForecastTrendResponse |
summarizeDatabaseInsightResourceForecastTrend(SummarizeDatabaseInsightResourceForecastTrendRequest request)
Get Forecast predictions for CPU and Storage resources since a time in the past.
|
SummarizeDatabaseInsightResourceStatisticsResponse |
summarizeDatabaseInsightResourceStatistics(SummarizeDatabaseInsightResourceStatisticsRequest request)
Lists the Resource statistics (usage,capacity, usage change percent, utilization percent, base capacity, isAutoScalingEnabled) for each database filtered by utilization level
|
SummarizeDatabaseInsightResourceUsageResponse |
summarizeDatabaseInsightResourceUsage(SummarizeDatabaseInsightResourceUsageRequest request)
A cumulative distribution function is used to rank the usage data points per database within the specified time period.
|
SummarizeDatabaseInsightResourceUsageTrendResponse |
summarizeDatabaseInsightResourceUsageTrend(SummarizeDatabaseInsightResourceUsageTrendRequest request)
Returns response with time series data (endTimestamp, usage, capacity) for the time period specified.
|
SummarizeDatabaseInsightResourceUtilizationInsightResponse |
summarizeDatabaseInsightResourceUtilizationInsight(SummarizeDatabaseInsightResourceUtilizationInsightRequest request)
Gets resources with current utilization (high and low) and projected utilization (high and low) for a resource type over specified time period.
|
SummarizeSqlInsightsResponse |
summarizeSqlInsights(SummarizeSqlInsightsRequest request)
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.
|
SummarizeSqlPlanInsightsResponse |
summarizeSqlPlanInsights(SummarizeSqlPlanInsightsRequest request)
Query SQL Warehouse to get the performance insights on the execution plans for a given SQL for a given time period.
|
SummarizeSqlResponseTimeDistributionsResponse |
summarizeSqlResponseTimeDistributions(SummarizeSqlResponseTimeDistributionsRequest request)
Query SQL Warehouse to summarize the response time distribution of query executions for a given SQL for a given time period.
|
SummarizeSqlStatisticsResponse |
summarizeSqlStatistics(SummarizeSqlStatisticsRequest request)
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.
|
SummarizeSqlStatisticsTimeSeriesResponse |
summarizeSqlStatisticsTimeSeries(SummarizeSqlStatisticsTimeSeriesRequest request)
Query SQL Warehouse to get the performance statistics time series for a given SQL across given databases for a given time period.
|
SummarizeSqlStatisticsTimeSeriesByPlanResponse |
summarizeSqlStatisticsTimeSeriesByPlan(SummarizeSqlStatisticsTimeSeriesByPlanRequest request)
Query SQL Warehouse to get the performance statistics time series for a given SQL by execution plans for a given time period.
|
public static final Service SERVICE
Service instance for OperationsInsights.
public OperationsInsightsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Creates a new service instance using the given authentication provider.
authenticationDetailsProvider - The authentication details provider, required.public OperationsInsightsClient(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 OperationsInsightsClient(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 OperationsInsightsClient(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 OperationsInsightsClient(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 OperationsInsightsClient(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 OperationsInsightsClient(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)protected OperationsInsightsClient(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.
Use the OperationsInsightsClient.Builder to get access to all these parameters.
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 OperationsInsightsClient.Builder builder()
Create a builder for this client.
public void setEndpoint(String endpoint)
OperationsInsightsSets the endpoint to call (ex, https://www.example.com).
setEndpoint in interface OperationsInsightsendpoint - The endpoint of the service.public String getEndpoint()
OperationsInsightsGets the set endpoint for REST call (ex, https://www.example.com)
getEndpoint in interface OperationsInsightspublic void setRegion(Region region)
OperationsInsightsSets 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 OperationsInsightsregion - The region of the service.public void setRegion(String regionId)
OperationsInsightsSets 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 OperationsInsightsregionId - The public region ID.public void close()
close in interface AutoCloseablepublic IngestSqlBucketResponse ingestSqlBucket(IngestSqlBucketRequest request)
OperationsInsightsThe sqlbucket endpoint takes in a JSON payload, persists it in Operations Insights ingest pipeline.
ingestSqlBucket in interface OperationsInsightsrequest - The request object containing the details to sendpublic IngestSqlPlanLinesResponse ingestSqlPlanLines(IngestSqlPlanLinesRequest request)
OperationsInsightsThe SqlPlanLines endpoint takes in a JSON payload, persists it in Operation Insights ingest pipeline.
ingestSqlPlanLines in interface OperationsInsightsrequest - The request object containing the details to sendpublic IngestSqlTextResponse ingestSqlText(IngestSqlTextRequest request)
OperationsInsightsThe 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 OperationsInsightsrequest - The request object containing the details to sendpublic ListDatabaseInsightsResponse listDatabaseInsights(ListDatabaseInsightsRequest request)
OperationsInsightsLists database insight resources
listDatabaseInsights in interface OperationsInsightsrequest - The request object containing the details to sendpublic ListSqlPlansResponse listSqlPlans(ListSqlPlansRequest request)
OperationsInsightsQuery 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 OperationsInsightsrequest - The request object containing the details to sendpublic ListSqlSearchesResponse listSqlSearches(ListSqlSearchesRequest request)
OperationsInsightsSearch 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 OperationsInsightsrequest - The request object containing the details to sendpublic ListSqlTextsResponse listSqlTexts(ListSqlTextsRequest request)
OperationsInsightsQuery SQL Warehouse to get the full SQL Text for a SQL.
listSqlTexts in interface OperationsInsightsrequest - The request object containing the details to sendpublic SummarizeDatabaseInsightResourceCapacityTrendResponse summarizeDatabaseInsightResourceCapacityTrend(SummarizeDatabaseInsightResourceCapacityTrendRequest request)
OperationsInsightsReturns 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 OperationsInsightsrequest - The request object containing the details to sendpublic SummarizeDatabaseInsightResourceForecastTrendResponse summarizeDatabaseInsightResourceForecastTrend(SummarizeDatabaseInsightResourceForecastTrendRequest request)
OperationsInsightsGet Forecast predictions for CPU and Storage resources since a time in the past.
summarizeDatabaseInsightResourceForecastTrend in interface OperationsInsightsrequest - The request object containing the details to sendpublic SummarizeDatabaseInsightResourceStatisticsResponse summarizeDatabaseInsightResourceStatistics(SummarizeDatabaseInsightResourceStatisticsRequest request)
OperationsInsightsLists the Resource statistics (usage,capacity, usage change percent, utilization percent, base capacity, isAutoScalingEnabled) for each database filtered by utilization level
summarizeDatabaseInsightResourceStatistics in interface OperationsInsightsrequest - The request object containing the details to sendpublic SummarizeDatabaseInsightResourceUsageResponse summarizeDatabaseInsightResourceUsage(SummarizeDatabaseInsightResourceUsageRequest request)
OperationsInsightsA 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 OperationsInsightsrequest - The request object containing the details to sendpublic SummarizeDatabaseInsightResourceUsageTrendResponse summarizeDatabaseInsightResourceUsageTrend(SummarizeDatabaseInsightResourceUsageTrendRequest request)
OperationsInsightsReturns 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 OperationsInsightsrequest - The request object containing the details to sendpublic SummarizeDatabaseInsightResourceUtilizationInsightResponse summarizeDatabaseInsightResourceUtilizationInsight(SummarizeDatabaseInsightResourceUtilizationInsightRequest request)
OperationsInsightsGets resources with current utilization (high and low) and projected utilization (high and low) for a resource type over specified time period.
summarizeDatabaseInsightResourceUtilizationInsight in interface OperationsInsightsrequest - The request object containing the details to sendpublic SummarizeSqlInsightsResponse summarizeSqlInsights(SummarizeSqlInsightsRequest request)
OperationsInsightsQuery 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 OperationsInsightsrequest - The request object containing the details to sendpublic SummarizeSqlPlanInsightsResponse summarizeSqlPlanInsights(SummarizeSqlPlanInsightsRequest request)
OperationsInsightsQuery SQL Warehouse to get the performance insights on the execution plans for a given SQL for a given time period.
summarizeSqlPlanInsights in interface OperationsInsightsrequest - The request object containing the details to sendpublic SummarizeSqlResponseTimeDistributionsResponse summarizeSqlResponseTimeDistributions(SummarizeSqlResponseTimeDistributionsRequest request)
OperationsInsightsQuery SQL Warehouse to summarize the response time distribution of query executions for a given SQL for a given time period.
summarizeSqlResponseTimeDistributions in interface OperationsInsightsrequest - The request object containing the details to sendpublic SummarizeSqlStatisticsResponse summarizeSqlStatistics(SummarizeSqlStatisticsRequest request)
OperationsInsightsQuery 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 OperationsInsightsrequest - The request object containing the details to sendpublic SummarizeSqlStatisticsTimeSeriesResponse summarizeSqlStatisticsTimeSeries(SummarizeSqlStatisticsTimeSeriesRequest request)
OperationsInsightsQuery SQL Warehouse to get the performance statistics time series for a given SQL across given databases for a given time period.
summarizeSqlStatisticsTimeSeries in interface OperationsInsightsrequest - The request object containing the details to sendpublic SummarizeSqlStatisticsTimeSeriesByPlanResponse summarizeSqlStatisticsTimeSeriesByPlan(SummarizeSqlStatisticsTimeSeriesByPlanRequest request)
OperationsInsightsQuery SQL Warehouse to get the performance statistics time series for a given SQL by execution plans for a given time period.
summarizeSqlStatisticsTimeSeriesByPlan in interface OperationsInsightsrequest - The request object containing the details to sendpublic OperationsInsightsPaginators getPaginators()
OperationsInsightsGets the pre-configured paginators available for list operations in this service which may return multiple
pages of data. These paginators provide an Iterable interface so that service responses, or
resources/records, can be iterated through without having to manually deal with pagination and page tokens.
getPaginators in interface OperationsInsightsCopyright © 2016–2021. All rights reserved.