interface IApplication
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Kinesisanalytics.Flink.Alpha.IApplication |
![]() | github.com/aws/aws-cdk-go/awscdkkinesisanalyticsflinkalpha/v2#IApplication |
![]() | software.amazon.awscdk.services.kinesisanalytics.flink.alpha.IApplication |
![]() | aws_cdk.aws_kinesisanalytics_flink_alpha.IApplication |
![]() | @aws-cdk/aws-kinesisanalytics-flink-alpha ยป IApplication |
Implemented by
Application
Obtainable from
Application
.fromApplicationArn()
, Application
.fromApplicationAttributes()
, Application
.fromApplicationName()
An interface expressing the public properties on both an imported and CDK-created Flink application.
Properties
Name | Type | Description |
---|---|---|
application | string | The application ARN. |
application | string | The name of the Flink application. |
connections | Connections | The network connections associated with this resource. |
env | Resource | The environment this resource belongs to. |
grant | IPrincipal | The principal to grant permissions to. |
node | Node | The tree node. |
stack | Stack | The stack in which this resource is defined. |
role? | IRole | The application IAM role. |
applicationArn
Type:
string
The application ARN.
applicationName
Type:
string
The name of the Flink application.
connections
Type:
Connections
The network connections associated with this resource.
env
Type:
Resource
The environment this resource belongs to.
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.
grantPrincipal
Type:
IPrincipal
The principal to grant permissions to.
node
Type:
Node
The tree node.
stack
Type:
Stack
The stack in which this resource is defined.
role?
Type:
IRole
(optional)
The application IAM role.
Methods
Name | Description |
---|---|
add | Convenience method for adding a policy statement to the application role. |
apply | Apply the given removal policy to this resource. |
metric(metricName, props?) | Return a CloudWatch metric associated with this Flink application. |
metric | The time (in milliseconds) this task or operator is back pressured per second. |
metric | The time (in milliseconds) this task or operator is busy (neither idle nor back pressured) per second. |
metric | The overall percentage of CPU utilization across task managers. |
metric | The last watermark this application/operator/task/thread has received. |
metric | The last watermark this application/operator/task/thread has received. |
metric | The time elapsed during an outage for failing/recovering jobs. |
metric | The total number of times this job has fully restarted since it was submitted. |
metric | Overall heap memory utilization across task managers. |
metric | The time (in milliseconds) this task or operator is idle (has no data to process) per second. |
metric | The number of Kinesis Processing Units that are used to run your stream processing application. |
metric | The time it took to complete the last checkpoint. |
metric | The total size of the last checkpoint. |
metric | The total amount of managed memory. |
metric | The amount of managed memory currently used. |
metric | Derived from managedMemoryUsed/managedMemoryTotal. |
metric | The number of records this operator or task has dropped due to arriving late. |
metric | The total number of records this application, operator, or task has received. |
metric | The total number of records this application, operator or task has received per second. |
metric | The total number of records this application, operator or task has emitted. |
metric | The total number of records this application, operator or task has emitted per second. |
metric | The number of times checkpointing has failed. |
metric | The total number of old garbage collection operations that have occurred across all task managers. |
metric | The total time spent performing old garbage collection operations. |
metric | The total number of live threads used by the application. |
metric | The time that the job has been running without interruption. |
addToRolePolicy(policyStatement)
public addToRolePolicy(policyStatement: PolicyStatement): boolean
Parameters
- policyStatement
Policy
Statement
Returns
boolean
Convenience method for adding a policy statement to the application role.
applyRemovalPolicy(policy)
public applyRemovalPolicy(policy: RemovalPolicy): void
Parameters
- policy
Removal
Policy
Apply the given removal policy to this resource.
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
).
metric(metricName, props?)
public metric(metricName: string, props?: MetricOptions): Metric
Parameters
- metricName
string
โ The name of the metric. - props
Metric
โ Customization properties.Options
Returns
Return a CloudWatch metric associated with this Flink application.
metricBackPressuredTimeMsPerSecond(props?)
public metricBackPressuredTimeMsPerSecond(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The time (in milliseconds) this task or operator is back pressured per second.
Units: Milliseconds
Reporting Level: Operator, Task, Parallelism
metricBusyTimePerMsPerSecond(props?)
public metricBusyTimePerMsPerSecond(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The time (in milliseconds) this task or operator is busy (neither idle nor back pressured) per second.
Can be NaN, if the value could not be calculated.
Units: Milliseconds
Reporting Level: Operator, Task, Parallelism
metricCpuUtilization(props?)
public metricCpuUtilization(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The overall percentage of CPU utilization across task managers.
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
metricCurrentInputWatermark(props?)
public metricCurrentInputWatermark(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The last watermark this application/operator/task/thread has received.
Units: Milliseconds
Reporting Level: Application, Operator, Task, Parallelism
metricCurrentOutputWatermark(props?)
public metricCurrentOutputWatermark(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The last watermark this application/operator/task/thread has received.
Units: Milliseconds
Reporting Level: Application, Operator, Task, Parallelism
metricDowntime(props?)
public metricDowntime(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The time elapsed during an outage for failing/recovering jobs.
Units: Milliseconds
Reporting Level: Application
metricFullRestarts(props?)
public metricFullRestarts(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The total number of times this job has fully restarted since it was submitted.
This metric does not measure fine-grained restarts.
Units: Count
Reporting Level: Application
metricHeapMemoryUtilization(props?)
public metricHeapMemoryUtilization(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
Overall heap memory utilization across task managers.
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
metricIdleTimeMsPerSecond(props?)
public metricIdleTimeMsPerSecond(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The time (in milliseconds) this task or operator is idle (has no data to process) per second.
Idle time excludes back pressured time, so if the task is back pressured it is not idle.
Units: Milliseconds
Reporting Level: Operator, Task, Parallelism
metricKpus(props?)
public metricKpus(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The number of Kinesis Processing Units that are used to run your stream processing application.
The average number of KPUs used each hour determines the billing for your application.
Units: Count
Reporting Level: Application
metricLastCheckpointDuration(props?)
public metricLastCheckpointDuration(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The time it took to complete the last checkpoint.
Units: Milliseconds
Reporting Level: Application
metricLastCheckpointSize(props?)
public metricLastCheckpointSize(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The total size of the last checkpoint.
Units: Bytes
Reporting Level: Application
metricManagedMemoryTotal(props?)
public metricManagedMemoryTotal(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The total amount of managed memory.
Units: Bytes
Reporting Level: Application, Operator, Task, Parallelism
metricManagedMemoryUsed(props?)
public metricManagedMemoryUsed(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The amount of managed memory currently used.
Units: Bytes
Reporting Level: Application, Operator, Task, Parallelism
metricManagedMemoryUtilization(props?)
public metricManagedMemoryUtilization(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
Derived from managedMemoryUsed/managedMemoryTotal.
Units: Percentage
Reporting Level: Application, Operator, Task, Parallelism
metricNumLateRecordsDropped(props?)
public metricNumLateRecordsDropped(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The number of records this operator or task has dropped due to arriving late.
Units: Count
Reporting Level: Application, Operator, Task, Parallelism
metricNumRecordsIn(props?)
public metricNumRecordsIn(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The total number of records this application, operator, or task has received.
Units: Count
Reporting Level: Application, Operator, Task, Parallelism
metricNumRecordsInPerSecond(props?)
public metricNumRecordsInPerSecond(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The total number of records this application, operator or task has received per second.
Units: Count/Second
Reporting Level: Application, Operator, Task, Parallelism
metricNumRecordsOut(props?)
public metricNumRecordsOut(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The total number of records this application, operator or task has emitted.
Units: Count
Reporting Level: Application, Operator, Task, Parallelism
metricNumRecordsOutPerSecond(props?)
public metricNumRecordsOutPerSecond(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The total number of records this application, operator or task has emitted per second.
Units: Count/Second
Reporting Level: Application, Operator, Task, Parallelism
metricNumberOfFailedCheckpoints(props?)
public metricNumberOfFailedCheckpoints(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The number of times checkpointing has failed.
Units: Count
Reporting Level: Application
metricOldGenerationGCCount(props?)
public metricOldGenerationGCCount(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The total number of old garbage collection operations that have occurred across all task managers.
Units: Count
Reporting Level: Application
metricOldGenerationGCTime(props?)
public metricOldGenerationGCTime(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The total time spent performing old garbage collection operations.
Units: Milliseconds
Reporting Level: Application
metricThreadsCount(props?)
public metricThreadsCount(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The total number of live threads used by the application.
Units: Count
Reporting Level: Application
metricUptime(props?)
public metricUptime(props?: MetricOptions): Metric
Parameters
- props
Metric
Options
Returns
The time that the job has been running without interruption.
Units: Milliseconds
Reporting Level: Application