Class

com.github.fsanaulla.chronicler.core.components

JsonHandler

Related Doc: package components

Permalink

abstract class JsonHandler[F[_], R] extends AnyRef

* JSON handler for extracting body, code, headers

F

- parsing effect

R

- Response type

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

Instance Constructors

  1. new JsonHandler()(implicit F: Functor[F])

    Permalink

Abstract Value Members

  1. abstract def responseBody(response: R): F[ErrorOr[JValue]]

    Permalink

    * Extracting JSON from Response

    * Extracting JSON from Response

    response

    - HTTP response

  2. abstract def responseCode(response: R): Int

    Permalink

    * Extract response http code

  3. abstract def responseHeader(response: R): Seq[(String, String)]

    Permalink

    * Extract response headers

Concrete 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. final def bulkResult(js: JValue): Option[Array[Array[JArray]]]

    Permalink

    Extract bulk result from JSON

    Extract bulk result from JSON

    js

    - JSON value

    returns

    - Array of points

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def databaseInfo(response: R): ErrorOr[InfluxDBInfo]

    Permalink

    * Used to extract database info from ping response

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def groupedResult(js: JValue): Option[Array[(Tags, Values)]]

    Permalink

    * Extract influx point grouped by some criteria

    * Extract influx point grouped by some criteria

    js

    - JSON payload

    returns

    - array of pairs (grouping key, grouped value)

  13. final def groupedSystemInfo[T](js: JValue)(implicit arg0: ClassTag[T], rd: InfluxReader[T]): ErrorOr[Array[(String, Array[T])]]

    Permalink

    Extract Measurement name and values from it from JSON

    Extract Measurement name and values from it from JSON

    js

    - JSON value

    returns

    - Array of pairs

  14. final def groupedSystemInfoJs(js: JValue): Option[Array[(String, Array[JArray])]]

    Permalink

    Extract Measurement name -> Measurement points array

    Extract Measurement name -> Measurement points array

    js

    - JSON value

    returns

    - array of meas name -> meas points

  15. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  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. final def queryResult(js: JValue): Option[Array[JArray]]

    Permalink

    Extract influx points from JSON, represented as Arrays

    Extract influx points from JSON, represented as Arrays

    js

    - JSON value

    returns

    - optional array of points

  21. final def responseErrorMsg(response: R): F[ErrorOr[String]]

    Permalink

    Extract error message from response

    Extract error message from response

    response

    - Response

    returns

    - Error Message

  22. final def responseErrorMsgOpt(response: R): F[ErrorOr[Option[String]]]

    Permalink

    Extract optional error message from response

    Extract optional error message from response

    response

    - Response JSON body

    returns

    - optional error message

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped