enum DataSourceLevelMetricsBehavior
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AppSync.DataSourceLevelMetricsBehavior |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappsync#DataSourceLevelMetricsBehavior |
Java | software.amazon.awscdk.services.appsync.DataSourceLevelMetricsBehavior |
Python | aws_cdk.aws_appsync.DataSourceLevelMetricsBehavior |
TypeScript (source) | aws-cdk-lib » aws_appsync » DataSourceLevelMetricsBehavior |
Controls how data source metrics will be emitted to CloudWatch.
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,
},
});
Members
| Name | Description |
|---|---|
| FULL_REQUEST_DATA_SOURCE_METRICS | Records and emits metric data for all data sources in the request. |
| PER_DATA_SOURCE_METRICS | Records and emits metric data for data sources that have the MetricsConfig value set to ENABLED. |
FULL_REQUEST_DATA_SOURCE_METRICS
Records and emits metric data for all data sources in the request.
PER_DATA_SOURCE_METRICS
Records and emits metric data for data sources that have the MetricsConfig value set to ENABLED.

.NET
Go
Java
Python
TypeScript (