Constructors

  • Create a polling stats manager

    Parameters

    • componentId: string

      Component identifier

    • resource: string

      Resource identifier

    • pollingGroup: PollingGroup

      Polling group assigned to this manager

    • cyclesOnStats: number = DEFAULT_SCAN_CYCLES_ON_STATS

      Number of cycles on stats

    • metrics: MetricsDefinitions

      Metrics instances

    Returns PollingMetricsHandler

Accessors

  • get check(): Check<any>
  • Get health check of the component

    Returns Check<any>

Methods

  • Add a task to the in progress stats

    Parameters

    • taskId: string

      Task identifier

    Returns void

  • Set the final point of a cycle

    Returns void

  • Set the initial point of a cycle

    Returns void

  • Remove a task from the in progress stats

    Parameters

    • taskId: string

      Task identifier

    • duration: number = 0

      Task duration

    • Optionalerror: Crash | Multi

      Task error

    Returns void