Show / Hide Table of Contents

Class Monitoring

Configuration setting for monitoring.

Inheritance
object
Monitoring
Implements
IMonitoring
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Monitoring : IMonitoring
Syntax (vb)
Public Class Monitoring Implements 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

Constructors

Monitoring()

Configuration setting for monitoring.

Properties

LogBucket

Amazon S3 Bucket for monitoring log publishing.

LogGroup

A log group for CloudWatch monitoring.

LogStreamNamePrefix

A log stream name prefix for Cloudwatch monitoring.

Logging

Enable logging for this job.

PersistentAppUI

Monitoring configurations for the persistent application UI.

Constructors

Monitoring()

Configuration setting for monitoring.

public Monitoring()
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
                }
            });

Properties

LogBucket

Amazon S3 Bucket for monitoring log publishing.

public IBucket? LogBucket { get; set; }
Property Value

IBucket

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

LogGroup

A log group for CloudWatch monitoring.

public ILogGroup? LogGroup { get; set; }
Property Value

ILogGroup

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.

public string? LogStreamNamePrefix { get; set; }
Property Value

string

Remarks

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

Logging

Enable logging for this job.

public bool? Logging { get; set; }
Property Value

bool?

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

PersistentAppUI

Monitoring configurations for the persistent application UI.

public bool? PersistentAppUI { get; set; }
Property Value

bool?

Remarks

Default: true

Implements

IMonitoring
Back to top Generated by DocFX