public static interface IApplication.Jsii$Default extends IApplication, IResource.Jsii$Default, IGrantable.Jsii$Default
IApplication
.IApplication.Jsii$Default, IApplication.Jsii$Proxy
Modifier and Type | Method and Description |
---|---|
default java.lang.Boolean |
addToRolePolicy(PolicyStatement policyStatement)
(experimental) Convenience method for adding a policy statement to the application role.
|
default void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
default java.lang.String |
getApplicationArn()
(experimental) The application ARN.
|
default java.lang.String |
getApplicationName()
(experimental) The name of the Flink application.
|
default ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
default IPrincipal |
getGrantPrincipal()
The principal to grant permissions to.
|
default ConstructNode |
getNode()
The construct tree node for this construct.
|
default IRole |
getRole()
(experimental) The application IAM role.
|
default Stack |
getStack()
The stack in which this resource is defined.
|
default Metric |
metric(java.lang.String metricName,
MetricOptions props)
(experimental) Return a CloudWatch metric associated with this Flink application.
|
default Metric |
metricBackPressuredTimeMsPerSecond(MetricOptions props)
(experimental) The time (in milliseconds) this task or operator is back pressured per second.
|
default Metric |
metricBusyTimePerMsPerSecond(MetricOptions props)
(experimental) The time (in milliseconds) this task or operator is busy (neither idle nor back pressured) per second.
|
default Metric |
metricCpuUtilization(MetricOptions props)
(experimental) The overall percentage of CPU utilization across task managers.
|
default Metric |
metricCurrentInputWatermark(MetricOptions props)
(experimental) The last watermark this application/operator/task/thread has received.
|
default Metric |
metricCurrentOutputWatermark(MetricOptions props)
(experimental) The last watermark this application/operator/task/thread has received.
|
default Metric |
metricDowntime(MetricOptions props)
(experimental) The time elapsed during an outage for failing/recovering jobs.
|
default Metric |
metricFullRestarts(MetricOptions props)
(experimental) The total number of times this job has fully restarted since it was submitted.
|
default Metric |
metricHeapMemoryUtilization(MetricOptions props)
(experimental) Overall heap memory utilization across task managers.
|
default Metric |
metricIdleTimeMsPerSecond(MetricOptions props)
(experimental) The time (in milliseconds) this task or operator is idle (has no data to process) per second.
|
default Metric |
metricKpus(MetricOptions props)
(experimental) The number of Kinesis Processing Units that are used to run your stream processing application.
|
default Metric |
metricLastCheckpointDuration(MetricOptions props)
(experimental) The time it took to complete the last checkpoint.
|
default Metric |
metricLastCheckpointSize(MetricOptions props)
(experimental) The total size of the last checkpoint.
|
default Metric |
metricManagedMemoryTotal(MetricOptions props)
(experimental) The total amount of managed memory.
|
default Metric |
metricManagedMemoryUsed(MetricOptions props)
(experimental) The amount of managed memory currently used.
|
default Metric |
metricManagedMemoryUtilization(MetricOptions props)
(experimental) Derived from managedMemoryUsed/managedMemoryTotal.
|
default Metric |
metricNumberOfFailedCheckpoints(MetricOptions props)
(experimental) The number of times checkpointing has failed.
|
default Metric |
metricNumLateRecordsDropped(MetricOptions props)
(experimental) The number of records this operator or task has dropped due to arriving late.
|
default Metric |
metricNumRecordsIn(MetricOptions props)
(experimental) The total number of records this application, operator, or task has received.
|
default Metric |
metricNumRecordsInPerSecond(MetricOptions props)
(experimental) The total number of records this application, operator or task has received per second.
|
default Metric |
metricNumRecordsOut(MetricOptions props)
(experimental) The total number of records this application, operator or task has emitted.
|
default Metric |
metricNumRecordsOutPerSecond(MetricOptions props)
(experimental) The total number of records this application, operator or task has emitted per second.
|
default Metric |
metricOldGenerationGCCount(MetricOptions props)
(experimental) The total number of old garbage collection operations that have occurred across all task managers.
|
default Metric |
metricOldGenerationGCTime(MetricOptions props)
(experimental) The total time spent performing old garbage collection operations.
|
default Metric |
metricThreadsCount(MetricOptions props)
(experimental) The total number of live threads used by the application.
|
default Metric |
metricUptime(MetricOptions props)
(experimental) The time that the job has been running without interruption.
|
metric, metricBackPressuredTimeMsPerSecond, metricBusyTimePerMsPerSecond, metricCpuUtilization, metricCurrentInputWatermark, metricCurrentOutputWatermark, metricDowntime, metricFullRestarts, metricHeapMemoryUtilization, metricIdleTimeMsPerSecond, metricKpus, metricLastCheckpointDuration, metricLastCheckpointSize, metricManagedMemoryTotal, metricManagedMemoryUsed, metricManagedMemoryUtilization, metricNumberOfFailedCheckpoints, metricNumLateRecordsDropped, metricNumRecordsIn, metricNumRecordsInPerSecond, metricNumRecordsOut, metricNumRecordsOutPerSecond, metricOldGenerationGCCount, metricOldGenerationGCTime, metricThreadsCount, metricUptime
default ConstructNode getNode()
getNode
in interface IConstruct
getNode
in interface IConstruct.Jsii$Default
getNode
in interface IResource.Jsii$Default
default ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv
in interface IResource
getEnv
in interface IResource.Jsii$Default
default Stack getStack()
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
default IPrincipal getGrantPrincipal()
getGrantPrincipal
in interface IGrantable
getGrantPrincipal
in interface IGrantable.Jsii$Default
default java.lang.String getApplicationArn()
getApplicationArn
in interface IApplication
default java.lang.String getApplicationName()
getApplicationName
in interface IApplication
default IRole getRole()
getRole
in interface IApplication
default void applyRemovalPolicy(RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY
), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN
).
applyRemovalPolicy
in interface IResource
applyRemovalPolicy
in interface IResource.Jsii$Default
policy
- This parameter is required.default java.lang.Boolean addToRolePolicy(PolicyStatement policyStatement)
addToRolePolicy
in interface IApplication
policyStatement
- This parameter is required.default Metric metric(java.lang.String metricName, MetricOptions props)
metric
in interface IApplication
metricName
- The name of the metric. This parameter is required.props
- Customization properties.default Metric metricBackPressuredTimeMsPerSecond(MetricOptions props)
Units: Milliseconds
Reporting Level: Operator, Task, Parallelism
Default: average over 5 minutes
metricBackPressuredTimeMsPerSecond
in interface IApplication
props
- default Metric metricBusyTimePerMsPerSecond(MetricOptions props)
Can be NaN, if the value could not be calculated.
Units: Milliseconds
Reporting Level: Operator, Task, Parallelism
Default: average over 5 minutes
metricBusyTimePerMsPerSecond
in interface IApplication
props
- default Metric metricCpuUtilization(MetricOptions props)
For example, if there are five task managers, Kinesis Data Analytics publishes five samples of this metric per reporting interval.
Units: Percentage
Reporting Level: Application
Default: average over 5 minutes
metricCpuUtilization
in interface IApplication
props
- default Metric metricCurrentInputWatermark(MetricOptions props)
Units: Milliseconds
Reporting Level: Application, Operator, Task, Parallelism
Default: maximum over 5 minutes
metricCurrentInputWatermark
in interface IApplication
props
- default Metric metricCurrentOutputWatermark(MetricOptions props)
Units: Milliseconds
Reporting Level: Application, Operator, Task, Parallelism
Default: maximum over 5 minutes
metricCurrentOutputWatermark
in interface IApplication
props
- default Metric metricDowntime(MetricOptions props)
Units: Milliseconds
Reporting Level: Application
Default: average over 5 minutes
metricDowntime
in interface IApplication
props
- default Metric metricFullRestarts(MetricOptions props)
This metric does not measure fine-grained restarts.
Units: Count
Reporting Level: Application
Default: sum over 5 minutes
metricFullRestarts
in interface IApplication
props
- default Metric metricHeapMemoryUtilization(MetricOptions props)
For example, if there are five task managers, Kinesis Data Analytics publishes five samples of this metric per reporting interval.
Units: Percentage
Reporting Level: Application
Default: average over 5 minutes
metricHeapMemoryUtilization
in interface IApplication
props
- default Metric metricIdleTimeMsPerSecond(MetricOptions props)
Idle time excludes back pressured time, so if the task is back pressured it is not idle.
Units: Milliseconds
Reporting Level: Operator, Task, Parallelism
Default: average over 5 minutes
metricIdleTimeMsPerSecond
in interface IApplication
props
- default Metric metricKpus(MetricOptions props)
The average number of KPUs used each hour determines the billing for your application.
Units: Count
Reporting Level: Application
Default: average over 5 minutes
metricKpus
in interface IApplication
props
- default Metric metricLastCheckpointDuration(MetricOptions props)
Units: Milliseconds
Reporting Level: Application
Default: maximum over 5 minutes
metricLastCheckpointDuration
in interface IApplication
props
- default Metric metricLastCheckpointSize(MetricOptions props)
Units: Bytes
Reporting Level: Application
Default: maximum over 5 minutes
metricLastCheckpointSize
in interface IApplication
props
- default Metric metricManagedMemoryTotal(MetricOptions props)
Units: Bytes
Reporting Level: Application, Operator, Task, Parallelism
Default: average over 5 minutes
metricManagedMemoryTotal
in interface IApplication
props
- default Metric metricManagedMemoryUsed(MetricOptions props)
Units: Bytes
Reporting Level: Application, Operator, Task, Parallelism
Default: average over 5 minutes
metricManagedMemoryUsed
in interface IApplication
props
- default Metric metricManagedMemoryUtilization(MetricOptions props)
Units: Percentage
Reporting Level: Application, Operator, Task, Parallelism
Default: average over 5 minutes
metricManagedMemoryUtilization
in interface IApplication
props
- default Metric metricNumberOfFailedCheckpoints(MetricOptions props)
Units: Count
Reporting Level: Application
Default: sum over 5 minutes
metricNumberOfFailedCheckpoints
in interface IApplication
props
- default Metric metricNumLateRecordsDropped(MetricOptions props)
Units: Count
Reporting Level: Application, Operator, Task, Parallelism
Default: sum over 5 minutes
metricNumLateRecordsDropped
in interface IApplication
props
- default Metric metricNumRecordsIn(MetricOptions props)
Units: Count
Reporting Level: Application, Operator, Task, Parallelism
Default: average over 5 minutes
metricNumRecordsIn
in interface IApplication
props
- default Metric metricNumRecordsInPerSecond(MetricOptions props)
Units: Count/Second
Reporting Level: Application, Operator, Task, Parallelism
Default: average over 5 minutes
metricNumRecordsInPerSecond
in interface IApplication
props
- default Metric metricNumRecordsOut(MetricOptions props)
Units: Count
Reporting Level: Application, Operator, Task, Parallelism
Default: average over 5 minutes
metricNumRecordsOut
in interface IApplication
props
- default Metric metricNumRecordsOutPerSecond(MetricOptions props)
Units: Count/Second
Reporting Level: Application, Operator, Task, Parallelism
Default: average over 5 minutes
metricNumRecordsOutPerSecond
in interface IApplication
props
- default Metric metricOldGenerationGCCount(MetricOptions props)
Units: Count
Reporting Level: Application
Default: sum over 5 minutes
metricOldGenerationGCCount
in interface IApplication
props
- default Metric metricOldGenerationGCTime(MetricOptions props)
Units: Milliseconds
Reporting Level: Application
Default: sum over 5 minutes
metricOldGenerationGCTime
in interface IApplication
props
- default Metric metricThreadsCount(MetricOptions props)
Units: Count
Reporting Level: Application
Default: average over 5 minutes
metricThreadsCount
in interface IApplication
props
- default Metric metricUptime(MetricOptions props)
Units: Milliseconds
Reporting Level: Application
Default: sample count over 5 minutes
metricUptime
in interface IApplication
props
-