Skip to content
SegmentStream/ Docs

Loading documentation…

↑ ↓ to navigate  ↵ to open  Esc to close
Website Console
Section menu

Inspect ontology operation performance

GET /api/workspaces/{workspaceId}/ontology/observability

Endpoint

GET/api/workspaces/{workspaceId}/ontology/observability

Find slow or failing ontology operations before requesting their time series. This is a repeatable read. See observability_getOntologyOperationSeries. Required personal key scopes: workspace:view, deployments:logs:read.

Authorization

Bearer token · workspace:view · deployments:logs:read

Parameters

workspaceId path · uuid · required
Workspace UUID returned by list workspaces.
window query · string · optional
Reporting interval used to aggregate observations. Allowed values: 1h, 24h, 7d, 30d
from query · string · optional
Start of the requested reporting interval.
to query · string · optional
End of the requested reporting interval.
sort query · string · optional
Field used to rank results. Allowed values: p95, total, calls, errors
minCalls query · string · optional
Rows with fewer calls are left out; 100 by default.
API-Version header · string · optional
Optional platform API major version. Omit to use the current default. Allowed values: 1

Responses

200 Success
application/json schema
{
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "description": "Workspace UUID returned by list workspaces."
    },
    "state": {
      "type": "string",
      "enum": [
        "ready",
        "not_deployed"
      ],
      "description": "`not_deployed` when the workspace has no hosted app with an ontology yet; rows are empty."
    },
    "source": {
      "type": "string",
      "enum": [
        "vercel"
      ],
      "description": "Origin of the data or source artifact used for deployment."
    },
    "sourceAt": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "When the provider answered; results are reused for a few minutes."
    },
    "window": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "description": "Inclusive start, aligned to `bucketSeconds`."
        },
        "to": {
          "type": "string",
          "description": "Exclusive end, aligned to `bucketSeconds`; the last bucket may still be in progress."
        },
        "bucketSeconds": {
          "type": "integer",
          "description": "Width of one time-series bucket in seconds."
        },
        "preset": {
          "type": "string",
          "enum": [
            "1h",
            "24h",
            "7d",
            "30d"
          ],
          "description": "Predefined configuration or reporting window selected."
        }
      },
      "required": [
        "from",
        "to",
        "bucketSeconds"
      ],
      "additionalProperties": false,
      "description": "Reporting interval used to aggregate observations."
    },
    "previousWindow": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "from": {
              "type": "string",
              "description": "Start of the requested reporting interval."
            },
            "to": {
              "type": "string",
              "description": "End of the requested reporting interval."
            }
          },
          "required": [
            "from",
            "to"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Earlier comparison period of the same duration."
    },
    "sort": {
      "type": "string",
      "enum": [
        "p95",
        "total",
        "calls",
        "errors"
      ],
      "description": "Field used to rank results."
    },
    "minCalls": {
      "type": "integer",
      "minimum": 0,
      "description": "Minimum number of calls for an operation to appear in the results."
    },
    "totals": {
      "type": "object",
      "properties": {
        "calls": {
          "type": "integer",
          "minimum": 0,
          "description": "Number of calls observed during the interval."
        },
        "totalMs": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "enum": [
                "Infinity",
                "-Infinity",
                "NaN"
              ]
            }
          ],
          "allOf": [
            {
              "description": "Total duration of the recorded calls, in milliseconds."
            }
          ]
        }
      },
      "required": [
        "calls",
        "totalMs"
      ],
      "additionalProperties": false,
      "description": "Every call the ontology service served in the window, itemized or not."
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "operation": {
            "type": "string",
            "description": "`entity:action`, `entity:find`, `query_metrics`, `workflow:name`, `mcp`, `system:name`,\n`unmapped`."
          },
          "kind": {
            "type": "string",
            "enum": [
              "action",
              "find",
              "list",
              "get",
              "history",
              "related",
              "file",
              "query_metrics",
              "workflow",
              "webhook",
              "mcp",
              "system",
              "unmapped"
            ],
            "description": "Discriminator identifying the kind of entry."
          },
          "entity": {
            "type": "string",
            "allOf": [
              {
                "description": "Entity addressed by this request or described in the result."
              }
            ]
          },
          "action": {
            "type": "string",
            "description": "Action requested or recorded for the target."
          },
          "calls": {
            "type": "integer",
            "minimum": 0,
            "description": "Number of calls observed during the interval."
          },
          "errors4xx": {
            "type": "integer",
            "minimum": 0,
            "description": "Requests that returned a 4xx HTTP status."
          },
          "errors5xx": {
            "type": "integer",
            "minimum": 0,
            "description": "Requests that returned a 5xx HTTP status."
          },
          "p50Ms": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "Null without traffic or when listed in `unavailable`."
          },
          "p95Ms": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "95th percentile duration in milliseconds."
          },
          "p99Ms": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "99th percentile duration in milliseconds."
          },
          "totalMs": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ],
            "allOf": [
              {
                "description": "The sum of the calls' durations."
              }
            ]
          },
          "totalShare": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ],
            "allOf": [
              {
                "description": "`totalMs` over the window's `totals.totalMs`, from 0 to 1."
              }
            ]
          },
          "cpuP95Ms": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "95th percentile CPU time per call, in milliseconds."
          },
          "coldShare": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "enum": [
                  "Infinity",
                  "-Infinity",
                  "NaN"
                ]
              }
            ],
            "allOf": [
              {
                "description": "Calls that started a cold instance, over calls."
              }
            ]
          },
          "coldP95Ms": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "95th percentile duration of cold starts, in milliseconds."
          },
          "responseP95Bytes": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "95th percentile response size in bytes."
          },
          "p95DeltaMs": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "p95 against the previous window of equal length; null without a previous p95."
          },
          "unavailable": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "p50",
                "p95",
                "p99",
                "cpuP95",
                "coldP95",
                "responseP95",
                "p95Delta"
              ]
            },
            "description": "Figures that could not be computed exactly, so they are null rather than approximated: a percentile of several request paths that cannot be queried together, or a previous window the provider no longer retains."
          }
        },
        "required": [
          "operation",
          "kind",
          "calls",
          "errors4xx",
          "errors5xx",
          "p50Ms",
          "p95Ms",
          "p99Ms",
          "totalMs",
          "totalShare",
          "cpuP95Ms",
          "coldShare",
          "coldP95Ms",
          "responseP95Bytes",
          "p95DeltaMs",
          "unavailable"
        ],
        "additionalProperties": false
      },
      "description": "Result rows for the selected fields and interval."
    },
    "hiddenRows": {
      "type": "integer",
      "minimum": 0,
      "description": "Rows left out for having fewer than `minCalls` calls."
    },
    "truncated": {
      "type": "boolean",
      "description": "The provider returned its maximum number of request paths, so operations with the least traffic may be missing from `rows` while still counted in `totals`."
    }
  },
  "required": [
    "workspaceId",
    "state",
    "source",
    "sourceAt",
    "window",
    "previousWindow",
    "sort",
    "minCalls",
    "totals",
    "rows",
    "hiddenRows",
    "truncated"
  ],
  "additionalProperties": false
}
Full schema and referenced types ↗
Example
{
  "workspaceId": "00000000-0000-4000-8000-000000000001",
  "state": "ready",
  "source": "vercel",
  "sourceAt": "2026-11-15T12:00:00Z",
  "window": {
    "from": "2026-11-15T11:00:00Z",
    "to": "2026-11-15T12:00:00Z",
    "bucketSeconds": 300
  },
  "previousWindow": null,
  "sort": "p95",
  "minCalls": 0,
  "totals": {
    "calls": 0,
    "totalMs": 0
  },
  "rows": [],
  "hiddenRows": 0,
  "truncated": false
}
Response headers
API-Version
Supported platform API major version.
RateLimit
Remaining quota (r) and seconds until reset (t), when admission is available.
RateLimit-Policy
Request quota (q) and window in seconds (w).
Deprecation
Present when the operation is deprecated. RFC 9745 date in seconds since the Unix epoch.
Sunset
Present when retirement is scheduled. HTTP date of planned removal, per RFC 8594.
400 Error
application/json schema
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
Full schema and referenced types ↗
Response headers
API-Version
Supported platform API major version.
RateLimit
Remaining quota (r) and seconds until reset (t), when admission is available.
RateLimit-Policy
Request quota (q) and window in seconds (w).
401 Error
application/json schema
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
Full schema and referenced types ↗
Response headers
API-Version
Supported platform API major version.
RateLimit
Remaining quota (r) and seconds until reset (t), when admission is available.
RateLimit-Policy
Request quota (q) and window in seconds (w).
403 Error
application/json schema
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
Full schema and referenced types ↗
Response headers
API-Version
Supported platform API major version.
RateLimit
Remaining quota (r) and seconds until reset (t), when admission is available.
RateLimit-Policy
Request quota (q) and window in seconds (w).
404 Error
application/json schema
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
Full schema and referenced types ↗
Response headers
API-Version
Supported platform API major version.
RateLimit
Remaining quota (r) and seconds until reset (t), when admission is available.
RateLimit-Policy
Request quota (q) and window in seconds (w).
406 Unsupported platform API version
application/json schema
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
Full schema and referenced types ↗
Response headers
API-Version
Supported platform API major version.
RateLimit
Remaining quota (r) and seconds until reset (t), when admission is available.
RateLimit-Policy
Request quota (q) and window in seconds (w).
409 Error
application/json schema
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
Full schema and referenced types ↗
Response headers
API-Version
Supported platform API major version.
RateLimit
Remaining quota (r) and seconds until reset (t), when admission is available.
RateLimit-Policy
Request quota (q) and window in seconds (w).
429 Request limit reached
application/json schema
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
Full schema and referenced types ↗
Response headers
Retry-After
Seconds to wait before retrying the request.
API-Version
Supported platform API major version.
RateLimit
Remaining quota (r) and seconds until reset (t), when admission is available.
RateLimit-Policy
Request quota (q) and window in seconds (w).
500 Error
application/json schema
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
Full schema and referenced types ↗
Response headers
API-Version
Supported platform API major version.
RateLimit
Remaining quota (r) and seconds until reset (t), when admission is available.
RateLimit-Policy
Request quota (q) and window in seconds (w).
503 Error
application/json schema
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
Full schema and referenced types ↗
Response headers
API-Version
Supported platform API major version.
RateLimit
Remaining quota (r) and seconds until reset (t), when admission is available.
RateLimit-Policy
Request quota (q) and window in seconds (w).