(version)
return pshard_stats_metrics
Get the proper set of pshard metrics for the specified ES version
Get the proper set of pshard metrics for the specified ES version
Get the proper set of pshard metrics for the specified ES version
def pshard_stats_for_version(version):
    """
    Get the proper set of pshard metrics for the specified ES version
    """
    pshard_stats_metrics = dict(PRIMARY_SHARD_METRICS)
    if version >= [1, 0, 0]:
        pshard_stats_metrics.update(PRIMARY_SHARD_METRICS_POST_1_0_0)

    if version >= [7, 2, 0]:
        pshard_stats_metrics.update(PRIMARY_SHARD_METRICS_POST_7_2_0)

    return pshard_stats_metrics
def pshard_stats_for_version ( version ) : pshard_stats_metrics = dict ( PRIMARY_SHARD_METRICS ) if version >= [ 1 , 0 , 0 ] : pshard_stats_metrics . update ( PRIMARY_SHARD_METRICS_POST_1_0_0 ) if version >= [ 7 , 2 , 0 ] : pshard_stats_metrics . update ( PRIMARY_SHARD_METRICS_POST_7_2_0 ) return pshard_stats_metrics