interface EnhancedMetricsConfig
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AppSync.EnhancedMetricsConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappsync#EnhancedMetricsConfig |
Java | software.amazon.awscdk.services.appsync.EnhancedMetricsConfig |
Python | aws_cdk.aws_appsync.EnhancedMetricsConfig |
TypeScript (source) | aws-cdk-lib » aws_appsync » EnhancedMetricsConfig |
Enhanced metrics configuration for AppSync.
Example
const schema = new appsync.SchemaFile({ filePath: 'mySchemaFile' })
new appsync.GraphqlApi(this, 'api', {
name: 'myApi',
definition: appsync.Definition.fromSchema(schema),
enhancedMetricsConfig: {
dataSourceLevelMetricsBehavior: appsync.DataSourceLevelMetricsBehavior.FULL_REQUEST_DATA_SOURCE_METRICS,
operationLevelMetricsConfig: appsync.OperationLevelMetricsConfig.ENABLED,
resolverLevelMetricsBehavior: appsync.ResolverLevelMetricsBehavior.FULL_REQUEST_RESOLVER_METRICS,
},
});
Properties
| Name | Type | Description |
|---|---|---|
| data | Data | Controls how data source metrics will be emitted to CloudWatch. |
| operation | Operation | Controls how operation metrics will be emitted to CloudWatch. |
| resolver | Resolver | Controls how resolver metrics will be emitted to CloudWatch. |
dataSourceLevelMetricsBehavior
Type:
Data
Controls how data source metrics will be emitted to CloudWatch.
operationLevelMetricsConfig
Type:
Operation
Controls how operation metrics will be emitted to CloudWatch.
resolverLevelMetricsBehavior
Type:
Resolver
Controls how resolver metrics will be emitted to CloudWatch.

.NET
Go
Java
Python
TypeScript (