(version)
return cluster_health_metrics
Get the proper set of health metrics for the specified ES version
Get the proper set of health metrics for the specified ES version
Get the proper set of health metrics for the specified ES version
def health_stats_for_version(version):
    """
    Get the proper set of health metrics for the specified ES version
    """
    cluster_health_metrics = dict(CLUSTER_HEALTH_METRICS)
    if version >= [2, 4, 0]:
        cluster_health_metrics.update(CLUSTER_HEALTH_METRICS_POST_2_4)

    return cluster_health_metrics
def health_stats_for_version ( version ) : cluster_health_metrics = dict ( CLUSTER_HEALTH_METRICS ) if version >= [ 2 , 4 , 0 ] : cluster_health_metrics . update ( CLUSTER_HEALTH_METRICS_POST_2_4 ) return cluster_health_metrics