the-moby-effect
Version:
Moby/Docker API client built using effect-ts
25 lines • 1.15 kB
JavaScript
import * as Schema from "effect/Schema";
import * as MobyNumber from "../schemas/number.js";
export class ContainerCPUUsage extends /*#__PURE__*/Schema.Class("ContainerCPUUsage")({
total_usage: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: 0n,
maximum: 2n ** 64n - 1n
})),
percpu_usage: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(/*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: 0n,
maximum: 2n ** 64n - 1n
}))))),
usage_in_kernelmode: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: 0n,
maximum: 2n ** 64n - 1n
})),
usage_in_usermode: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: 0n,
maximum: 2n ** 64n - 1n
}))
}, {
identifier: "ContainerCPUUsage",
title: "container.CPUUsage",
documentation: "https://pkg.go.dev/github.com/docker/docker@v28.4.0+incompatible/api/types/container#CPUUsage"
}) {}
//# sourceMappingURL=ContainerCPUUsage.generated.js.map