Interface IMonitoring
Configuration setting for monitoring.
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public interface IMonitoring
Syntax (vb)
Public Interface IMonitoring
Remarks
ExampleMetadata: infused
Examples
new EmrContainersStartJobRun(this, "EMR Containers Start Job Run", new EmrContainersStartJobRunProps {
VirtualCluster = VirtualClusterInput.FromVirtualClusterId("de92jdei2910fwedz"),
ReleaseLabel = ReleaseLabel.EMR_6_2_0,
JobDriver = new JobDriver {
SparkSubmitJobDriver = new SparkSubmitJobDriver {
EntryPoint = TaskInput.FromText("local:///usr/lib/spark/examples/src/main/python/pi.py"),
SparkSubmitParameters = "--conf spark.executor.instances=2 --conf spark.executor.memory=2G --conf spark.executor.cores=2 --conf spark.driver.cores=1"
}
},
Monitoring = new Monitoring {
Logging = true
}
});
Synopsis
Properties
LogBucket | Amazon S3 Bucket for monitoring log publishing. |
Logging | Enable logging for this job. |
LogGroup | A log group for CloudWatch monitoring. |
LogStreamNamePrefix | A log stream name prefix for Cloudwatch monitoring. |
PersistentAppUI | Monitoring configurations for the persistent application UI. |
Properties
LogBucket
Amazon S3 Bucket for monitoring log publishing.
virtual IBucket LogBucket { get; }
Property Value
Remarks
You can configure your jobs to send log information to Amazon S3.
Default: - if logging
is manually set to true
and a logBucket
is not provided, a logBucket
will be automatically generated`.
Logging
Enable logging for this job.
virtual Nullable<bool> Logging { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
If set to true, will automatically create a Cloudwatch Log Group and S3 bucket.
This will be set to true
implicitly if values are provided for logGroup
or logBucket
.
Default: true - true if values are provided for logGroup
or logBucket
, false otherwise
LogGroup
A log group for CloudWatch monitoring.
virtual ILogGroup LogGroup { get; }
Property Value
Remarks
You can configure your jobs to send log information to CloudWatch Logs.
Default: - if logging
is manually set to true
and a logGroup
is not provided, a logGroup
will be automatically generated`.
LogStreamNamePrefix
A log stream name prefix for Cloudwatch monitoring.
virtual string LogStreamNamePrefix { get; }
Property Value
System.String
Remarks
Default: - Log streams created in this log group have no default prefix
PersistentAppUI
Monitoring configurations for the persistent application UI.
virtual Nullable<bool> PersistentAppUI { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: true