Interface Key

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultKey

public interface Key extends Serializable
Interface for aggregation context (e.g. slice of hyper-cube).
Author:
Ville Koskela (ville dot koskela at inscopemetrics dot io)
  • Field Details

    • CLUSTER_DIMENSION_KEY

      static final String CLUSTER_DIMENSION_KEY
      The dimension key for the cluster attribute.
      See Also:
    • SERVICE_DIMENSION_KEY

      static final String SERVICE_DIMENSION_KEY
      The dimension key for the service attribute.
      See Also:
    • HOST_DIMENSION_KEY

      static final String HOST_DIMENSION_KEY
      The dimension key for the host attribute.
      See Also:
  • Method Details

    • getParameters

      com.google.common.collect.ImmutableMap<String,String> getParameters()
      Return all the slice parameters.
      Returns:
      ImmutableMap of parameter name to value.
    • getCluster

      String getCluster()
      The cluster parameter value.
      Returns:
      Cluster parameter value.
    • getService

      String getService()
      The service parameter value.
      Returns:
      Service parameter value.
    • getHost

      String getHost()
      The host parameter value.
      Returns:
      Host parameter value.
    • filter

      Key filter(com.google.common.collect.ImmutableSet<String> keys)
      Create a Key from this key that contains a subset of the parameters by parameter key.
      Parameters:
      keys - the parameter keys to retain in the returned Key
      Returns:
      instance of Key with only specified parameter keys and values