Skip to content
Fourohtwo

finops.halowerk.com/v1/ec2-billable-session-clock

From supplied original state changes and reboot markers derive running/hibernation-stopping duration, closed billable sessions and 60second minimum per start. Reboot never restarts the minimum. Pending/stopped/shutting-down/terminated are unbilled; ordinary stopping unbilled. Missing stopping kind and open final bills remain unknown; known early conflicts remain negative. No cloud operation, provi

BaseAnswering
POSThttps://finops.halowerk.com/v1/ec2-billable-session-clock

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://finops.halowerk.com/v1/ec2-billable-session-clock", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"events":[{"at":0,"state":"pending","stop_kind":null},{"at":1,"state":"running","stop_kind":null},{"at":5,"state":"reboot","stop_kind":null},{"at":21,"state":"stopping","stop_kind":"normal"},{"at":31,"state":"stopped","stop_kind":null},{"at":120,"state":"pending","stop_kind":null},{"at":121,"state":"running","stop_kind":null},{"at":140,"state":"stopping","stop_kind":"normal"},{"at":150,"state":"s),
});
console.log(await res.json());

Example input

{"events":[{"at":0,"state":"pending","stop_kind":null},{"at":1,"state":"running","stop_kind":null},{"at":5,"state":"reboot","stop_kind":null},{"at":21,"state":"stopping","stop_kind":"normal"},{"at":31,"state":"stopped","stop_kind":null},{"at":120,"state":"pending","stop_kind":null},{"at":121,"state":"running","stop_kind":null},{"at":140,"state":"stopping","stop_kind":"normal"},{"at":150,"state":"s