/** * Hathora Cloud API * Welcome to the Hathora Cloud API documentation! Learn how to use the Hathora Cloud APIs to build and scale your game servers globally. * * The version of the OpenAPI document: 0.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { ExposedPort } from './ExposedPort'; import type { Region } from './Region'; /** * A process object represents a runtime instance of your game server and its metadata. * @export * @interface Process */ export interface Process { /** * Measures network traffic leaving the process in bytes. * @type {number} * @memberof Process */ egressedBytes: number; /** * * @type {Date} * @memberof Process * @deprecated */ idleSince: Date | null; /** * * @type {Date} * @memberof Process * @deprecated */ activeConnectionsUpdatedAt: Date; /** * Tracks the number of active connections to a process. * @type {number} * @memberof Process * @deprecated */ activeConnections: number; /** * * @type {Date} * @memberof Process */ roomsAllocatedUpdatedAt: Date; /** * Tracks the number of rooms that have been allocated to the process. * @type {number} * @memberof Process */ roomsAllocated: number; /** * * @type {Date} * @memberof Process * @deprecated */ roomSlotsAvailableUpdatedAt: Date; /** * * @type {number} * @memberof Process * @deprecated */ roomSlotsAvailable: number; /** * Process in drain will not accept any new rooms. * @type {boolean} * @memberof Process */ draining: boolean; /** * When the process has been terminated. * @type {Date} * @memberof Process */ terminatedAt: Date | null; /** * When the process is issued to stop. We use this to determine when we should stop billing. * @type {Date} * @memberof Process */ stoppingAt: Date | null; /** * When the process bound to the specified port. We use this to determine when we should start billing. * @type {Date} * @memberof Process */ startedAt: Date | null; /** * When the process started being provisioned. * @type {Date} * @memberof Process */ startingAt: Date; /** * Governs how many [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) can be scheduled in a process. * @type {number} * @memberof Process */ roomsPerProcess: number; /** * * @type {Array} * @memberof Process */ additionalExposedPorts: Array; /** * * @type {ExposedPort} * @memberof Process */ exposedPort: ExposedPort | null; /** * * @type {number} * @memberof Process * @deprecated */ port: number; /** * * @type {string} * @memberof Process * @deprecated */ host: string; /** * * @type {Region} * @memberof Process */ region: Region; /** * System generated unique identifier to a runtime instance of your game server. * @type {string} * @memberof Process */ processId: string; /** * System generated id for a deployment. Increments by 1. * @type {number} * @memberof Process */ deploymentId: number; /** * System generated unique identifier for an application. * @type {string} * @memberof Process */ appId: string; } /** * Check if a given object implements the Process interface. */ export declare function instanceOfProcess(value: object): boolean; export declare function ProcessFromJSON(json: any): Process; export declare function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): Process; export declare function ProcessToJSON(value?: Process | null): any;