Interface EnhancedMetricsConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EnhancedMetricsConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-19T12:54:58.969Z")
@Stability(Stable)
public interface EnhancedMetricsConfig
extends software.amazon.jsii.JsiiSerializable
Enhanced metrics configuration for AppSync.
Example:
SchemaFile schema = SchemaFile.Builder.create().filePath("mySchemaFile").build();
GraphqlApi.Builder.create(this, "api")
.name("myApi")
.definition(Definition.fromSchema(schema))
.enhancedMetricsConfig(EnhancedMetricsConfig.builder()
.dataSourceLevelMetricsBehavior(DataSourceLevelMetricsBehavior.FULL_REQUEST_DATA_SOURCE_METRICS)
.operationLevelMetricsConfig(OperationLevelMetricsConfig.ENABLED)
.resolverLevelMetricsBehavior(ResolverLevelMetricsBehavior.FULL_REQUEST_RESOLVER_METRICS)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEnhancedMetricsConfigstatic final classAn implementation forEnhancedMetricsConfig -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Controls how data source metrics will be emitted to CloudWatch.Controls how operation metrics will be emitted to CloudWatch.Controls how resolver metrics will be emitted to CloudWatch.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDataSourceLevelMetricsBehavior
Controls how data source metrics will be emitted to CloudWatch. -
getOperationLevelMetricsConfig
Controls how operation metrics will be emitted to CloudWatch. -
getResolverLevelMetricsBehavior
Controls how resolver metrics will be emitted to CloudWatch. -
builder
- Returns:
- a
EnhancedMetricsConfig.BuilderofEnhancedMetricsConfig
-