algebra.readsFired
This function tells if a duration reads the number of times that its timer fired, as the waits of a backoff do.
CLI- Package
- @procedures/algebra · README
- Path
["algebra","readsFired"]- CLI
mark algebra readsFired --e <object | object | object | object>- As data
{"$proc":["algebra","readsFired"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/algebra/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["algebra","readsFired"], { e: "<e>" });
console.log(JSON.stringify(result));From the command line
$ mark algebra readsFired --e <object | object | object | object>
As data, in a program
{ "$proc": ["algebra", "readsFired"], "input": { "e": "<e>" } }Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
e | object | object | object | object | yes |
Output
The schema does not list fields (boolean).
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"e": {
"anyOf": [
{
"type": "object",
"properties": {
"const": {
"type": "number"
},
"unit": {
"type": "string"
}
},
"required": [
"const",
"unit"
],
"additionalProperties": {}
},
{
"type": "object",
"properties": {
"expr": {
"type": "string"
},
"unit": {
"type": "string"
}
},
"required": [
"expr",
"unit"
],
"additionalProperties": {}
},
{
"type": "object",
"properties": {
"knob": {
"type": "string"
},
"unit": {
"type": "string"
}
},
"required": [
"knob",
"unit"
],
"additionalProperties": {}
},
{
"type": "object",
"properties": {
"model": {
"type": "string"
},
"knobs": {
"type": "array",
"items": {
"type": "string"
}
},
"unit": {
"type": "string"
}
},
"required": [
"model",
"knobs",
"unit"
],
"additionalProperties": {}
}
]
}
},
"required": [
"e"
],
"additionalProperties": false
},
"output": {
"type": "boolean"
}
}