c

com.workflowfm.pew.metrics

MetricsD3Timeline

case class MetricsD3Timeline[KeyT](path: String, file: String) extends MetricsOutput[KeyT] with FileOutput with MetricsFormatting with Product with Serializable

Outputs metrics to a file using the d3-timeline format. Generates 1 file with a "-data.js" suffix. This can then be combined with the resources at https://github.com/workflowfm/d3-workflow-timeline to render the timeline in a browser.

KeyT

the type used for workflow IDs

path

path to directory where the files will be placed

file

file name prefix

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MetricsD3Timeline
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. MetricsFormatting
  7. FileOutput
  8. MetricsOutput
  9. Function1
  10. AnyRef
  11. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MetricsD3Timeline(path: String, file: String)

    path

    path to directory where the files will be placed

    file

    file name prefix

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from MetricsD3Timeline[KeyT] to any2stringadd[MetricsD3Timeline[KeyT]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (MetricsD3Timeline[KeyT], B)
    Implicit
    This member is added by an implicit conversion from MetricsD3Timeline[KeyT] to ArrowAssoc[MetricsD3Timeline[KeyT]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def and(h: MetricsOutput[KeyT]): MetricsOutputs[KeyT]

    Compose with another MetricsOutput in sequence.

    Compose with another MetricsOutput in sequence.

    Definition Classes
    MetricsOutput
  7. def andThen[A](g: (Unit) ⇒ A): (MetricsAggregator[KeyT]) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  8. def apply(aggregator: MetricsAggregator[KeyT]): Unit
    Definition Classes
    MetricsD3Timeline → Function1
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def build(aggregator: MetricsAggregator[KeyT], now: Long): String

    Helps build the output with a static system time.

  11. def callEntry(now: Long, m: ProcessMetrics[KeyT], prefix: String): String

    Encodes a process call as a timeline task.

    Encodes a process call as a timeline task.

    now

    the current (real) to be used as the end time of unfinished processes

    m

    the ProcessMetrics recorded for this process call

    prefix

    a string to prefix (usually some whitespace) to prefix the entry

    returns

    the encoded timeline task

  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  13. def compose[A](g: (A) ⇒ MetricsAggregator[KeyT]): (A) ⇒ Unit
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  14. def ensuring(cond: (MetricsD3Timeline[KeyT]) ⇒ Boolean, msg: ⇒ Any): MetricsD3Timeline[KeyT]
    Implicit
    This member is added by an implicit conversion from MetricsD3Timeline[KeyT] to Ensuring[MetricsD3Timeline[KeyT]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (MetricsD3Timeline[KeyT]) ⇒ Boolean): MetricsD3Timeline[KeyT]
    Implicit
    This member is added by an implicit conversion from MetricsD3Timeline[KeyT] to Ensuring[MetricsD3Timeline[KeyT]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: ⇒ Any): MetricsD3Timeline[KeyT]
    Implicit
    This member is added by an implicit conversion from MetricsD3Timeline[KeyT] to Ensuring[MetricsD3Timeline[KeyT]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): MetricsD3Timeline[KeyT]
    Implicit
    This member is added by an implicit conversion from MetricsD3Timeline[KeyT] to Ensuring[MetricsD3Timeline[KeyT]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. val file: String
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def formatDuration(from: Option[Long], to: Option[Long], format: String, nullValue: String): String
    Definition Classes
    MetricsFormatting
  22. def formatDuration(from: Option[Long], to: Long, format: String, nullValue: String): String
    Definition Classes
    MetricsFormatting
  23. def formatDuration(from: Long, to: Long, format: String): String
    Definition Classes
    MetricsFormatting
  24. def formatOption[T](v: Option[T], nullValue: String, format: (T) ⇒ String = x: T => x.toString): String
    Definition Classes
    MetricsFormatting
  25. def formatTime(format: String)(time: Long): String
    Definition Classes
    MetricsFormatting
  26. def formatTimeOption(time: Option[Long], format: String, nullValue: String): String
    Definition Classes
    MetricsFormatting
  27. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from MetricsD3Timeline[KeyT] to StringFormat[MetricsD3Timeline[KeyT]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  28. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. val path: String
  34. def processEntry(proc: String, i: Seq[ProcessMetrics[KeyT]], now: Long, prefix: String): String

    Encodes multiple process calls of the same process in a single lane.

    Encodes multiple process calls of the same process in a single lane.

    proc

    the name of the process

    i

    the list of ProcessMetrics recorded for each process call

    now

    the current (real) to be used as the end time of unfinished processes

    prefix

    a string to prefix (usually some whitespace) to prefix the entry

    returns

    the encoded timeline lane

  35. def quote(s: String): String
    Definition Classes
    MetricsFormatting
  36. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  37. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  41. def workflowEntry(m: WorkflowMetrics[KeyT], agg: MetricsAggregator[KeyT], now: Long, prefix: String): String

    Encodes an entire workflow as a timeline.

    Encodes an entire workflow as a timeline.

    m

    thr WorkflowMetrics recorded for the particular workflow

    agg

    the MetricsAggregator containing all the relevant metrics

    now

    the current (real) to be used as the end time of unfinished processes

    prefix

    a string to prefix (usually some whitespace) to prefix the entry

    returns

    the encoded timeline for the workflow

  42. def writeToFile(filePath: String, output: String): Option[Exception]
    Definition Classes
    FileOutput
  43. def [B](y: B): (MetricsD3Timeline[KeyT], B)
    Implicit
    This member is added by an implicit conversion from MetricsD3Timeline[KeyT] to ArrowAssoc[MetricsD3Timeline[KeyT]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from MetricsFormatting

Inherited from FileOutput

Inherited from MetricsOutput[KeyT]

Inherited from (MetricsAggregator[KeyT]) ⇒ Unit

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from MetricsD3Timeline[KeyT] to any2stringadd[MetricsD3Timeline[KeyT]]

Inherited by implicit conversion StringFormat from MetricsD3Timeline[KeyT] to StringFormat[MetricsD3Timeline[KeyT]]

Inherited by implicit conversion Ensuring from MetricsD3Timeline[KeyT] to Ensuring[MetricsD3Timeline[KeyT]]

Inherited by implicit conversion ArrowAssoc from MetricsD3Timeline[KeyT] to ArrowAssoc[MetricsD3Timeline[KeyT]]

Ungrouped