Skip to main content

environment_healths

Creates, updates, deletes, gets or lists an environment_healths resource.

Overview

Nameenvironment_healths
TypeResource
Idaws.elasticbeanstalk.environment_healths

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
environment_namestringThe environment's name.
application_metricsobjectApplication request metrics for the environment.
causesarrayDescriptions of the data that contributed to the environment's current health status.
colorstringThe health color of the environment.
health_statusstringThe health status of the environment. For example, Ok.
instances_healthobjectSummary health information for the instances in the environment.
refreshed_atstringThe date and time that the health information was retrieved.
statusstringThe environment's operational status. Ready, Launching, Updating, Terminating, or Terminated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_environment_healthselectregionEnvironmentName, EnvironmentId, AttributeNamesReturns information about the overall health of the specified environment. The DescribeEnvironmentHealth operation is only available with AWS Elastic Beanstalk Enhanced Health.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
AttributeNamesarraySpecify the response elements to return. To retrieve all attributes, set to All. If no attribute names are specified, returns the name of the environment.
EnvironmentIdstringSpecify the environment by ID. You must specify either this or an EnvironmentName, or both.
EnvironmentNamestringSpecify the environment by name. You must specify either this or an EnvironmentName, or both.

SELECT examples

Returns information about the overall health of the specified environment. The DescribeEnvironmentHealth operation is only available with AWS Elastic Beanstalk Enhanced Health.

SELECT
environment_name,
application_metrics,
causes,
color,
health_status,
instances_health,
refreshed_at,
status
FROM aws.elasticbeanstalk.environment_healths
WHERE region = '{{ region }}' -- required
AND EnvironmentName = '{{ EnvironmentName }}'
AND EnvironmentId = '{{ EnvironmentId }}'
AND AttributeNames = '{{ AttributeNames }}'
;