Documentation

File: logs.mock.js

Description: This file contains a mock list of log entries, simulating the data that would be fetched from a real log system. These logs represent events related to a commenting pipeline, tracking its progress and status updates.

Exports:

  • default: An array of log objects.

Log Object

Description: Each object in the exported array represents a single log entry, capturing specific information about an event during a pipeline run.

Properties:

  • id (string): Unique identifier for the log entry.
  • pipeline_id (string): Identifier of the pipeline to which this log entry belongs.
  • message (string): Human-readable message describing the event.
  • status (number): Integer representing the status of the event:
    • 0: In progress
    • 1: Success
    • 2: Completed
  • created_at (string): Timestamp of when the event occurred, formatted as ISO 8601.

Example:

{
  id: "b25ac257-eec1-4738-9e0f-73b2271f4a3a",
  pipeline_id: "3b84e4ac-d033-4b1b-aaad-158ffd116f08",
  message: "Detected new push from pyronlaboratory to komment (main)",
  status: 1,
  created_at: "2023-12-05T11:47:37.485Z",
}