MAP Docs
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

OperationSummary
meterRecord a metered event (tokens, seconds, watts) against caller account.
statementGenerate a statement for an account over a period.
reconcileReconcile metered events against settled payments; reports unbalances.

Reference

meter

Record a metered event (tokens, seconds, watts) against caller account.

FieldValue
Capabilitymap.meal.meter
IdempotentNo — 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.

FieldValue
Capabilitymap.meal.statement
IdempotentYes
{
  "example": true
}

Dispatched through the standard pipeline; see Engine pipeline for the 8 stages.

reconcile

Reconcile metered events against settled payments; reports unbalances.

FieldValue
Capabilitymap.meal.reconcile
IdempotentNo — supply Idempotency-Key for safe retries
{
  "example": true
}

Dispatched through the standard pipeline; see Engine pipeline for the 8 stages.

On this page