space.highport.manage.getSiteTraffic

lexicons.highport.space

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "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.",
      "errors": [
        {
          "description": "Not a syntactically valid, non-reserved, public-suffix-safe domain. Distinct from DomainNotFound: the string is not a hostname at all.",
          "name": "InvalidDomain"
        },
        {
          "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": "DomainNotFound"
        },
        {
          "description": "This deployment has no analytics store configured, so no traffic was ever recorded.",
          "name": "AnalyticsDisabled"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "buckets": {
              "description": "Hourly buckets, oldest first.",
              "items": {
                "description": "One hour of a domain's traffic.",
                "properties": {
                  "bucket": {
                    "description": "The hour this bucket starts.",
                    "format": "datetime",
                    "type": "string"
                  },
                  "bytesBilled": {
                    "description": "Body bytes plus the per-response header estimate.",
                    "type": "integer"
                  },
                  "bytesBody": {
                    "description": "Response body bytes, as the edge logged them.",
                    "type": "integer"
                  },
                  "requests": {
                    "description": "Responses in the hour.",
                    "type": "integer"
                  }
                },
                "required": [
                  "bucket",
                  "requests",
                  "bytesBody",
                  "bytesBilled"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "bytesBilled": {
              "description": "Total billed bytes over the range.",
              "type": "integer"
            },
            "bytesBilledToVisitors": {
              "description": "How much of bytesBilled an authenticated visitor paid for rather than the owner. Zero unless the domain is on the sender-pays policy.",
              "type": "integer"
            },
            "domain": {
              "type": "string"
            },
            "headerEstimateBytes": {
              "description": "The flat per-response constant added to every logged body size. Every byte figure here is an estimate by this much per response.",
              "type": "integer"
            },
            "statuses": {
              "description": "The status mix, with the crawler share alongside it.",
              "items": {
                "description": "One status code's share of the requests and of the bytes.",
                "properties": {
                  "botRequests": {
                    "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.",
                    "type": "integer"
                  },
                  "bytesBilled": {
                    "description": "Billed bytes.",
                    "type": "integer"
                  },
                  "requests": {
                    "description": "Responses with this status.",
                    "type": "integer"
                  },
                  "status": {
                    "description": "The HTTP status.",
                    "type": "integer"
                  }
                },
                "required": [
                  "status",
                  "requests",
                  "bytesBilled",
                  "botRequests"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "topPaths": {
              "description": "The busiest paths over the range.",
              "items": {
                "description": "One path and what it cost.",
                "properties": {
                  "bytesBilled": {
                    "description": "Billed bytes.",
                    "type": "integer"
                  },
                  "path": {
                    "description": "The request path.",
                    "type": "string"
                  },
                  "requests": {
                    "description": "Responses.",
                    "type": "integer"
                  }
                },
                "required": [
                  "path",
                  "requests",
                  "bytesBilled"
                ],
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "domain",
            "bytesBilled",
            "bytesBilledToVisitors",
            "headerEstimateBytes",
            "buckets",
            "topPaths",
            "statuses"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "domain": {
            "description": "The registered hostname. Must be registered to the calling identity.",
            "maxLength": 253,
            "type": "string"
          },
          "from": {
            "description": "Inclusive lower bound. Defaults to 30 days ago.",
            "format": "datetime",
            "type": "string"
          },
          "to": {
            "description": "Exclusive upper bound. Defaults to now.",
            "format": "datetime",
            "type": "string"
          },
          "topPaths": {
            "default": 20,
            "description": "How many of the busiest paths to return.",
            "maximum": 100,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "domain"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "space.highport.manage.getSiteTraffic",
  "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
bafyreicfpgybh37m3b7zi7q6me6a2b24l5xisifqecnq3ejqaqveze3scm
Indexed At
2026-09-04 22:52 UTC
AT-URI
at://did:plc:ciygg5hma4q7ah2kxaszkyob/com.atproto.lexicon.schema/space.highport.manage.getSiteTraffic

Version History (4 versions)

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Identities that signed in to one of the caller's domains, and what each spent there. Anonymous traffic is not listed, and no query links a visitor across domains.

  • Domains ranked by successful, non-crawler requests over a trailing window. Safe to publish: a domain is left out if it is not serving, has a malware finding, or is denylisted in any way (directly, by pattern, or through…

Lexicon Garden

@