# LocalHealthEventsConfigProperty

Configuration information that determines the threshold and other conditions for when Internet Monitor creates a health event for a local performance or availability issue, when scores cross a threshold for one or more city-networks.

Defines the percentages, for performance scores or availability scores, that are the local thresholds for when Amazon CloudWatch Internet Monitor creates a health event. Also defines whether a local threshold is enabled or disabled, and the minimum percentage of overall traffic that must be impacted by an issue before Internet Monitor creates an event when a	threshold is crossed for a local health score.

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

For more information, see [Change health event thresholds](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-IM-overview.html#IMUpdateThresholdFromOverview) in the Internet Monitor section of the *Amazon CloudWatch User Guide* .

- 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 localHealthEventsConfigProperty: internetmonitor.CfnMonitor.LocalHealthEventsConfigProperty = {
  healthScoreThreshold: 123,
  minTrafficImpact: 123,
  status: 'status',
};
```

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

local_health_events_config_property = internetmonitor.CfnMonitor.LocalHealthEventsConfigProperty(
    health_score_threshold=123,
    min_traffic_impact=123,
    status="status"
)
```

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

LocalHealthEventsConfigProperty localHealthEventsConfigProperty = LocalHealthEventsConfigProperty.builder()
        .healthScoreThreshold(123)
        .minTrafficImpact(123)
        .status("status")
        .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 localHealthEventsConfigProperty = new LocalHealthEventsConfigProperty {
    HealthScoreThreshold = 123,
    MinTrafficImpact = 123,
    Status = "status"
};
```

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"

localHealthEventsConfigProperty := &LocalHealthEventsConfigProperty{
	HealthScoreThreshold: jsii.Number(123),
	MinTrafficImpact: jsii.Number(123),
	Status: jsii.String("status"),
}
```

## Properties

- `healthScoreThreshold`: number — The health event threshold percentage set for a local health score.

- `minTrafficImpact`: number — The minimum percentage of overall traffic for an application that must be impacted by an issue before Internet Monitor creates an event when a threshold is crossed for a local health score.

  If you don't set a minimum traffic impact threshold, the default value is 0.01%.

- `status`: string — The status of whether Internet Monitor creates a health event based on a threshold percentage set for a local health score.

  The status can be `ENABLED` or `DISABLED` .
