the-moby-effect
Version:
Moby/Docker API client built using effect-ts
43 lines • 1.8 kB
JavaScript
import * as Schema from "effect/Schema";
import * as MobyNumber from "../schemas/number.js";
export class ContainerNetworkStats extends /*#__PURE__*/Schema.Class("ContainerNetworkStats")({
rx_bytes: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: 0n,
maximum: 2n ** 64n - 1n
})),
rx_packets: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: 0n,
maximum: 2n ** 64n - 1n
})),
rx_errors: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: 0n,
maximum: 2n ** 64n - 1n
})),
rx_dropped: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: 0n,
maximum: 2n ** 64n - 1n
})),
tx_bytes: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: 0n,
maximum: 2n ** 64n - 1n
})),
tx_packets: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: 0n,
maximum: 2n ** 64n - 1n
})),
tx_errors: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: 0n,
maximum: 2n ** 64n - 1n
})),
tx_dropped: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: 0n,
maximum: 2n ** 64n - 1n
})),
endpoint_id: /*#__PURE__*/Schema.optional(Schema.String),
instance_id: /*#__PURE__*/Schema.optional(Schema.String)
}, {
identifier: "ContainerNetworkStats",
title: "container.NetworkStats",
documentation: "https://pkg.go.dev/github.com/docker/docker@v28.4.0+incompatible/api/types/container#NetworkStats"
}) {}
//# sourceMappingURL=ContainerNetworkStats.generated.js.map