Package apoc.metrics

Class Metrics


  • public class Metrics
    extends java.lang.Object
    Since:
    27.02.19
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Metrics.GenericMetric
      DAO for a single line in a metrics/*.csv file.
      static class  Metrics.Neo4jMeasuredMetric  
      static class  Metrics.StorageMetric
      DAO that gets streamed to the user with apoc.metric.storage() Note that we divulge the storage directory setting, not the internal path.
      static class  Metrics.StoragePair
      Simple DAO that pairs a config setting name with a File path that it refers to
    • Field Summary

      Fields 
      Modifier and Type Field Description
      org.neo4j.logging.Log log  
    • Constructor Summary

      Constructors 
      Constructor Description
      Metrics()  
    • Field Detail

      • log

        public org.neo4j.logging.Log log
    • Constructor Detail

      • Metrics

        public Metrics()
    • Method Detail

      • loadCsvForMetric

        public java.util.stream.Stream<Metrics.GenericMetric> loadCsvForMetric​(java.lang.String metricName,
                                                                               java.util.Map<java.lang.String,​java.lang.Object> config)
      • storage

        public java.util.stream.Stream<Metrics.StorageMetric> storage​(java.lang.String directorySetting)
      • get

        public java.util.stream.Stream<Metrics.GenericMetric> get​(java.lang.String metricName,
                                                                  java.util.Map<java.lang.String,​java.lang.Object> config)