Class MonitoringIngestionClient
java.lang.Object
io.micronaut.oraclecloud.monitoring.MonitoringIngestionClient
Oracle SDK provides
MonitoringClient
that is constructed with default endpoint based on region provided by region provider.
For sending metrics to the Oracle Cloud Monitoring service the MonitoringClient.postMetricData(PostMetricDataRequest)
is used
but the endpoint must be configured to https://telemetry-ingestion.<region>.oraclecloud.com
. This bean encapsulates creation
and configuration of the MonitoringClient
to use MonitoringClient.postMetricData(PostMetricDataRequest)
so the MonitoringClient
concerns are separated into two singleton beans.- Since:
- 1.2
- Author:
- Pavol Gressa
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMonitoringIngestionClient
(com.oracle.bmc.ClientConfiguration clientConfiguration, @Nullable com.oracle.bmc.http.ClientConfigurator clientConfigurator, @Nullable com.oracle.bmc.http.signing.RequestSignerFactory requestSignerFactory, com.oracle.bmc.auth.RegionProvider regionProvider, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) Deprecated.MonitoringIngestionClient
(com.oracle.bmc.ClientConfiguration clientConfiguration, @Nullable com.oracle.bmc.http.ClientConfigurator clientConfigurator, @Nullable com.oracle.bmc.http.signing.RequestSignerFactory requestSignerFactory, com.oracle.bmc.auth.RegionProvider regionProvider, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, @Nullable com.oracle.bmc.http.client.HttpProvider httpProvider) CreatesMonitoringIngestionClient
. -
Method Summary
Modifier and TypeMethodDescriptioncom.oracle.bmc.monitoring.MonitoringClient
Gets theMonitoringClient
delegate.com.oracle.bmc.monitoring.responses.PostMetricDataResponse
postMetricData
(com.oracle.bmc.monitoring.requests.PostMetricDataRequest request) PostPostMetricDataRequest
.
-
Field Details
-
SERVICE
public static final com.oracle.bmc.Service SERVICE
-
-
Constructor Details
-
MonitoringIngestionClient
public MonitoringIngestionClient(com.oracle.bmc.ClientConfiguration clientConfiguration, @Nullable @Nullable com.oracle.bmc.http.ClientConfigurator clientConfigurator, @Nullable @Nullable com.oracle.bmc.http.signing.RequestSignerFactory requestSignerFactory, com.oracle.bmc.auth.RegionProvider regionProvider, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, @Nullable @Nullable com.oracle.bmc.http.client.HttpProvider httpProvider) CreatesMonitoringIngestionClient
.- Parameters:
clientConfiguration
- client configurationclientConfigurator
- client configuratorrequestSignerFactory
- request signer factoryregionProvider
- region providerauthenticationDetailsProvider
- authentication details providerhttpProvider
- HTTP provider
-
MonitoringIngestionClient
@Deprecated public MonitoringIngestionClient(com.oracle.bmc.ClientConfiguration clientConfiguration, @Nullable @Nullable com.oracle.bmc.http.ClientConfigurator clientConfigurator, @Nullable @Nullable com.oracle.bmc.http.signing.RequestSignerFactory requestSignerFactory, com.oracle.bmc.auth.RegionProvider regionProvider, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) Deprecated.Use constructor withHttpProvider
insteadCreatesMonitoringIngestionClient
.- Parameters:
clientConfiguration
- client configurationclientConfigurator
- client configuratorrequestSignerFactory
- request signer factoryregionProvider
- region providerauthenticationDetailsProvider
- authentication details provider
-
-
Method Details
-
getDelegate
public com.oracle.bmc.monitoring.MonitoringClient getDelegate()Gets theMonitoringClient
delegate.- Returns:
- monitoring client
-
postMetricData
public com.oracle.bmc.monitoring.responses.PostMetricDataResponse postMetricData(com.oracle.bmc.monitoring.requests.PostMetricDataRequest request) PostPostMetricDataRequest
.- Parameters:
request
- request- Returns:
- response
-
HttpProvider
instead