java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.compute.Compute
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.compute.Json2Csv
All Implemented Interfaces:
Serializable

public class Json2Csv extends Compute
Represents a Json2Csv computation task for monitoring.
See Also:
  • Constructor Details

    • Json2Csv

      public Json2Csv(String type, String entryKey, String properties, String separator)
      Construct a new instance of Json2Csv.
      Parameters:
      type - The type of the computation task.
      entryKey - The entry key for Json2Csv computation.
      properties - The properties for Json2Csv computation.
      separator - The separator for Json2Csv computation.
  • Method Details

    • toString

      public String toString()
      Description copied from class: Compute
      Returns a formatted string representation of the compute operation, indicating its type.
      Overrides:
      toString in class Compute
      Returns:
      A string representation of the compute operation.
    • copy

      public Json2Csv copy()
      Description copied from class: Compute
      Creates a copy of the current compute operation.
      Specified by:
      copy in class Compute
      Returns:
      A new instance of the concrete compute operation.
    • update

      public void update(UnaryOperator<String> updater)
      Description copied from class: Compute
      Updates the compute operation using the provided updater function.
      Specified by:
      update in class Compute
      Parameters:
      updater - The unary operator to apply updates to the compute operation.
    • accept

      public void accept(IComputeProcessor computeProcessor)
      Description copied from class: Compute
      Accepts a compute processor for further processing.
      Specified by:
      accept in class Compute
      Parameters:
      computeProcessor - The compute processor to accept.