Skip to main content

Module workload

Module workload 

Source
Expand description

ai.hyprstream.placement.workload — a workload→node placement decision.

{
  "lexicon": 1,
  "id": "ai.hyprstream.placement.workload",
  "defs": { "main": { "type": "record", "key": "tid", "record": {
    "type": "object",
    "required": ["repo", "workload", "node", "createdAt"],
    "properties": {
      "repo":      { "type": "string", "format": "at-uri" },
      "workload":  { "type": "string" },
      "node":      { "type": "string" },
      "group":     { "type": "string" },
      "createdAt": { "type": "string", "format": "datetime" }
    }
}}}

workload is a model at-uri or shard id (free-form string). node is the DID of the placed node. group is the optional consent group the placement was made under.

Structs§

WorkloadRecord
An ai.hyprstream.placement.workload record.

Constants§

COLLECTION_NSID
The NSID of this record type.