/** * This file was auto-generated by Fern from our API Definition. */ import * as Flatfile from "../../../index"; /** * An execution of an agent * * @example * { * eventId: "us_evt_YOUR_ID", * success: true, * createdAt: "2022-09-18T00:19:57.007Z", * completedAt: "2022-09-18T00:20:04.007Z", * duration: 500, * topic: "space:created" * } */ export interface Execution { eventId: Flatfile.EventId; /** Whether the agent execution was successful */ success: boolean; /** The space ID associated with this execution */ spaceId?: Flatfile.SpaceId; createdAt: Date; completedAt: Date; /** The duration of the agent execution */ duration: number; /** The amount of time the agent spent making http requests */ requestTime?: number; /** The number of requests made by the agent */ requestCount?: number; /** The memory usage of the agent */ memoryUsage?: number; /** The topics of the agent execution */ topic: string; }