Interface PodMetricOperation

    • Method Detail

      • withLabels

        PodMetricOperation withLabels​(Map<String,​String> labels)
        Description copied from interface: MetricOperation
        Filter metrics via labels.
        Specified by:
        withLabels in interface MetricOperation<io.fabric8.kubernetes.api.model.metrics.v1beta1.PodMetrics,​io.fabric8.kubernetes.api.model.metrics.v1beta1.PodMetricsList>
        Parameters:
        labels - labels as HashMap
        Returns:
        MetricOperation with which you can call metrics() for getting filtered Metrics
      • metrics

        io.fabric8.kubernetes.api.model.metrics.v1beta1.PodMetricsList metrics​(String namespace)
        Get PodMetricsList for a namespace.
        Parameters:
        namespace - namespace for which PodMetrics are queries
        Returns:
        PodMetricsList for all pods in specified namespace
      • metrics

        io.fabric8.kubernetes.api.model.metrics.v1beta1.PodMetrics metrics​(String namespace,
                                                                           String podName)
        Get PodMetrics in a namespace with a name.
        Parameters:
        namespace - namespace of pod
        podName - name of pod
        Returns:
        PodMetric corresponding to specified Pod