All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
Monitoring.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:10.405Z") @Stability(Stable) public interface Monitoring extends software.amazon.jsii.JsiiSerializable
Configuration setting for monitoring.

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();
 
  • Method Details

    • getLogBucket

      @Stability(Stable) @Nullable default IBucket getLogBucket()
      Amazon S3 Bucket for monitoring log publishing.

      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`.

    • getLogging

      @Stability(Stable) @Nullable default Boolean getLogging()
      Enable logging for this job.

      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

    • getLogGroup

      @Stability(Stable) @Nullable default ILogGroup getLogGroup()
      A log group for CloudWatch monitoring.

      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`.

    • getLogStreamNamePrefix

      @Stability(Stable) @Nullable default String getLogStreamNamePrefix()
      A log stream name prefix for Cloudwatch monitoring.

      Default: - Log streams created in this log group have no default prefix

    • getPersistentAppUI

      @Stability(Stable) @Nullable default Boolean getPersistentAppUI()
      Monitoring configurations for the persistent application UI.

      Default: true

    • builder

      @Stability(Stable) static Monitoring.Builder builder()
      Returns:
      a Monitoring.Builder of Monitoring