Passa al contenuto principale

Class Collector

Namespace: TecnoPack.Metrics
Assembly: CO0002_Templ_FlowpackHMI_V00_26_M.dll

Static helper class to manage the lifecycle of the metrics collection job.

public static class Collector

Inheritance

object ← Collector

Remarks

The class schedules and controls a Quartz job () responsible for collecting runtime metrics at regular intervals.

Methods

StartAsync()

Starts the metrics collection job.

public static Task StartAsync()

Returns

Task

Remarks

If the job is already scheduled, this method does nothing. The job is scheduled to run every 1 minute with default misfire handling.

StopAsync()

Stops the metrics collection job and cleans up associated triggers.

public static Task StopAsync()

Returns

Task

Remarks

Unschedules the trigger first to stop execution, then deletes the job from the scheduler. Safe to call even if the job or trigger does not exist.