Passa al contenuto principale

Class AlarmsRoutes

Namespace: TecnoPack.WebServer.Routes
Assembly: CO0002_Templ_FlowpackHMI_V00_26_M.dll

Provides API endpoints related to machine alarm retrieval within the web server.

public class AlarmsRoutes

Inheritance

object ← AlarmsRoutes

Methods

GetMachineAlarms(HttpContextBase)

Retrieves the list of active machine alarms and returns them as JSON.

[WebRoute(HttpMethod.GET, "/api/alarms")]
public static Task GetMachineAlarms(HttpContextBase ctx)

Parameters

ctx HttpContextBase

The HTTP context representing the incoming request and outgoing response.

Returns

Task

An asynchronous operation that writes the list of active alarms to the response in JSON format.

Remarks

The method queries the retained alarms stored in the FTOptix information model, specifically the English (en-US) localized alarm messages.
Each alarm is mapped to a simplified structure containing a code and a message.

  • Methods
    • GetMachineAlarms(HttpContextBase)