---
title: "platform.provider-state@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/platform.provider-state"
updated: null
---

# platform.provider-state@1 · OpenVibe.Services

HTML: [platform.provider-state@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/platform.provider-state)

# ProviderState `platform.provider-state@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: network
- Visibility: first-party
- Status: active
- Compatibility: backward
- Decision: [ADR-034](/docs/adr/ADR-034)
- Schema: [`https://openvibe.network/contracts/platform/provider-state.v1.json`](/docs/contracts/platform.provider-state.json)

A provider's usage against its allowances this billing period and its forecast, used to compute marginal cost (roadmap WS-Z3 task 5).

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `provider` | string | yes |  |  |
| `period_start` | string | yes |  | - `format date-time` |
| `period_end` | string | yes |  | - `format date-time` |
| `usage` | object | yes | used units per rate-card metric |  |
| `forecast` | object |  | projected units at period end |  |
| `reserve` | object |  | share of each free allowance kept for higher-priority classes |  |
| `health` | enum |  |  | - `one of "up", "degraded", "down"` |
| `updated_at` | string | yes |  | - `format date-time` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: mid-month

~~~~
{
  "provider": "example-queues",
  "period_start": "2026-09-01T00:00:00Z",
  "period_end": "2026-10-01T00:00:00Z",
  "usage": {
    "queue-operation-64kb": 430000
  },
  "forecast": {
    "queue-operation-64kb": 1930000
  },
  "reserve": {
    "queue-operation-64kb": 0.2
  },
  "health": "up",
  "updated_at": "2026-09-28T23:00:00Z"
}
~~~~

Rejected: no-usage

~~~~
{
  "provider": "p",
  "period_start": "2026-09-28T23:00:00Z",
  "period_end": "2026-09-28T23:00:00Z",
  "updated_at": "2026-09-28T23:00:00Z"
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('platform.provider-state@1', value);   // { valid, errors: [{ path, message }] }
~~~~
