# ProcessProperty

A process to be monitored for the component.

- Source: Generated at build time
- Type last changed: v2.159.0 · 19 Sep 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationinsights as applicationinsights } from 'aws-cdk-lib';
const processProperty: applicationinsights.CfnApplication.ProcessProperty = {
  alarmMetrics: [{
    alarmMetricName: 'alarmMetricName',
  }],
  processName: 'processName',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_applicationinsights as applicationinsights

process_property = applicationinsights.CfnApplication.ProcessProperty(
    alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
        alarm_metric_name="alarmMetricName"
    )],
    process_name="processName"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.applicationinsights.*;

ProcessProperty processProperty = ProcessProperty.builder()
        .alarmMetrics(List.of(AlarmMetricProperty.builder()
                .alarmMetricName("alarmMetricName")
                .build()))
        .processName("processName")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ApplicationInsights;

var processProperty = new ProcessProperty {
    AlarmMetrics = new [] { new AlarmMetricProperty {
        AlarmMetricName = "alarmMetricName"
    } },
    ProcessName = "processName"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

processProperty := &ProcessProperty{
	AlarmMetrics: []interface{}{
		&AlarmMetricProperty{
			AlarmMetricName: jsii.String("alarmMetricName"),
		},
	},
	ProcessName: jsii.String("processName"),
}
```

## Properties

- `alarmMetrics`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplication.AlarmMetricProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_applicationinsights.CfnApplication.AlarmMetricProperty.html)[] (required) — A list of metrics to monitor for the component.

- `processName`: string (required) — The name of the process to be monitored for the component.
