Skip to main content
GET
/
v1
/
machines
/
{MachineID}
/
lastAlerts
Get Machine Last Alerts
curl --request GET \
  --url https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/lastAlerts \
  --header 'Authorization: <api-key>'
[
  {
    "MachineID": 123,
    "EventDateTimeVMC": "2023-11-07T05:31:56Z",
    "TransactionID": 123,
    "EventLogID": 123,
    "SiteID": 123,
    "EntityTypeID": 123,
    "EntityTypeName": "<string>",
    "DeviceID": 123,
    "EntityActorID": 123,
    "EventDateTimeGMT": "2023-11-07T05:31:56Z",
    "EventCode": 123,
    "EventSourceID": 123,
    "EventSourceName": "<string>",
    "EventGroupId": 123,
    "EventGroupName": "<string>",
    "EventCategoryId": 123,
    "EventCategoryName": "<string>",
    "EventDescription": "<string>",
    "EventData": "<string>",
    "JSONData": "<string>",
    "EventUserID": 123
  }
]

Authorizations

Authorization
string
header
required

Enter your API key. It's required to authenticate API requests.

Path Parameters

MachineID
integer<int64>
required

The unique identifier of the machine whose last alerts are being requested.

Response

200 - application/json

A list of the most recent alerts for the specified machine.

MachineID
integer<int64> | null

The unique identifier of the machine associated with the alert.

EventDateTimeVMC
string<date-time>

The date and time of the event as recorded by the machine (VMC).

TransactionID
integer<int64> | null

The unique identifier of the transaction associated with the event, if applicable.

EventLogID
integer<int64>

The unique identifier of the event log entry.

SiteID
integer<int32>

The unique identifier of the site where the machine is located.

EntityTypeID
integer<int32>

The unique identifier for the type of entity involved in the event.

EntityTypeName
string | null

The name of the entity type involved in the event.

DeviceID
integer<int64> | null

The unique identifier of the device associated with the event.

EntityActorID
integer<int64> | null

The unique identifier of the actor (e.g., user or machine) associated with the event.

EventDateTimeGMT
string<date-time>

The date and time of the event in GMT.

EventCode
integer<int32>

A code representing the type of event that occurred.

EventSourceID
integer<int32>

The unique identifier of the source from which the event originated.

EventSourceName
string | null

The name of the source from which the event originated.

EventGroupId
integer<int32> | null

The unique identifier of the group to which the event belongs.

EventGroupName
string | null

The name of the group to which the event belongs.

EventCategoryId
integer<int32> | null

The unique identifier of the category to which the event belongs.

EventCategoryName
string | null

The name of the category to which the event belongs.

EventDescription
string | null

A textual description of the event.

EventData
string | null

Additional data related to the event, provided as a string.

JSONData
string | null

The event data in JSON format, if applicable.

EventUserID
integer<int64> | null

The unique identifier of the user associated with the event, if applicable.