Passar para o conteúdo principal

Insight

Atualizado essa semana

Webhook payload model for insight events.

Fields

- date (string): ISO 8601 timestamp of the event.

- action (string): Action performed on the insight (e.g., "created", "updated", "deleted").

- target (string): Target of the action (e.g., "insight").

- targetId (string): ID of the affected insight.

- byUserId (string): ID of the user who triggered the event.

- companyId (string): Company ID associated with the insight.

- newData (InsightData): Struct containing the new state of the insight.

InsightData Struct

The InsightData struct contains the following fields:

- id (string): Insight ID.

- type (string): Insight type (e.g., "vibration", "temperature").

- asset (string): Asset display name.

- number (int): Sequential number.

- status (string): Insight status (e.g., "open", "resolved").

- assetId (string): Associated asset ID.

- checked (bool): Whether the insight has been checked.

- collectId (string): Associated data collection ID.

- companyId (string): Company ID.

- createdAt (string): ISO 8601 creation timestamp.

- updatedAt (string): ISO 8601 last update timestamp.

- referenceDate (string): ISO 8601 reference date for the insight.

- createdByUserId (string): Creator user ID.

- updatedByUserId (string): Last updater user ID.

Example (JSON)

{

"date": "2025-09-29T18:04:03Z",

"action": "updated",

"target": "insight",

"targetId": "insight-001",

"byUserId": "user-abc",

"companyId": "company-xyz",

"newData": {

"id": "insight-001",

"type": "vibration",

"asset": "Hydraulic Press #3",

"number": 8,

"status": "resolved",

"assetId": "asset-001",

"checked": true,

"collectId": "collect-007",

"companyId": "company-xyz",

"createdAt": "2025-09-27T12:00:00Z",

"updatedAt": "2025-09-29T18:04:03Z",

"referenceDate": "2025-09-27T00:00:00Z",

"createdByUserId": "user-abc",

"updatedByUserId": "user-abc"

}

}

Respondeu à sua pergunta?