Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Event

Holds properties of Consul event

Hierarchy

  • Event

Index

Constructors

constructor

  • Returns Event

  • Parameters

    Returns Event

Methods

getId

  • getId(): string
  • Set ID of event

    Returns string

getLTime

  • getLTime(): number
  • Set the Lamport clock time

    Returns number

getName

  • getName(): string
  • Set name of event

    Returns string

getNode

  • getNode(): string
  • Set regular expression to filter by node name

    Returns string

getPayload

  • getPayload(): string
  • Set payload of event

    Returns string

getService

  • getService(): string
  • Set regular expression to filter by service

    Returns string

getTag

  • getTag(): string
  • Set regular expression to filter by tag

    Returns string

getVersion

  • getVersion(): number
  • Set version

    Returns number

setId

  • setId(id: string): Event
  • Set ID of event

    Parameters

    • id: string

    Returns Event

setLTime

  • setLTime(lTime: number): Event
  • Set the Lamport clock time

    Parameters

    • lTime: number

    Returns Event

setName

  • setName(name: string): Event
  • Set name of event

    Parameters

    • name: string

    Returns Event

setNode

  • setNode(node: string): Event
  • Set regular expression to filter by node name

    Parameters

    • node: string

    Returns Event

setPayload

  • setPayload(payload: string): Event
  • Set payload of event

    Parameters

    • payload: string

    Returns Event

setService

  • setService(service: string): Event
  • Set regular expression to filter by service

    Parameters

    • service: string

    Returns Event

setTag

  • setTag(tag: string): Event
  • Set regular expression to filter by tag

    Parameters

    • tag: string

    Returns Event

setVersion

  • setVersion(version: number): Event
  • Set version

    Parameters

    • version: number

    Returns Event

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc