Class MetricsSnapshot

java.lang.Object
org.pentaho.di.core.metrics.MetricsSnapshot
All Implemented Interfaces:
MetricsSnapshotInterface

public class MetricsSnapshot extends Object implements MetricsSnapshotInterface
  • Constructor Details

    • MetricsSnapshot

      public MetricsSnapshot(MetricsSnapshotType type, MetricsInterface metric, String subject, String logChannelId)
      Create a new metrics snapshot
      Parameters:
      type -
      metric - the metric to use (ex. Connect to database)
      subject - the name of the metric subject (ex. the name of the database we're connecting to)
      logChannelId -
    • MetricsSnapshot

      public MetricsSnapshot(MetricsSnapshotType type, MetricsInterface metric, String logChannelId)
      Create a new metrics snapshot without a subject
      Parameters:
      type -
      description -
      logChannelId -
    • MetricsSnapshot

      public MetricsSnapshot(MetricsSnapshotType type, MetricsInterface metric, String subject, long value, String logChannelId)
      Create a snapshot metric with a value.
      Parameters:
      type - The type. For metrics with a value it is usually MIN, MAX, SUM, COUNT, ...
      metric - The metric to use
      subject - The subject
      value - The value
      logChannelId - The logging channel to reference.
    • MetricsSnapshot

      public MetricsSnapshot(MetricsSnapshotType type, MetricsInterface metric, long value, String logChannelId)
      Create a snapshot metric with a value.
      Parameters:
      type - The type. For metrics with a value it is usually MIN, MAX, SUM, COUNT, ...
      description - The description
      value - The value
      logChannelId - The logging channel to reference.
  • Method Details