UNPKG

the-moby-effect

Version:
30 lines 2.17 kB
import * as Schema from "effect/Schema"; import * as MobyNumber from "../schemas/number.js"; import * as ContainerBlkioStats from "./ContainerBlkioStats.generated.js"; import * as ContainerCPUStats from "./ContainerCPUStats.generated.js"; import * as ContainerMemoryStats from "./ContainerMemoryStats.generated.js"; import * as ContainerNetworkStats from "./ContainerNetworkStats.generated.js"; import * as ContainerPidsStats from "./ContainerPidsStats.generated.js"; import * as ContainerStorageStats from "./ContainerStorageStats.generated.js"; export class ContainerStatsResponse extends /*#__PURE__*/Schema.Class("ContainerStatsResponse")({ name: /*#__PURE__*/Schema.optional(Schema.String), id: /*#__PURE__*/Schema.optional(Schema.String), read: /*#__PURE__*/Schema.NullOr(Schema.DateFromString), preread: /*#__PURE__*/Schema.NullOr(Schema.DateFromString), pids_stats: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(ContainerPidsStats.ContainerPidsStats)), blkio_stats: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(ContainerBlkioStats.ContainerBlkioStats)), num_procs: /*#__PURE__*/MobyNumber.NumberFromWireString.check(/*#__PURE__*/Schema.isInt(), /*#__PURE__*/Schema.isBetween({ minimum: 0, maximum: 2 ** 32 - 1 })), storage_stats: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(ContainerStorageStats.ContainerStorageStats)), cpu_stats: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(ContainerCPUStats.ContainerCPUStats)), precpu_stats: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(ContainerCPUStats.ContainerCPUStats)), memory_stats: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(ContainerMemoryStats.ContainerMemoryStats)), networks: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Record(Schema.String, /*#__PURE__*/Schema.NullOr(ContainerNetworkStats.ContainerNetworkStats)))) }, { identifier: "ContainerStatsResponse", title: "container.StatsResponse", documentation: "https://pkg.go.dev/github.com/docker/docker@v28.4.0+incompatible/api/types/container#StatsResponse" }) {} //# sourceMappingURL=ContainerStatsResponse.generated.js.map