Scaleway Cockpit
@sntxrr/scaleway-cockpitv2026.07.19.2
01README
Manage a Scaleway Cockpit (Observability) data source — sync state, create metrics/logs/traces data sources, delete, and discover data sources and tokens in a region, via the Cockpit API with X-Auth-Token auth.
02Models
@sntxrr/scaleway-cockpitv2026.07.19.2scaleway_cockpit.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| secretKey | string | Scaleway API secret key. Wire with ${{ vault.get(scaleway, SCW_SECRET_KEY) }}. |
| projectId | string | Scaleway Project ID that owns the Cockpit data sources and tokens. |
| region | string | Region, e.g. fr-par, nl-ams, pl-waw. |
| dataSourceId? | string | ID of the Cockpit data source this model manages. Optional — `create` |
| endpoint? | string | Override the API host. Defaults to https://api.scaleway.com. |
fn sync()
Fetch the data source's current state (GetDataSource).
fn create(name: string, type: enum, retentionDays?: number)
Provision a new Cockpit data source (CreateDataSource) and snapshot it.
| Argument | Type | Description |
|---|---|---|
| name | string | Name of the new data source. |
| type | enum | Data source type: metrics, logs, or traces. |
| retentionDays? | number | Data retention period in days. Optional; a plan default applies. |
fn delete()
Deprovision the Cockpit data source (DeleteDataSource).
fn list()
Discover all Cockpit data sources in the region (factory).
Resources
data-source(infinite)— Snapshot of the Cockpit data source's state
token(infinite)— Snapshot of a Cockpit token's non-secret metadata (never the secret key)
03Previous Versions
2026.07.19.1
2026.07.18.2
2026.07.18.1
04Stats
A
100 / 100
Downloads
0
Archive size
10.1 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
Repository
https://github.com/sntxrr/swamp-scaleway05Platforms
06Labels