Class MonitoringIngestionClient

java.lang.Object
io.micronaut.oraclecloud.monitoring.MonitoringIngestionClient

@Singleton public class MonitoringIngestionClient extends Object
Oracle SDK provides MonitoringClient that is constructed with default https://telemetry.<region>.oraclecloud.com endpoint. 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
  • Constructor Summary

    Constructors
    Constructor
    Description
    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)
    Deprecated.
    Use constructor with HttpProvider instead
    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)
  • Method Summary

    Modifier and Type
    Method
    Description
    com.oracle.bmc.monitoring.MonitoringClient
    Gets the MonitoringClient delegate.
    com.oracle.bmc.monitoring.responses.PostMetricDataResponse
    postMetricData(com.oracle.bmc.monitoring.requests.PostMetricDataRequest request)
    Post PostMetricDataRequest.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)
      Parameters:
      clientConfiguration - client configuration
      clientConfigurator - client configurator
      requestSignerFactory - request signer factory
      regionProvider - region provider
      authenticationDetailsProvider - authentication details provider
      httpProvider - 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 with HttpProvider instead
      Parameters:
      clientConfiguration - client configuration
      clientConfigurator - client configurator
      requestSignerFactory - request signer factory
      regionProvider - region provider
      authenticationDetailsProvider - authentication details provider
  • Method Details

    • getDelegate

      public com.oracle.bmc.monitoring.MonitoringClient getDelegate()
      Gets the MonitoringClient delegate.
      Returns:
      monitoring client
    • postMetricData

      public com.oracle.bmc.monitoring.responses.PostMetricDataResponse postMetricData(com.oracle.bmc.monitoring.requests.PostMetricDataRequest request)
      Post PostMetricDataRequest.
      Parameters:
      request - request
      Returns:
      response