Class

org.apache.spark.metrics.sink.loganalytics.LogAnalyticsReporter

Builder

Related Doc: package LogAnalyticsReporter

Permalink

class Builder extends SmartDataLakeLogger

A builder for LogAnalyticsReporter instances. Defaults to not using a prefix, using the default clock, converting rates to events/second, converting durations to milliseconds, and not filtering metrics. The default Log Analytics log type is DropWizard

Linear Supertypes
SmartDataLakeLogger, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Builder
  2. SmartDataLakeLogger
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Builder(registry: MetricRegistry)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def build(): LogAnalyticsReporter

    Permalink

    Builds a LogAnalyticsReporter with the given properties.

    Builds a LogAnalyticsReporter with the given properties.

    returns

    a { @link LogAnalyticsReporter}

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def convertDurationsTo(durationUnit: TimeUnit): Builder

    Permalink

    Convert all the durations to a certain TimeUnit, defaults to TimeUnit.MILLISECONDS

    Convert all the durations to a certain TimeUnit, defaults to TimeUnit.MILLISECONDS

    durationUnit

    unit of duration

    returns

    { @code this}

  8. def convertRatesTo(rateUnit: TimeUnit): Builder

    Permalink

    Convert all the rates to a certain TimeUnit, defaults to TimeUnit.SECONDS.

    Convert all the rates to a certain TimeUnit, defaults to TimeUnit.SECONDS.

    rateUnit

    unit of rate

    returns

    { @code this}

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def filter(filter: MetricFilter): Builder

    Permalink

    Allows to configure a special MetricFilter, which defines what metrics are reported

    Allows to configure a special MetricFilter, which defines what metrics are reported

    filter

    metrics filter

    returns

    { @code this}

  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    SmartDataLakeLogger
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def prefixedWith(prefix: String): Builder

    Permalink

    Configure a prefix for each metric name.

    Configure a prefix for each metric name. Optional, but useful to identify originator of metric.

    prefix

    prefix for metric name

    returns

    { @code this}

  21. val registry: MetricRegistry

    Permalink
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def withClock(clock: Clock): Builder

    Permalink

    Use the given Clock instance for the time.

    Use the given Clock instance for the time. Usually the default clock is sufficient.

    clock

    clock

    returns

    { @code this}

  28. def withLogType(logType: String): Builder

    Permalink

    The log type to send to Log Analytics.

    The log type to send to Log Analytics. Defaults to 'SparkMetrics'.

    logType

    Log Analytics log type

    returns

    { @code this}

  29. def withWorkspaceId(workspaceId: String): Builder

    Permalink

    The workspace id of the Log Analytics workspace

    The workspace id of the Log Analytics workspace

    workspaceId

    Log Analytics workspace id

    returns

    { @code this}

  30. def withWorkspaceKey(workspaceKey: String): Builder

    Permalink

    The workspace key of the Log Analytics workspace

    The workspace key of the Log Analytics workspace

    workspaceKey

    Log Analytics workspace key

    returns

    { @code this}

Inherited from SmartDataLakeLogger

Inherited from AnyRef

Inherited from Any

Ungrouped