Class CloudWatchMeterRegistryFactory
java.lang.Object
io.micronaut.aws.sdk.v2.service.AwsClientFactory<software.amazon.awssdk.services.cloudwatch.CloudWatchClientBuilder,software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClientBuilder,software.amazon.awssdk.services.cloudwatch.CloudWatchClient,software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient>
io.micronaut.configuration.metrics.micrometer.cloudwatch.CloudWatchMeterRegistryFactory
@Factory
public class CloudWatchMeterRegistryFactory
extends io.micronaut.aws.sdk.v2.service.AwsClientFactory<software.amazon.awssdk.services.cloudwatch.CloudWatchClientBuilder,software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClientBuilder,software.amazon.awssdk.services.cloudwatch.CloudWatchClient,software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient>
Creates a CloudWatch meter registry.
-
Field Summary
Fields inherited from class io.micronaut.aws.sdk.v2.service.AwsClientFactory
configuration, credentialsProvider, regionProvider, userAgentProvider
-
Constructor Summary
ModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.protected
CloudWatchMeterRegistryFactory
(software.amazon.awssdk.auth.credentials.AwsCredentialsProviderChain credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProviderChain regionProvider, @Nullable io.micronaut.aws.ua.UserAgentProvider userAgentProvider, @Nullable io.micronaut.aws.sdk.v2.service.AWSServiceConfiguration awsServiceConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClientBuilder
asyncBuilder
(software.amazon.awssdk.http.async.SdkAsyncHttpClient httpClient) software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient
asyncClient
(software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClientBuilder builder) protected software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClientBuilder
protected software.amazon.awssdk.services.cloudwatch.CloudWatchClientBuilder
software.amazon.awssdk.services.cloudwatch.CloudWatchClientBuilder
syncBuilder
(software.amazon.awssdk.http.SdkHttpClient httpClient) software.amazon.awssdk.services.cloudwatch.CloudWatchClient
syncClient
(software.amazon.awssdk.services.cloudwatch.CloudWatchClientBuilder builder)
-
Field Details
-
CLOUDWATCH_CONFIG
- See Also:
-
CLOUDWATCH_ENABLED
- See Also:
-
CLOUDWATCH_DEFAULT_NAMESPACE
- See Also:
-
-
Constructor Details
-
CloudWatchMeterRegistryFactory
@Inject protected CloudWatchMeterRegistryFactory(software.amazon.awssdk.auth.credentials.AwsCredentialsProviderChain credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProviderChain regionProvider, @Nullable @Nullable io.micronaut.aws.ua.UserAgentProvider userAgentProvider, @Nullable @Named("monitoring") @Nullable io.micronaut.aws.sdk.v2.service.AWSServiceConfiguration awsServiceConfiguration) -
CloudWatchMeterRegistryFactory
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
createSyncBuilder
protected software.amazon.awssdk.services.cloudwatch.CloudWatchClientBuilder createSyncBuilder()- Specified by:
createSyncBuilder
in classio.micronaut.aws.sdk.v2.service.AwsClientFactory<software.amazon.awssdk.services.cloudwatch.CloudWatchClientBuilder,
software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClientBuilder, software.amazon.awssdk.services.cloudwatch.CloudWatchClient, software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient>
-
createAsyncBuilder
protected software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClientBuilder createAsyncBuilder()- Specified by:
createAsyncBuilder
in classio.micronaut.aws.sdk.v2.service.AwsClientFactory<software.amazon.awssdk.services.cloudwatch.CloudWatchClientBuilder,
software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClientBuilder, software.amazon.awssdk.services.cloudwatch.CloudWatchClient, software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient>
-
syncBuilder
@Singleton public software.amazon.awssdk.services.cloudwatch.CloudWatchClientBuilder syncBuilder(software.amazon.awssdk.http.SdkHttpClient httpClient) - Overrides:
syncBuilder
in classio.micronaut.aws.sdk.v2.service.AwsClientFactory<software.amazon.awssdk.services.cloudwatch.CloudWatchClientBuilder,
software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClientBuilder, software.amazon.awssdk.services.cloudwatch.CloudWatchClient, software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient>
-
syncClient
@Bean(preDestroy="close") @Singleton public software.amazon.awssdk.services.cloudwatch.CloudWatchClient syncClient(software.amazon.awssdk.services.cloudwatch.CloudWatchClientBuilder builder) - Overrides:
syncClient
in classio.micronaut.aws.sdk.v2.service.AwsClientFactory<software.amazon.awssdk.services.cloudwatch.CloudWatchClientBuilder,
software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClientBuilder, software.amazon.awssdk.services.cloudwatch.CloudWatchClient, software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient>
-
asyncBuilder
@Singleton @Requires(beans=software.amazon.awssdk.http.async.SdkAsyncHttpClient.class) public software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClientBuilder asyncBuilder(software.amazon.awssdk.http.async.SdkAsyncHttpClient httpClient) - Overrides:
asyncBuilder
in classio.micronaut.aws.sdk.v2.service.AwsClientFactory<software.amazon.awssdk.services.cloudwatch.CloudWatchClientBuilder,
software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClientBuilder, software.amazon.awssdk.services.cloudwatch.CloudWatchClient, software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient>
-
asyncClient
@Bean(preDestroy="close") @Singleton @Requires(beans=software.amazon.awssdk.http.async.SdkAsyncHttpClient.class) public software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient asyncClient(software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClientBuilder builder) - Overrides:
asyncClient
in classio.micronaut.aws.sdk.v2.service.AwsClientFactory<software.amazon.awssdk.services.cloudwatch.CloudWatchClientBuilder,
software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClientBuilder, software.amazon.awssdk.services.cloudwatch.CloudWatchClient, software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient>
-
CloudWatchMeterRegistryFactory(software.amazon.awssdk.auth.credentials.AwsCredentialsProviderChain,software.amazon.awssdk.regions.providers.AwsRegionProviderChain,@io.micronaut.core.annotation.Nullable io.micronaut.aws.ua.UserAgentProvider,@io.micronaut.core.annotation.Nullable io.micronaut.aws.sdk.v2.service.AWSServiceConfiguration)
instead.