-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsstepfunctionstasks_Monitoring.go
50 lines (47 loc) · 2.02 KB
/
awsstepfunctionstasks_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
package awsstepfunctionstasks
import (
"github.com/aws/aws-cdk-go/awscdk/awslogs"
"github.com/aws/aws-cdk-go/awscdk/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),
// },
// })
//
// Experimental.
type Monitoring struct {
// Amazon S3 Bucket for monitoring log publishing.
//
// You can configure your jobs to send log information to Amazon S3.
// Experimental.
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`.
// Experimental.
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.
// Experimental.
LogGroup awslogs.ILogGroup `field:"optional" json:"logGroup" yaml:"logGroup"`
// A log stream name prefix for Cloudwatch monitoring.
// Experimental.
LogStreamNamePrefix *string `field:"optional" json:"logStreamNamePrefix" yaml:"logStreamNamePrefix"`
// Monitoring configurations for the persistent application UI.
// Experimental.
PersistentAppUI *bool `field:"optional" json:"persistentAppUI" yaml:"persistentAppUI"`
}