DataSourceLevelMetricsBehavior
- class aws_cdk.aws_appsync.DataSourceLevelMetricsBehavior(*values)
Bases:
EnumControls how data source metrics will be emitted to CloudWatch.
- ExampleMetadata:
infused
Example:
schema = appsync.SchemaFile(file_path="mySchemaFile") appsync.GraphqlApi(self, "api", name="myApi", definition=appsync.Definition.from_schema(schema), enhanced_metrics_config=appsync.EnhancedMetricsConfig( data_source_level_metrics_behavior=appsync.DataSourceLevelMetricsBehavior.FULL_REQUEST_DATA_SOURCE_METRICS, operation_level_metrics_config=appsync.OperationLevelMetricsConfig.ENABLED, resolver_level_metrics_behavior=appsync.ResolverLevelMetricsBehavior.FULL_REQUEST_RESOLVER_METRICS ) )
Attributes
- 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.