Allocation

PartDraftv1.0.0-rc.2

An allocation: where and when an activity happens, and the operating states its sources run in there.

https://opendevelopmentstandards.org/schema/1.0.0-rc.2/core/Allocation.json

Fields

  • id
    textnot empty

    The record's id: unique within the document.

  • feature

    The feature the activity happens at.

  • group

    The group the activity happens at, when it covers several features.

  • basis
    One ofthe codes below

    Whether the activity is planned here or tested.

    planned
    The project intends to carry out the activity here.
    scenario
    A what-if: the evaluation tests the activity here, and nobody has said it will happen.
  • interval

    When the activity happens here, when it differs from the activity's own.

  • count
    whole numberat least 1

    How many of the activity run here at once, such as two rigs.

  • states
    List ofStateShare

    The operating states the sources run in, with the share of the time in each.

  • description
    text

    Notes on the allocation.

  • Exactly one of feature or group.

StateShare

One operating state an allocation uses.

  • stateRequired

    The operating state.

  • share

    The share of the time the source runs in it, in percent. Leave it out when it runs in it all the time.

  • period

    The window that repeats when the source runs in it, such as day-time only.

Links

Examples

An id that another example defines opens that record.

Example 2

{
  "id": "allocation-1",
  "feature": "feature-wellsite",
  "basis": "planned",
  "interval": {
    "start": "2026-09-01T00:00:00-06:00"
  },
  "states": [
    {
      "state": "state-loaded",
      "share": {
        "amount": 80,
        "unit": "%"
      }
    },
    {
      "state": "state-idle",
      "share": {
        "amount": 20,
        "unit": "%"
      }
    }
  ]
}
Show 1 more example

Example 1

{
  "feature": "feature-wellsite"
}

Changes and file

Changes

  1. 0.1.0 First version.

Schema file

Show the JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://opendevelopmentstandards.org/schema/1.0.0-rc.2/core/Allocation.json",
  "title": "Allocation",
  "description": "An allocation: where and when an activity happens, and the operating states its sources run in there.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "description": "The record's id: unique within the document."
    },
    "feature": {
      "type": "string",
      "minLength": 1,
      "x-ods-ref": "Feature",
      "description": "The feature the activity happens at."
    },
    "group": {
      "type": "string",
      "minLength": 1,
      "x-ods-ref": "Group",
      "description": "The group the activity happens at, when it covers several features."
    },
    "basis": {
      "type": "string",
      "enum": [
        "planned",
        "scenario"
      ],
      "description": "Whether the activity is planned here or tested.",
      "x-ods-options": [
        {
          "value": "planned",
          "title": "Planned",
          "description": "The project intends to carry out the activity here."
        },
        {
          "value": "scenario",
          "title": "Scenario",
          "description": "A what-if: the evaluation tests the activity here, and nobody has said it will happen."
        }
      ]
    },
    "interval": {
      "$ref": "Interval.json",
      "description": "When the activity happens here, when it differs from the activity's own."
    },
    "count": {
      "type": "integer",
      "minimum": 1,
      "description": "How many of the activity run here at once, such as two rigs."
    },
    "states": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StateShare"
      },
      "description": "The operating states the sources run in, with the share of the time in each."
    },
    "description": {
      "type": "string",
      "description": "Notes on the allocation."
    }
  },
  "oneOf": [
    {
      "properties": {
        "feature": true
      },
      "required": [
        "feature"
      ]
    },
    {
      "properties": {
        "group": true
      },
      "required": [
        "group"
      ]
    }
  ],
  "patternProperties": {
    "^x-": {}
  },
  "unevaluatedProperties": false,
  "$defs": {
    "StateShare": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "minLength": 1,
          "x-ods-ref": "OperatingState",
          "description": "The operating state."
        },
        "share": {
          "$ref": "Value.json",
          "description": "The share of the time the source runs in it, in percent. Leave it out when it runs in it all the time."
        },
        "period": {
          "type": "string",
          "minLength": 1,
          "x-ods-ref": "Period",
          "description": "The window that repeats when the source runs in it, such as day-time only."
        }
      },
      "required": [
        "state"
      ],
      "description": "One operating state an allocation uses.",
      "patternProperties": {
        "^x-": {}
      },
      "unevaluatedProperties": false
    }
  },
  "examples": [
    {
      "feature": "feature-wellsite"
    },
    {
      "id": "allocation-1",
      "feature": "feature-wellsite",
      "basis": "planned",
      "interval": {
        "start": "2026-09-01T00:00:00-06:00"
      },
      "states": [
        {
          "state": "state-loaded",
          "share": {
            "amount": 80,
            "unit": "%"
          }
        },
        {
          "state": "state-idle",
          "share": {
            "amount": 20,
            "unit": "%"
          }
        }
      ]
    }
  ],
  "x-ods-status": "draft",
  "x-ods-kind": "part",
  "x-ods-module": "core",
  "x-ods-changes": {
    "0.1.0": "First version."
  }
}