@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2023-01-03T16:22:40.658Z") @Stability(value=Stable) public interface Monitoring extends software.amazon.jsii.JsiiSerializable
Example:
EmrContainersStartJobRun.Builder.create(this, "EMR Containers Start Job Run")
.virtualCluster(VirtualClusterInput.fromVirtualClusterId("de92jdei2910fwedz"))
.releaseLabel(ReleaseLabel.EMR_6_2_0)
.jobDriver(JobDriver.builder()
.sparkSubmitJobDriver(SparkSubmitJobDriver.builder()
.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")
.build())
.build())
.monitoring(Monitoring.builder()
.logging(true)
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
Monitoring.Builder
A builder for
Monitoring |
static class |
Monitoring.Jsii$Proxy
An implementation for
Monitoring |
| Modifier and Type | Method and Description |
|---|---|
static Monitoring.Builder |
builder() |
default IBucket |
getLogBucket()
Amazon S3 Bucket for monitoring log publishing.
|
default Boolean |
getLogging()
Enable logging for this job.
|
default ILogGroup |
getLogGroup()
A log group for CloudWatch monitoring.
|
default String |
getLogStreamNamePrefix()
A log stream name prefix for Cloudwatch monitoring.
|
default Boolean |
getPersistentAppUI()
Monitoring configurations for the persistent application UI.
|
@Stability(value=Stable) @Nullable default IBucket getLogBucket()
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`.
@Stability(value=Stable) @Nullable default Boolean getLogging()
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
@Stability(value=Stable) @Nullable default ILogGroup getLogGroup()
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`.
@Stability(value=Stable) @Nullable default String getLogStreamNamePrefix()
Default: - Log streams created in this log group have no default prefix
@Stability(value=Stable) @Nullable default Boolean getPersistentAppUI()
Default: true
@Stability(value=Stable) static Monitoring.Builder builder()
Monitoring.Builder of MonitoringCopyright © 2023. All rights reserved.