-
Notifications
You must be signed in to change notification settings - Fork 17
/
Monitoring.go
54 lines (51 loc) · 2.39 KB
/
Monitoring.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package awsstepfunctionstasks
import (
"github.com/aws/aws-cdk-go/awscdk/v2/awslogs"
"github.com/aws/aws-cdk-go/awscdk/v2/awss3"
)
// Configuration setting for monitoring.
//
// Example:
// tasks.NewEmrContainersStartJobRun(this, jsii.String("EMR Containers Start Job Run"), &EmrContainersStartJobRunProps{
// VirtualCluster: tasks.VirtualClusterInput_FromVirtualClusterId(jsii.String("de92jdei2910fwedz")),
// ReleaseLabel: tasks.ReleaseLabel_EMR_6_2_0(),
// JobDriver: &JobDriver{
// SparkSubmitJobDriver: &SparkSubmitJobDriver{
// EntryPoint: sfn.TaskInput_FromText(jsii.String("local:///usr/lib/spark/examples/src/main/python/pi.py")),
// SparkSubmitParameters: jsii.String("--conf spark.executor.instances=2 --conf spark.executor.memory=2G --conf spark.executor.cores=2 --conf spark.driver.cores=1"),
// },
// },
// Monitoring: &Monitoring{
// Logging: jsii.Boolean(true),
// },
// })
//
type Monitoring struct {
// 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`.
//
LogBucket awss3.IBucket `field:"optional" json:"logBucket" yaml:"logBucket"`
// 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.
//
Logging *bool `field:"optional" json:"logging" yaml:"logging"`
// 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`.
//
LogGroup awslogs.ILogGroup `field:"optional" json:"logGroup" yaml:"logGroup"`
// A log stream name prefix for Cloudwatch monitoring.
// Default: - Log streams created in this log group have no default prefix.
//
LogStreamNamePrefix *string `field:"optional" json:"logStreamNamePrefix" yaml:"logStreamNamePrefix"`
// Monitoring configurations for the persistent application UI.
// Default: true.
//
PersistentAppUI *bool `field:"optional" json:"persistentAppUI" yaml:"persistentAppUI"`
}