MEAL
Operations
Every operation on MEAL.
The full operation table for MEAL. Each entry is dispatched through MapEngine::handle_request and matched on operation inside the protocols/meal-lib crate.
Index
| Operation | Summary |
|---|---|
meter | Record a metered event (tokens, seconds, watts) against caller account. |
statement | Generate a statement for an account over a period. |
reconcile | Reconcile metered events against settled payments; reports unbalances. |
Reference
meter
Record a metered event (tokens, seconds, watts) against caller account.
| Field | Value |
|---|---|
| Capability | map.meal.meter |
| Idempotent | No — supply Idempotency-Key for safe retries |
{
"dim": "tokens",
"amount": 1024
}Dispatched through the standard pipeline; see Engine pipeline for the 8 stages.
statement
Generate a statement for an account over a period.
| Field | Value |
|---|---|
| Capability | map.meal.statement |
| Idempotent | Yes |
{
"example": true
}Dispatched through the standard pipeline; see Engine pipeline for the 8 stages.
reconcile
Reconcile metered events against settled payments; reports unbalances.
| Field | Value |
|---|---|
| Capability | map.meal.reconcile |
| Idempotent | No — supply Idempotency-Key for safe retries |
{
"example": true
}Dispatched through the standard pipeline; see Engine pipeline for the 8 stages.