# HealthEventsConfigProperty

Define the health event threshold percentages for the performance score and availability score for your application's monitor.

Amazon CloudWatch Internet Monitor creates a health event when there's an internet issue that affects your application end users where a health score percentage is at or below a set threshold.

If you don't set a health event threshold, the default value is 95%.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_internetmonitor as internetmonitor } from 'aws-cdk-lib';
const healthEventsConfigProperty: internetmonitor.CfnMonitor.HealthEventsConfigProperty = {
  availabilityLocalHealthEventsConfig: {
    healthScoreThreshold: 123,
    minTrafficImpact: 123,
    status: 'status',
  },
  availabilityScoreThreshold: 123,
  performanceLocalHealthEventsConfig: {
    healthScoreThreshold: 123,
    minTrafficImpact: 123,
    status: 'status',
  },
  performanceScoreThreshold: 123,
};
```

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_internetmonitor as internetmonitor

health_events_config_property = internetmonitor.CfnMonitor.HealthEventsConfigProperty(
    availability_local_health_events_config=internetmonitor.CfnMonitor.LocalHealthEventsConfigProperty(
        health_score_threshold=123,
        min_traffic_impact=123,
        status="status"
    ),
    availability_score_threshold=123,
    performance_local_health_events_config=internetmonitor.CfnMonitor.LocalHealthEventsConfigProperty(
        health_score_threshold=123,
        min_traffic_impact=123,
        status="status"
    ),
    performance_score_threshold=123
)
```

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.internetmonitor.*;

HealthEventsConfigProperty healthEventsConfigProperty = HealthEventsConfigProperty.builder()
        .availabilityLocalHealthEventsConfig(LocalHealthEventsConfigProperty.builder()
                .healthScoreThreshold(123)
                .minTrafficImpact(123)
                .status("status")
                .build())
        .availabilityScoreThreshold(123)
        .performanceLocalHealthEventsConfig(LocalHealthEventsConfigProperty.builder()
                .healthScoreThreshold(123)
                .minTrafficImpact(123)
                .status("status")
                .build())
        .performanceScoreThreshold(123)
        .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.InternetMonitor;

var healthEventsConfigProperty = new HealthEventsConfigProperty {
    AvailabilityLocalHealthEventsConfig = new LocalHealthEventsConfigProperty {
        HealthScoreThreshold = 123,
        MinTrafficImpact = 123,
        Status = "status"
    },
    AvailabilityScoreThreshold = 123,
    PerformanceLocalHealthEventsConfig = new LocalHealthEventsConfigProperty {
        HealthScoreThreshold = 123,
        MinTrafficImpact = 123,
        Status = "status"
    },
    PerformanceScoreThreshold = 123
};
```

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"

healthEventsConfigProperty := &HealthEventsConfigProperty{
	AvailabilityLocalHealthEventsConfig: &LocalHealthEventsConfigProperty{
		HealthScoreThreshold: jsii.Number(123),
		MinTrafficImpact: jsii.Number(123),
		Status: jsii.String("status"),
	},
	AvailabilityScoreThreshold: jsii.Number(123),
	PerformanceLocalHealthEventsConfig: &LocalHealthEventsConfigProperty{
		HealthScoreThreshold: jsii.Number(123),
		MinTrafficImpact: jsii.Number(123),
		Status: jsii.String("status"),
	},
	PerformanceScoreThreshold: jsii.Number(123),
}
```

## Properties

- `availabilityLocalHealthEventsConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMonitor.LocalHealthEventsConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_internetmonitor.CfnMonitor.LocalHealthEventsConfigProperty.html) — The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local availability issue.

- `availabilityScoreThreshold`: number — The health event threshold percentage set for availability scores.

  When the overall availability score is at or below this percentage, Internet Monitor creates a health event.

- `performanceLocalHealthEventsConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMonitor.LocalHealthEventsConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_internetmonitor.CfnMonitor.LocalHealthEventsConfigProperty.html) — The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local performance issue.

- `performanceScoreThreshold`: number — The health event threshold percentage set for performance scores.

  When the overall performance score is at or below this percentage, Internet Monitor creates a health event.
