Skip to content
v2.277.0

HealthEventsConfigProperty Struct ​

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%.

Example ​

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
# 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
// 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();
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
};
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 ​

availabilityLocalHealthEventsConfigoptionalIResolvable | CfnMonitor.LocalHealthEventsConfigPropertyavailability_local_health_events_configoptionaltyping.Union[IResolvable, LocalHealthEventsConfigProperty]availabilityLocalHealthEventsConfigoptionalIResolvableAvailabilityLocalHealthEventsConfigoptionalIResolvableAvailabilityLocalHealthEventsConfigoptionalinterface{}#
The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local availability issue.
availabilityScoreThresholdoptionalnumberavailability_score_thresholdoptionalint | floatavailabilityScoreThresholdoptionalNumberAvailabilityScoreThresholdoptionaldoubleAvailabilityScoreThresholdoptional*float64#
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.

performanceLocalHealthEventsConfigoptionalIResolvable | CfnMonitor.LocalHealthEventsConfigPropertyperformance_local_health_events_configoptionaltyping.Union[IResolvable, LocalHealthEventsConfigProperty]performanceLocalHealthEventsConfigoptionalIResolvablePerformanceLocalHealthEventsConfigoptionalIResolvablePerformanceLocalHealthEventsConfigoptionalinterface{}#
The configuration that determines the threshold and other conditions for when Internet Monitor creates a health event for a local performance issue.
performanceScoreThresholdoptionalnumberperformance_score_thresholdoptionalint | floatperformanceScoreThresholdoptionalNumberPerformanceScoreThresholdoptionaldoublePerformanceScoreThresholdoptional*float64#
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.