OperationLevelMetricsConfig
- class aws_cdk.aws_appsync.OperationLevelMetricsConfig(*values)
Bases:
EnumControls how operation 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
- DISABLED
Does not send operation metrics to CloudWatch.
- ENABLED
Sends operation metrics to CloudWatch.