at.happyproto.fleet.getGrowth

Fleet and per-instance growth rates from instance_daily_deltas. Counter resets are excluded by the view, so a wiped volume lowers no rate. Admin only.

Repository @happyproto.at did:plc:mo7vq4jbioxwafy5zkcc3eux namespace authority
Details · query
Kindquery
Authorityfleet.happyproto.at
Indexed
cid bafyreieubcvpvllb6kfggmdkeqb5wo3yclbxner3n6uowlsann6oxtblyi

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "fleetRate": {
      "properties": {
        "metric": {
          "type": "string"
        },
        "perDay": {
          "description": "Fleet-wide daily growth over the window.",
          "type": "integer"
        }
      },
      "required": [
        "metric",
        "perDay"
      ],
      "type": "object"
    },
    "instanceRate": {
      "properties": {
        "instanceId": {
          "type": "string"
        },
        "metric": {
          "type": "string"
        },
        "rate": {
          "description": "Mean daily delta over the window.",
          "type": "integer"
        }
      },
      "required": [
        "instanceId",
        "metric",
        "rate"
      ],
      "type": "object"
    },
    "main": {
      "description": "Fleet and per-instance growth rates from instance_daily_deltas. Counter resets are excluded by the view, so a wiped volume lowers no rate. Admin only.",
      "errors": [
        {
          "description": "This endpoint requires an authenticated caller.",
          "name": "AuthRequired"
        },
        {
          "description": "The caller is not a HappyProto admin.",
          "name": "Forbidden"
        },
        {
          "description": "The telemetry store could not be queried.",
          "name": "Upstream"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "byInstance": {
              "items": {
                "ref": "#instanceRate",
                "type": "ref"
              },
              "type": "array"
            },
            "fleet": {
              "items": {
                "ref": "#fleetRate",
                "type": "ref"
              },
              "type": "array"
            },
            "have": {
              "description": "History available, when accruing.",
              "type": "integer"
            },
            "need": {
              "description": "History required, when accruing.",
              "type": "integer"
            },
            "status": {
              "description": "Why a figure is absent. Branch on this, never on field presence.",
              "knownValues": [
                "ok",
                "accruing",
                "withheld"
              ],
              "type": "string"
            },
            "unit": {
              "knownValues": [
                "days",
                "snapshots"
              ],
              "type": "string"
            },
            "windowDays": {
              "type": "integer"
            }
          },
          "required": [
            "status",
            "fleet",
            "byInstance"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "at.happyproto.fleet.getGrowth",
  "lexicon": 1
}