(metric_type: str, metric_key: str)
return meteorite_name, dimensions
Given the primary key for a timeseries in the datastore and its Clusterman metric type, return the metric name and
    dimensions for that timeseries in meteorite.

    :param metric_type: string, one of METRIC_TYPES
    :param metric_key: string, the unique key for the timeseries in the datastore.
    :returns: (metric_name, dimensions_dict) tuple. Dimensions may be None.
Given the primary key for a timeseries in the datastore and its Clusterman metric type, return the metric name and
    dimensions for that timeseries in meteorite.
Given the primary key for a timeseries in the datastore and its Clusterman metric type return the metric name and dimensions for that timeseries in meteorite .
def get_meteorite_identifiers(metric_type: str, metric_key: str) -> Tuple[str, Optional[Mapping[str, str]]]:
    """
    Given the primary key for a timeseries in the datastore and its Clusterman metric type, return the metric name and
    dimensions for that timeseries in meteorite.

    :param metric_type: string, one of METRIC_TYPES
    :param metric_key: string, the unique key for the timeseries in the datastore.
    :returns: (metric_name, dimensions_dict) tuple. Dimensions may be None.
    """
    dimensions = None
    name_parts = [CLUSTERMAN_NAME, metric_type]

    metric_name, dimensions = _parse_dimensions(metric_key)

    if metric_type == APP_METRICS:
        # Namespace app metrics by the app identifier.
        name_parts.extend(metric_name.split(",", 1))
    else:
        name_parts.append(metric_name)

    meteorite_name = ".".join(name_parts)
    return meteorite_name, dimensions
def get_meteorite_identifiers ( metric_type : str , metric_key : str ) -> Tuple [ str , Optional [ Mapping [ str , str ] ] ] : dimensions = None name_parts = [ CLUSTERMAN_NAME , metric_type ] metric_name , dimensions = _parse_dimensions ( metric_key ) if metric_type == APP_METRICS : # Namespace app metrics by the app identifier. name_parts . extend ( metric_name . split ( "," , 1 ) ) else : name_parts . append ( metric_name ) meteorite_name = "." . join ( name_parts ) return meteorite_name , dimensions