← All procedures
notify.pushover.cancel
Stop the repeats of a Pushover emergency message, by its receipt or by a tag
CLI- Package
- @procedures/notify · README
- Path
["notify","pushover","cancel"]- CLI
mark notify pushover cancel- As data
{"$proc":["notify","pushover","cancel"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/notify/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["notify","pushover","cancel"], {});
console.log(JSON.stringify(result));From the command line
$ mark notify pushover cancel
As data, in a program
{ "$proc": ["notify", "pushover", "cancel"], "input": {} }Input
Output
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"receipt": {
"description": "The receipt of the message to stop",
"type": "string",
"pattern": "^[A-Za-z0-9]{30}$"
},
"tag": {
"description": "Stop each emergency message of the application with this tag",
"type": "string",
"minLength": 1
},
"tokenEnv": {
"default": "PUSHOVER_APP_TOKEN",
"description": "The name of the environment variable with the API token of the application (default: PUSHOVER_APP_TOKEN)",
"type": "string",
"pattern": "^PUSHOVER_[A-Z0-9_]+$"
},
"timeoutMs": {
"default": 20000,
"description": "The time limit, in milliseconds (default: 20000)",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 120000
}
}
},
"output": {
"type": "object",
"properties": {
"ok": {
"type": "boolean"
}
},
"required": [
"ok"
],
"additionalProperties": {}
}
}