Passar para o conteúdo principal

FMEA Inspection

Atualizado essa semana

Fields

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

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

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

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

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

- companyId (string): Company ID.

- topic (string): Inspection topic.

- service (string): Service that emitted the event.

- platform (string): Platform (e.g., "web", "mobile").

- newData (FMEAInspectionData): Struct containing the new state of the inspection.

- oldData (FMEAInspectionData): Struct containing the previous state of the inspection.

FMEAInspectionData Struct

The FMEAInspectionData struct contains the following fields:

- id (string): Inspection ID.

- title (string): Inspection title.

- companyId (string): Company ID.

- assetId (string): Associated asset ID.

- parentId (string): Parent record ID.

- madeBy (string): User ID who created the inspection.

- status (string): Inspection status (e.g., "in_progress", "completed").

- createdAt (string): ISO 8601 creation timestamp.

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

- createdByUserId (string): Creator user ID.

- updatedByUserId (string): Last updater user ID.

- number (int): Sequential number.

Example (JSON)

{

"target": "fmeaInspection",

"targetId": "inspection-001",

"action": "updated",

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

"byUserId": "user-abc",

"companyId": "company-xyz",

"topic": "inspection-topic",

"service": "fmea-service",

"platform": "web",

"newData": {

"id": "inspection-001",

"title": "Monthly lubrication check",

"companyId": "company-xyz",

"assetId": "asset-001",

"parentId": "parent-001",

"madeBy": "user-abc",

"status": "completed",

"createdAt": "2025-09-01T08:00:00Z",

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

"createdByUserId": "user-abc",

"updatedByUserId": "user-abc",

"number": 12

},

"oldData": {

"id": "inspection-001",

"title": "Monthly lubrication check",

"companyId": "company-xyz",

"assetId": "asset-001",

"parentId": "parent-001",

"madeBy": "user-abc",

"status": "in_progress",

"createdAt": "2025-09-01T08:00:00Z",

"updatedAt": "2025-09-29T09:00:00Z",

"createdByUserId": "user-abc",

"updatedByUserId": "user-abc",

"number": 12

}

}

Respondeu à sua pergunta?