space.highport.manage.getSiteTraffic

lexicons.highport.space

{
  "id": "space.highport.manage.getSiteTraffic",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "InvalidDomain",
          "description": "Not a syntactically valid, non-reserved, public-suffix-safe domain. Distinct from DomainNotFound: the string is not a hostname at all."
        },
        {
          "name": "DomainNotFound",
          "description": "No such domain, or it is not registered to the calling identity. The two are one answer so the method is not an existence oracle."
        },
        {
          "name": "AnalyticsDisabled",
          "description": "This deployment has no analytics store configured, so no traffic was ever recorded."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "domain",
            "bytesBilled",
            "bytesBilledToVisitors",
            "headerEstimateBytes",
            "buckets",
            "topPaths",
            "statuses"
          ],
          "properties": {
            "domain": {
              "type": "string"
            },
            "buckets": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "bucket",
                  "requests",
                  "bytesBody",
                  "bytesBilled"
                ],
                "properties": {
                  "bucket": {
                    "type": "string",
                    "format": "datetime",
                    "description": "The hour this bucket starts."
                  },
                  "requests": {
                    "type": "integer",
                    "description": "Responses in the hour."
                  },
                  "bytesBody": {
                    "type": "integer",
                    "description": "Response body bytes, as the edge logged them."
                  },
                  "botRequests": {
                    "type": "integer",
                    "description": "How many of requests came from a client classified as a crawler, which is a subset of it and not a sibling. There is no byte-level equivalent: the bucket carries no client_class split of bytesBody or bytesBilled. Absent from a deployment that does not report the split, which a reader shows as no answer rather than as no crawlers."
                  },
                  "bytesBilled": {
                    "type": "integer",
                    "description": "Body bytes plus the per-response header estimate."
                  }
                },
                "description": "One hour of a domain's traffic."
              },
              "description": "Hourly buckets, oldest first."
            },
            "records": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "recordCid",
                  "firstSeen",
                  "requests",
                  "bytesBilled"
                ],
                "properties": {
                  "lastSeen": {
                    "type": "string",
                    "format": "datetime",
                    "description": "The last, which with firstSeen is how long the version was serving inside the range — what makes one version's byte figure comparable to another's. Absent where the answer is not known, which a reader shows as still serving rather than as an interval it was not given."
                  },
                  "requests": {
                    "type": "integer",
                    "description": "Responses."
                  },
                  "firstSeen": {
                    "type": "string",
                    "format": "datetime",
                    "description": "The first response inside the range served from this version."
                  },
                  "recordCid": {
                    "type": "string",
                    "format": "cid",
                    "description": "The site record the serving snapshot was built from. Every response already names it, so the split needs nothing tagged."
                  },
                  "bytesBilled": {
                    "type": "integer",
                    "description": "Billed bytes."
                  }
                },
                "description": "One published version, and the traffic the snapshots built from it served."
              },
              "description": "Which published version of the site record served the traffic, heaviest first. Bounded by topRecords, so a domain republished more often than that has versions this does not list. Absent from a deployment that does not report the split."
            },
            "refusals": {
              "type": "object",
              "required": [
                "requests"
              ],
              "properties": {
                "requests": {
                  "type": "integer",
                  "description": "Responses refused because the payer's allowance for the period was spent. The same responses the status mix counts as 402, taken from the same read so the two figures cannot disagree."
                },
                "estimatedBytes": {
                  "type": "integer",
                  "description": "What serving those responses instead would have charged the owner. Absent unless the deployment records it: a refusal transferred no body, so its cost is in no logged size, and only the edge knows how large the path it refused would have been."
                }
              },
              "description": "What the bandwidth allowance refused over the range, and what serving it would have cost. Absent from a deployment that does not report it."
            },
            "statuses": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "status",
                  "requests",
                  "bytesBilled",
                  "botRequests"
                ],
                "properties": {
                  "status": {
                    "type": "integer",
                    "description": "The HTTP status."
                  },
                  "requests": {
                    "type": "integer",
                    "description": "Responses with this status."
                  },
                  "botRequests": {
                    "type": "integer",
                    "description": "How many of those came from a client classified as a crawler. Crawler traffic is billed, because it is real egress and the alternative rewards user-agent spoofing."
                  },
                  "bytesBilled": {
                    "type": "integer",
                    "description": "Billed bytes."
                  }
                },
                "description": "One status code's share of the requests and of the bytes."
              },
              "description": "The status mix, with the crawler share alongside it."
            },
            "topPaths": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "path",
                  "requests",
                  "bytesBilled"
                ],
                "properties": {
                  "path": {
                    "type": "string",
                    "description": "The request path."
                  },
                  "requests": {
                    "type": "integer",
                    "description": "Responses."
                  },
                  "bytesBilled": {
                    "type": "integer",
                    "description": "Billed bytes."
                  }
                },
                "description": "One path and what it cost."
              },
              "description": "The busiest paths over the range."
            },
            "bytesBilled": {
              "type": "integer",
              "description": "Total billed bytes over the range."
            },
            "headerEstimateBytes": {
              "type": "integer",
              "description": "The flat per-response constant added to every logged body size. Every byte figure here is an estimate by this much per response."
            },
            "bytesBilledToVisitors": {
              "type": "integer",
              "description": "How much of bytesBilled an authenticated visitor paid for rather than the owner. Zero unless the domain is on the sender-pays policy."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "domain"
        ],
        "properties": {
          "to": {
            "type": "string",
            "format": "datetime",
            "description": "Exclusive upper bound. Defaults to now."
          },
          "from": {
            "type": "string",
            "format": "datetime",
            "description": "Inclusive lower bound. Defaults to 30 days ago."
          },
          "domain": {
            "type": "string",
            "maxLength": 253,
            "description": "The registered hostname. Must be registered to the calling identity."
          },
          "topPaths": {
            "type": "integer",
            "default": 20,
            "maximum": 100,
            "minimum": 0,
            "description": "How many of the busiest paths to return."
          },
          "topRecords": {
            "type": "integer",
            "default": 20,
            "maximum": 100,
            "minimum": 0,
            "description": "How many published record versions to return. A record CID is not a small set: a domain republished often has one per publish, so this is a top-N and not the whole history."
          }
        }
      },
      "description": "Traffic to one domain the caller owns, over a range: requests and bytes per hour, the busiest paths, and the status mix. Byte figures include a flat per-response header estimate, because the edge's access log records the response body only."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}

Validate Record

Validate a record against space.highport.manage.getSiteTraffic

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:ciygg5hma4q7ah2kxaszkyob
CID
bafyreiebijv5ixkrgdnb6nkdmrdyyuouhrlf4ipd7h5tfapirg3u4pf3fm
Indexed At
2026-09-12 02:53 UTC
AT-URI
at://did:plc:ciygg5hma4q7ah2kxaszkyob/com.atproto.lexicon.schema/space.highport.manage.getSiteTraffic

Version History (4 versions)

Lexicon Garden

@