{"openapi":"3.1.0","x-anyshift-query-language":{"version":"1.1","docsUrl":"https://docs.anyshift.io/pages/product/integration/graph_query_language","grammar":"SELECT <*|count(*)> FROM <table> [WHERE k = v [AND ...]] [LIMIT n] [OFFSET n]","selectors":["*","count(*)"],"selectorAliases":["count(1)"],"valueSyntax":"Values may be bare words or single- or double-quoted strings.","tables":[{"name":"resolve","aliases":["search"],"intent":"resolve","summary":"Resolve a resource name or fragment to ranked current graph resources.","filters":[{"name":"term","type":"string","description":"Resource name or fragment to resolve.","required":true}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Resolve resources","description":"Return ranked candidates for a resource name or fragment.","example":"SELECT * FROM resolve WHERE term = checkout LIMIT 10"}]},{"name":"events","aliases":["event"],"intent":"events","summary":"Read the infrastructure change-event timeline.","filters":[{"name":"type","type":"string","description":"Event type or type fragment, such as oom or scaling."},{"name":"target","type":"string","description":"Resource name or fragment."},{"name":"namespace","type":"string","description":"Kubernetes namespace."},{"name":"noise","type":"enum","description":"Whether to include noisy events.","values":[{"value":"signal","description":"Return signal events only.","aliases":["false","exclude"]},{"value":"all","description":"Include noisy events.","aliases":["true","include"]}]},{"name":"since","type":"duration","description":"Relative lookback such as 30m, 2h, 1d, or today."}],"pagination":{"limit":true,"offset":true},"forms":[{"name":"Recent resource events","description":"Read recent events for a resource inside a time window.","example":"SELECT * FROM events WHERE target = checkout AND since = 2h LIMIT 20"}]},{"name":"resources","aliases":["resource","inventory"],"intent":"inventory","summary":"Count and sample current resources of one graph resource type.","filters":[{"name":"type","type":"string","description":"Graph resource type, such as service or deployment.","required":true}],"pagination":{"limit":true,"offset":true},"forms":[{"name":"Resource inventory","description":"Return the inventory for one resource type.","example":"SELECT * FROM resources WHERE type = deployment LIMIT 50"}]},{"name":"connections","aliases":["connection","deps"],"intent":"connections","summary":"Inspect direct upstream and downstream relationships for a resource.","filters":[{"name":"resource","type":"string","description":"Resource name or identifier.","required":true}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Direct connections","description":"Return the resource and its direct graph neighbors.","example":"SELECT * FROM connections WHERE resource = checkout LIMIT 50"}]},{"name":"hotspots","aliases":["hotspot"],"intent":"hotspots","summary":"Rank noisy resources, namespaces, alert rules, or alerting workloads.","filters":[{"name":"type","type":"string","description":"Event type or type fragment."},{"name":"by","type":"enum","description":"Ranking dimension.","values":[{"value":"resource","description":"Rank resources.","aliases":["resources"]},{"value":"namespace","description":"Rank namespaces.","aliases":["namespaces","ns"]},{"value":"alertrule","description":"Rank firing alert rules.","aliases":["alertrules","rule"]},{"value":"alertworkload","description":"Rank workloads with firing alerts.","aliases":["alertworkloads","workload"]}]},{"name":"namespace","type":"string","description":"Kubernetes namespace scope."},{"name":"noise","type":"enum","description":"Whether to include noisy events.","values":[{"value":"signal","description":"Return signal events only.","aliases":["false","exclude"]},{"value":"all","description":"Include noisy events.","aliases":["true","include"]}]},{"name":"since","type":"duration","description":"Relative lookback such as 30m, 2h, 1d, or today."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Resource hotspots","description":"Rank resources by recent event activity.","example":"SELECT * FROM hotspots WHERE by = resource AND since = 24h LIMIT 10"}]},{"name":"incidents","aliases":["incident"],"intent":"incident","summary":"Reconstruct a correlated incident around a target or correlation identifier.","filters":[{"name":"target","type":"string","description":"Resource name or fragment."},{"name":"id","type":"string","description":"Correlation identifier."},{"name":"type","type":"string","description":"Optional event type filter."}],"pagination":{"limit":false,"offset":false},"forms":[{"name":"Incident by target","description":"At least one of target or id is required.","example":"SELECT * FROM incidents WHERE target = checkout"},{"name":"Incident by correlation id","description":"Load one exact correlation group.","example":"SELECT * FROM incidents WHERE id = incident-123"}]},{"name":"failures","aliases":[],"intent":"failures","summary":"Read recent failure-class infrastructure events.","filters":[{"name":"target","type":"string","description":"Resource name or fragment."},{"name":"namespace","type":"string","description":"Kubernetes namespace."},{"name":"since","type":"duration","description":"Relative lookback such as 30m, 2h, 1d, or today."}],"pagination":{"limit":true,"offset":true},"forms":[{"name":"Recent failures","description":"Read failures for a target, namespace, or the whole project.","example":"SELECT * FROM failures WHERE namespace = commerce AND since = 2h LIMIT 20"}]},{"name":"deployments","aliases":["deployment","rollouts"],"intent":"deployments","summary":"Read recent workload deployments and image changes.","filters":[{"name":"target","type":"string","description":"Workload name or fragment."},{"name":"namespace","type":"string","description":"Kubernetes namespace."},{"name":"since","type":"duration","description":"Relative lookback such as 30m, 2h, 1d, or today."}],"pagination":{"limit":true,"offset":true},"forms":[{"name":"Recent deployments","description":"Read deployments for a target, namespace, or the whole project.","example":"SELECT * FROM deployments WHERE namespace = commerce AND since = 24h LIMIT 20"}]},{"name":"audit","aliases":["changes"],"intent":"audit","summary":"Read configuration, identity, and infrastructure audit events.","filters":[{"name":"target","type":"string","description":"Resource name or fragment."},{"name":"namespace","type":"string","description":"Kubernetes namespace."},{"name":"type","type":"string","description":"Audit event type or fragment, such as rbac."},{"name":"since","type":"duration","description":"Relative lookback such as 30m, 2h, 1d, or today."}],"pagination":{"limit":true,"offset":true},"forms":[{"name":"RBAC audit","description":"Read recent RBAC-related changes.","example":"SELECT * FROM audit WHERE type = rbac AND since = 24h LIMIT 20"}]},{"name":"nodes","aliases":["node"],"intent":"nodes","summary":"Read node lifecycle and capacity events.","filters":[{"name":"target","type":"string","description":"Node name or fragment."},{"name":"since","type":"duration","description":"Relative lookback such as 30m, 2h, 1d, or today."}],"pagination":{"limit":true,"offset":true},"forms":[{"name":"Node activity","description":"Read recent node events.","example":"SELECT * FROM nodes WHERE since = 6h LIMIT 20"}]},{"name":"deploy_impact","aliases":["impact","risky"],"intent":"deployimpact","summary":"Join recent deployments to the failures that followed them.","filters":[{"name":"target","type":"string","description":"Workload name or fragment."},{"name":"since","type":"duration","description":"Relative lookback such as 30m, 2h, 1d, or today."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Deployment impact","description":"Rank recent deployment fallout or inspect one workload.","example":"SELECT * FROM deploy_impact WHERE target = checkout AND since = 24h LIMIT 10"}]},{"name":"common_cause","aliases":["commoncause","cause"],"intent":"commoncause","summary":"Find shared infrastructure or dependencies behind recent failures.","filters":[{"name":"namespace","type":"string","description":"Kubernetes namespace scope."},{"name":"since","type":"duration","description":"Relative lookback such as 30m, 2h, 1d, or today."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Shared failure causes","description":"Intersect recent failures by node, workload, datastore, and external dependency.","example":"SELECT * FROM common_cause WHERE namespace = commerce AND since = 2h LIMIT 10"}]},{"name":"blast_radius","aliases":["blast"],"intent":"blast","summary":"Calculate the transitive workloads, pods, and services affected by a resource.","filters":[{"name":"resource","type":"string","description":"Starting resource name or identifier.","required":true}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Resource blast radius","description":"Walk impact outward from one resource.","example":"SELECT * FROM blast_radius WHERE resource = shared-runtime-sa LIMIT 100"}]},{"name":"spof","aliases":["spofs"],"intent":"spof","summary":"Rank highly shared ConfigMaps, service accounts, or nodes by fan-in.","filters":[{"name":"kind","type":"enum","description":"Resource kind to rank. Defaults to configmap.","values":[{"value":"configmap","description":"Rank ConfigMaps.","aliases":["configmaps","cm"]},{"value":"serviceaccount","description":"Rank Kubernetes service accounts.","aliases":["serviceaccounts","sa"]},{"value":"node","description":"Rank Kubernetes nodes.","aliases":["nodes"]}]},{"name":"namespace","type":"string","description":"Kubernetes namespace scope."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Shared service accounts","description":"Rank service accounts by dependent workloads and pods.","example":"SELECT * FROM spof WHERE kind = serviceaccount LIMIT 10"}]},{"name":"orphans","aliases":["orphan","unused","dangling"],"intent":"orphans","summary":"Find unused or dangling Kubernetes resources.","filters":[{"name":"kind","type":"enum","description":"Resource kind to inspect. Defaults to configmap.","values":[{"value":"configmap","description":"Find orphaned ConfigMaps.","aliases":["configmaps","cm"]},{"value":"serviceaccount","description":"Find orphaned service accounts.","aliases":["serviceaccounts","sa"]},{"value":"role","description":"Find orphaned roles.","aliases":["roles"]},{"value":"replicaset","description":"Find orphaned ReplicaSets.","aliases":["replicasets","rs"]}]},{"name":"namespace","type":"string","description":"Kubernetes namespace scope."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Orphaned roles","description":"Find roles with no observed consumers.","example":"SELECT * FROM orphans WHERE kind = role AND namespace = commerce LIMIT 20"}]},{"name":"coverage","aliases":["blindspots","unmonitored","uncovered"],"intent":"coverage","summary":"Find service, monitor, or metrics coverage gaps.","filters":[{"name":"kind","type":"enum","description":"Coverage dimension. Defaults to service.","values":[{"value":"service","description":"Find services without monitoring presence.","aliases":["services","workload","workloads"]},{"value":"monitor","description":"Find monitored services without monitors.","aliases":["monitors"]},{"value":"metrics","description":"Find metrics shipping gaps.","aliases":["metric"]}]},{"name":"namespace","type":"string","description":"Kubernetes namespace scope."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Monitoring gaps","description":"Find unmonitored services in one namespace.","example":"SELECT * FROM coverage WHERE kind = service AND namespace = commerce LIMIT 20"}]},{"name":"access","aliases":["rbac","permissions"],"intent":"access","summary":"Inspect RBAC reach or rank over-privileged service accounts.","filters":[{"name":"resource","type":"string","description":"Subject or role name in reach mode; optional namespace scope in privileged mode."},{"name":"mode","type":"enum","description":"Access analysis mode. Defaults to reach.","values":[{"value":"reach","description":"Inspect what one subject can reach."},{"value":"privileged","description":"Rank broadly privileged service accounts."}]}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Subject reach","description":"Reach mode requires resource.","example":"SELECT * FROM access WHERE resource = ci-deployer"},{"name":"Privileged identities","description":"Privileged mode can optionally scope resource to a namespace.","example":"SELECT * FROM access WHERE mode = privileged LIMIT 10"}]},{"name":"exposure","aliases":["exposed","attack_surface"],"intent":"exposure","summary":"Trace public ingress exposure to or from a resource.","filters":[{"name":"resource","type":"string","description":"Ingress, service, or workload name.","required":true}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Public exposure","description":"Trace how a resource is publicly exposed.","example":"SELECT * FROM exposure WHERE resource = checkout"}]},{"name":"tenancy","aliases":["colocation","colocated","neighbors"],"intent":"tenancy","summary":"Find workloads co-located with a resource on the same node.","filters":[{"name":"resource","type":"string","description":"Workload, pod, or node name.","required":true}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Noisy neighbors","description":"Inspect resources sharing a node with the target.","example":"SELECT * FROM tenancy WHERE resource = checkout LIMIT 20"}]},{"name":"sharedconfig","aliases":["shared_config","configsiblings","config_siblings","configcoupled"],"intent":"sharedconfig","summary":"Find workloads coupled through shared configuration.","filters":[{"name":"resource","type":"string","description":"Workload or configuration resource name.","required":true}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Shared configuration","description":"Find workloads sharing configuration with the target.","example":"SELECT * FROM sharedconfig WHERE resource = checkout LIMIT 20"}]},{"name":"path","aliases":["paths"],"intent":"path","summary":"Find the shortest infrastructure or operational path between two resources.","filters":[{"name":"from","type":"string","description":"Starting resource name. Required unless from_id is supplied."},{"name":"from_exact","type":"string","description":"Set true for exact-name matching instead of legacy fuzzy resolution."},{"name":"from_id","type":"string","description":"Exact starting hashedID or anyshiftID."},{"name":"from_type","type":"string","description":"Exact starting resource label, such as K8S_DEPLOYMENT."},{"name":"from_namespace","type":"string","description":"Exact starting Kubernetes namespace."},{"name":"from_cluster","type":"string","description":"Exact starting cluster name."},{"name":"to","type":"string","description":"Destination resource name. Required unless to_id is supplied."},{"name":"to_exact","type":"string","description":"Set true for exact-name matching instead of legacy fuzzy resolution."},{"name":"to_id","type":"string","description":"Exact destination hashedID or anyshiftID."},{"name":"to_type","type":"string","description":"Exact destination resource label, such as TEMPO_DATASTORE."},{"name":"to_namespace","type":"string","description":"Exact destination Kubernetes namespace."},{"name":"to_cluster","type":"string","description":"Exact destination cluster name."},{"name":"scope","type":"enum","description":"Relationships available to the path traversal. Defaults to infrastructure.","values":[{"value":"infrastructure","description":"Traverse infrastructure structure only."},{"value":"operational","description":"Also traverse APM identity, calls, datastores, and messaging dependencies."}]}],"pagination":{"limit":false,"offset":false},"forms":[{"name":"Shortest path","description":"Each endpoint requires a name or id. Typed selectors resolve same-named resources deterministically.","example":"SELECT * FROM path WHERE from = checkout-api AND from_type = K8S_DEPLOYMENT AND to = postgresql AND to_type = TEMPO_DATASTORE AND scope = operational"}]},{"name":"cascade","aliases":["cascades"],"intent":"cascade","summary":"Trace an incident correlation group in propagation order.","filters":[{"name":"target","type":"string","description":"Resource name or fragment."},{"name":"id","type":"string","description":"Correlation identifier."}],"pagination":{"limit":false,"offset":false},"forms":[{"name":"Cascade by target","description":"At least one of target or id is required.","example":"SELECT * FROM cascade WHERE target = checkout"},{"name":"Cascade by correlation id","description":"Trace one exact correlation group.","example":"SELECT * FROM cascade WHERE id = incident-123"}]},{"name":"alert_impact","aliases":["alertimpact"],"intent":"alertimpact","summary":"Find monitors and SLOs affected by a resource failure.","filters":[{"name":"resource","type":"string","description":"Infrastructure resource name.","required":true}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Alert impact","description":"Map an infrastructure resource to affected observability objects.","example":"SELECT * FROM alert_impact WHERE resource = checkout"}]},{"name":"monitor","aliases":["monitors"],"intent":"monitor","summary":"Resolve a monitor to the infrastructure it observes.","filters":[{"name":"target","type":"string","description":"Monitor name or fragment.","required":true}],"pagination":{"limit":false,"offset":false},"forms":[{"name":"Monitor infrastructure","description":"Map one monitor to its service, workload, and node.","example":"SELECT * FROM monitor WHERE target = checkout-latency"}]},{"name":"datastore","aliases":["datastores"],"intent":"datastore","summary":"Inspect datastore dependencies or rank widely used datastores.","filters":[{"name":"target","type":"string","description":"Service or datastore name."},{"name":"source","type":"enum","description":"APM dependency source. Defaults to auto.","values":[{"value":"auto","description":"Use every supported APM source, preserving Datadog-first topology resolution."},{"value":"datadog","description":"Use Datadog service and dependency nodes only."},{"value":"tempo","description":"Use Grafana Tempo service and dependency nodes only."}]}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Rank datastores","description":"Omit target to rank datastore fan-in.","example":"SELECT * FROM datastore LIMIT 10"},{"name":"Datastore dependencies","description":"Inspect services connected to one datastore or datastores used by one service.","example":"SELECT * FROM datastore WHERE target = checkout-postgres"}]},{"name":"flow","aliases":["flows","stream"],"intent":"flow","summary":"Inspect stream producers and consumers or rank busy streams.","filters":[{"name":"target","type":"string","description":"Service, topic, queue, or stream name."},{"name":"source","type":"enum","description":"APM dependency source. Defaults to auto.","values":[{"value":"auto","description":"Use every supported APM source, preserving Datadog-first topology resolution."},{"value":"datadog","description":"Use Datadog service and dependency nodes only."},{"value":"tempo","description":"Use Grafana Tempo service and dependency nodes only."}]}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Stream dependencies","description":"Inspect producers and consumers for a stream.","example":"SELECT * FROM flow WHERE target = checkout-events"}]},{"name":"external_dep","aliases":["externaldep","external"],"intent":"externaldep","summary":"Inspect external dependencies or rank high-fan-in external hosts.","filters":[{"name":"target","type":"string","description":"Service or external dependency name."},{"name":"source","type":"enum","description":"APM dependency source. Defaults to auto.","values":[{"value":"auto","description":"Use every supported APM source, preserving Datadog-first topology resolution."},{"value":"datadog","description":"Use Datadog service and dependency nodes only."},{"value":"tempo","description":"Use Grafana Tempo service and dependency nodes only."}]}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"External dependencies","description":"Inspect services depending on one external host.","example":"SELECT * FROM external_dep WHERE target = payments.example.com"}]},{"name":"alerts","aliases":["alert","firing"],"intent":"alerts","summary":"List currently firing monitors, optionally scoped to a service.","filters":[{"name":"target","type":"string","description":"Service or workload name."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Current alerts","description":"List firing monitors for the project or one target.","example":"SELECT * FROM alerts WHERE target = checkout LIMIT 20"}]},{"name":"alert_noise","aliases":["alertnoise","noise","flapping","noisy"],"intent":"alertnoise","summary":"Rank flapping or stuck monitors.","filters":[{"name":"target","type":"string","description":"Monitor or service name."},{"name":"kind","type":"enum","description":"Noise pattern.","values":[{"value":"flapping","description":"Repeated alert and recovery transitions.","aliases":["flap"]},{"value":"stuck","description":"Long-running firing state."}]},{"name":"since","type":"duration","description":"Relative lookback such as 30m, 2h, 1d, or today."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Flapping alerts","description":"Rank recently flapping monitors.","example":"SELECT * FROM alert_noise WHERE kind = flapping AND since = 1d LIMIT 10"}]},{"name":"calls","aliases":["call","callgraph"],"intent":"calls","summary":"Inspect service callers and callees or rank call-graph fan-in.","filters":[{"name":"target","type":"string","description":"Service name."},{"name":"source","type":"enum","description":"APM dependency source. Defaults to auto.","values":[{"value":"auto","description":"Use every supported APM source, preserving Datadog-first topology resolution."},{"value":"datadog","description":"Use Datadog service and dependency nodes only."},{"value":"tempo","description":"Use Grafana Tempo service and dependency nodes only."}]}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Service calls","description":"Inspect callers and callees for one service.","example":"SELECT * FROM calls WHERE target = checkout"}]},{"name":"servicetree","aliases":["service_tree","footprint"],"intent":"servicetree","summary":"Expand a service's downstream services, datastores, and external dependencies.","filters":[{"name":"target","type":"string","description":"Root service name."},{"name":"source","type":"enum","description":"APM dependency source. Defaults to auto.","values":[{"value":"auto","description":"Use every supported APM source, preserving Datadog-first topology resolution."},{"value":"datadog","description":"Use Datadog service and dependency nodes only."},{"value":"tempo","description":"Use Grafana Tempo service and dependency nodes only."}]}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Service tree","description":"Expand the downstream footprint of one service.","example":"SELECT * FROM servicetree WHERE target = checkout LIMIT 50"}]},{"name":"alert_cause","aliases":["alertcause","rootcause"],"intent":"alertcause","summary":"Join a firing service or workload to recent Kubernetes changes.","filters":[{"name":"target","type":"string","description":"Service or workload name.","required":true},{"name":"since","type":"duration","description":"Relative lookback such as 30m, 2h, 1d, or today."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Alert cause","description":"Find recent infrastructure changes behind a firing target.","example":"SELECT * FROM alert_cause WHERE target = checkout AND since = 2h LIMIT 20"}]},{"name":"slo","aliases":["slos"],"intent":"slo","summary":"Inspect one SLO or rank breaching and at-risk SLOs.","filters":[{"name":"target","type":"string","description":"SLO name or fragment."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"SLO health","description":"Inspect one SLO by name.","example":"SELECT * FROM slo WHERE target = 'checkout availability'"}]},{"name":"alertrules","aliases":["alert_rules","grafana","victoria"],"intent":"alertrules","summary":"Inspect Grafana and VictoriaMetrics alert-rule coverage and inventory.","filters":[{"name":"subject","type":"enum","description":"Alert-rule view. Defaults to coverage.","values":[{"value":"coverage","description":"Find targets without alert rules."},{"value":"inventory","description":"List alert rules.","aliases":["inventories"]},{"value":"target","description":"Inspect rules for one target.","aliases":["targets"]}]},{"name":"namespace","type":"string","description":"Namespace scope for coverage or inventory."},{"name":"target","type":"string","description":"Service or workload name. Required when subject is target."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Alert-rule coverage","description":"Find services or workloads without alert rules.","example":"SELECT * FROM alertrules WHERE subject = coverage AND namespace = commerce LIMIT 20"},{"name":"Rules for a target","description":"Target subject requires target.","example":"SELECT * FROM alertrules WHERE subject = target AND target = checkout"}]},{"name":"gitops","aliases":["argocd","drift"],"intent":"gitops","summary":"Inspect GitOps drift, unmanaged workloads, or resource ownership.","filters":[{"name":"subject","type":"enum","description":"GitOps view. Defaults to drift.","values":[{"value":"drift","description":"Find drifted applications.","aliases":["drifted"]},{"value":"unmanaged","description":"Find workloads without GitOps ownership."},{"value":"owner","description":"Find the application and repository owning one resource.","aliases":["ownership"]}]},{"name":"namespace","type":"string","description":"Namespace scope for drift or unmanaged views."},{"name":"resource","type":"string","description":"Workload name. Required when subject is owner."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"GitOps drift","description":"List drifted applications, optionally scoped to a namespace.","example":"SELECT * FROM gitops WHERE subject = drift AND namespace = commerce LIMIT 20"},{"name":"Resource owner","description":"Owner subject requires resource.","example":"SELECT * FROM gitops WHERE subject = owner AND resource = checkout"}]},{"name":"image","aliases":["images","containers"],"intent":"image","summary":"Inspect image usage, workload containers, or container hygiene gaps.","filters":[{"name":"target","type":"string","description":"Image, service, or workload name."},{"name":"workload","type":"string","description":"Workload whose container resources should be inspected."},{"name":"kind","type":"enum","description":"Container hygiene scan.","values":[{"value":"nomemlimit","description":"Containers without a memory limit.","aliases":["no_mem_limit","nomemorylimit"]},{"value":"nocpurequest","description":"Containers without a CPU request.","aliases":["no_cpu_request"]},{"value":"skew","description":"Workloads running multiple image versions.","aliases":["versionskew","version_skew"]}]},{"name":"namespace","type":"string","description":"Namespace scope for a hygiene scan."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Image usage","description":"Inspect who runs an image or what image a target runs.","example":"SELECT * FROM image WHERE target = checkout"},{"name":"Container hygiene","description":"Kind selects a hygiene scan and namespace optionally scopes it.","example":"SELECT * FROM image WHERE kind = nomemlimit AND namespace = commerce LIMIT 20"}]},{"name":"netpol","aliases":["netpols","networkpolicy","segmentation","defaultallow"],"intent":"netpol","summary":"Inspect NetworkPolicy coverage, policies, or east-west reach.","filters":[{"name":"mode","type":"enum","description":"Network policy view. Defaults to uncovered.","values":[{"value":"uncovered","description":"Find default-allow namespaces.","aliases":["coverage","default_allow","defaultallow"]},{"value":"policy","description":"Inspect policies for a target or namespace.","aliases":["policies"]},{"value":"segmentation","description":"Model workloads that could reach a target.","aliases":["segment"]}]},{"name":"namespace","type":"string","description":"Namespace scope for uncovered or policy views."},{"name":"target","type":"string","description":"Workload or policy name. Required for segmentation."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"NetworkPolicy gaps","description":"Find default-allow namespaces.","example":"SELECT * FROM netpol WHERE mode = uncovered LIMIT 20"},{"name":"East-west reach","description":"Segmentation mode requires target.","example":"SELECT * FROM netpol WHERE mode = segmentation AND target = checkout"}]},{"name":"priority","aliases":["priorityclass","preemption","nopriority"],"intent":"priority","summary":"Inspect scheduling priority gaps, the class ladder, or one target's priority.","filters":[{"name":"kind","type":"enum","description":"Priority view.","values":[{"value":"nopriority","description":"Find workloads without a priority class.","aliases":["unprioritized","none"]},{"value":"ladder","description":"List the observed priority class ladder.","aliases":["classes","class"]}]},{"name":"namespace","type":"string","description":"Namespace scope for missing-priority checks."},{"name":"target","type":"string","description":"Workload or pod name whose priority should be inspected."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Missing priority classes","description":"Find workloads without a priority class.","example":"SELECT * FROM priority WHERE kind = nopriority AND namespace = commerce LIMIT 20"},{"name":"Target priority","description":"Inspect the priority class for one workload or pod.","example":"SELECT * FROM priority WHERE target = checkout"}]},{"name":"storage","aliases":["volumes","pv","pvc","storageclass"],"intent":"storage","summary":"Inspect workload storage and find orphaned or unclaimed volumes.","filters":[{"name":"mode","type":"enum","description":"Storage view. Defaults to footprint.","values":[{"value":"footprint","description":"Trace a workload's PVC, PV, and StorageClass chain.","aliases":["workload"]},{"value":"orphanpv","description":"Find orphaned persistent volumes.","aliases":["orphanpvs","orphaned","orphan"]},{"value":"unclaimedpvc","description":"Find unclaimed persistent volume claims.","aliases":["unclaimedpvcs","unclaimed"]},{"value":"byclass","description":"Group or filter storage by StorageClass.","aliases":["class","storageclass"]}]},{"name":"workload","type":"string","description":"Workload or pod name. Required in footprint mode."},{"name":"resource","type":"string","description":"Alias for workload in footprint mode."},{"name":"class","type":"string","description":"StorageClass filter for orphanpv or byclass mode."},{"name":"namespace","type":"string","description":"Namespace scope for unclaimedpvc mode."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Workload storage","description":"Footprint mode requires workload or resource.","example":"SELECT * FROM storage WHERE workload = checkout"},{"name":"Unclaimed PVCs","description":"Find unclaimed claims, optionally scoped to a namespace.","example":"SELECT * FROM storage WHERE mode = unclaimedpvc AND namespace = commerce LIMIT 20"}]},{"name":"pdb","aliases":["pdbs","unprotected","disruption"],"intent":"pdb","summary":"Find workloads without PodDisruptionBudgets or inspect one workload or PDB.","filters":[{"name":"target","type":"string","description":"Workload or PDB name."},{"name":"workload","type":"string","description":"Workload name."},{"name":"pdb","type":"string","description":"PodDisruptionBudget name."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"PDB coverage gaps","description":"Omit filters to list workloads without PDB protection.","example":"SELECT * FROM pdb LIMIT 20"},{"name":"Target PDB coverage","description":"Inspect one workload or PDB by target, workload, or pdb.","example":"SELECT * FROM pdb WHERE workload = checkout"}]},{"name":"scaling","aliases":["hpa","hpas","autoscaling","autoscalers"],"intent":"scaling","summary":"Find workloads without HPAs, list autoscaled workloads, or inspect one target.","filters":[{"name":"mode","type":"enum","description":"Autoscaling view. Defaults to nohpa.","values":[{"value":"nohpa","description":"Find workloads without an HPA.","aliases":["no_hpa","unscaled","fixed","coverage"]},{"value":"autoscaled","description":"List workloads with an HPA.","aliases":["hpa","scaled"]},{"value":"target","description":"Inspect one workload or HPA."}]},{"name":"namespace","type":"string","description":"Namespace scope for nohpa or autoscaled views."},{"name":"target","type":"string","description":"Workload or HPA name. Required in target mode."}],"pagination":{"limit":true,"offset":false},"forms":[{"name":"Autoscaling gaps","description":"Find workloads without HPAs.","example":"SELECT * FROM scaling WHERE mode = nohpa AND namespace = commerce LIMIT 20"},{"name":"Target autoscaling","description":"Target mode requires target.","example":"SELECT * FROM scaling WHERE target = checkout"}]},{"name":"topology","aliases":["diagram","c4"],"intent":"topology","summary":"Build a typed service topology at a selected level.","filters":[{"name":"service","type":"string","description":"Service or workload name.","required":true},{"name":"level","type":"enum","description":"Topology level. Defaults to container.","values":[{"value":"context","description":"Service and direct collaborators."},{"value":"container","description":"Runtime containers, workloads, datastores, queues, and external dependencies."},{"value":"component","description":"Deeper component and configuration detail."},{"value":"dynamic","description":"Ordered call flow suitable for a sequence diagram."}]},{"name":"source","type":"enum","description":"APM dependency source. Defaults to auto.","values":[{"value":"auto","description":"Use every supported APM source, preserving Datadog-first topology resolution."},{"value":"datadog","description":"Use Datadog service and dependency nodes only."},{"value":"tempo","description":"Use Grafana Tempo service and dependency nodes only."}]}],"pagination":{"limit":false,"offset":false},"forms":[{"name":"Service topology","description":"Service is required; level selects the topology depth.","example":"SELECT * FROM topology WHERE service = checkout AND level = context"}]}]},"info":{"title":"Anyshift Graph API","version":"1.0.0","description":"Read-only API for querying Anyshift infrastructure graphs by project."},"servers":[{"url":"https://graph.anyshift.io"}],"tags":[{"name":"Graph","description":"Ask natural-language questions or run deterministic graph queries."}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"opaque"}},"parameters":{"ProjectId":{"name":"projectId","in":"path","required":true,"schema":{"type":"string"},"description":"Anyshift project id whose graph should be queried."}},"schemas":{"ErrorEnvelope":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized","bad_request","project_required","forbidden","not_found","payload_too_large","timeout","project_graph_unconfigured","project_events_graph_unconfigured","internal"]},"message":{"type":"string"}}}}},"QueryRequest":{"type":"object","properties":{"sql":{"type":"string","minLength":1,"description":"SELECT <*|count(*)> FROM <table> [WHERE k = v [AND ...]] [LIMIT n] [OFFSET n]"}},"required":["sql"],"additionalProperties":false},"AskRequest":{"type":"object","properties":{"question":{"type":"string","minLength":1,"description":"Natural-language graph question"}},"required":["question"],"additionalProperties":false},"Page":{"type":"object","properties":{"limit":{"type":"integer","minimum":0},"offset":{"type":"integer","minimum":0},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false},"GraphNode":{"type":"object","properties":{"id":{"type":"string"},"anyshiftID":{"type":["string","null"]},"name":{"type":"string"},"type":{"type":["string","null"]},"namespace":{"type":["string","null"]},"image":{"type":["string","null"]}},"required":["id","anyshiftID","name","type","namespace"],"additionalProperties":false},"GraphEdge":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"type":{"type":"string"},"direction":{"type":"string","enum":["upstream","downstream"]}},"required":["from","to","type","direction"],"additionalProperties":false},"ResolveResult":{"type":"object","properties":{"term":{"type":"string"},"candidates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"anyshiftID":{"type":["string","null"]},"name":{"type":"string"},"type":{"type":["string","null"]},"namespace":{"type":["string","null"]},"cluster":{"type":["string","null"]}},"required":["id","anyshiftID","name","type","namespace","cluster"],"additionalProperties":false}}},"required":["term","candidates"],"additionalProperties":false},"InventoryResult":{"type":"object","properties":{"type":{"type":"string"},"total":{"type":"integer","minimum":0},"byNamespace":{"type":"array","items":{"type":"object","properties":{"namespace":{"type":"string"},"count":{"type":"integer","minimum":0}},"required":["namespace","count"],"additionalProperties":false}},"sample":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]}},"required":["name","namespace"],"additionalProperties":false}},"availableTypes":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"count":{"type":"integer","minimum":0}},"required":["label","count"],"additionalProperties":false}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":0},"offset":{"type":"integer","minimum":0},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["type","total","byNamespace","sample","availableTypes","page"],"additionalProperties":false},"EventsResult":{"type":"object","properties":{"filter":{"type":"object","properties":{"eventType":{"type":"string"},"target":{"type":"string"},"namespace":{"type":"string"},"includeNoise":{"type":"boolean"}},"required":["eventType","target","namespace","includeNoise"],"additionalProperties":false},"total":{"type":"integer","minimum":0},"byType":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"count":{"type":"integer","minimum":0}},"required":["type","count"],"additionalProperties":false}},"recent":{"type":"array","items":{"type":"object","properties":{"ts":{"type":"string"},"type":{"type":"string"},"summary":{"type":["string","null"]},"targetKind":{"type":["string","null"]},"target":{"type":["string","null"]},"namespace":{"type":["string","null"]},"isRoot":{"type":"boolean"},"noiseClass":{"type":["string","null"]},"cluster":{"type":["string","null"]}},"required":["ts","type","summary","targetKind","target","namespace","isRoot","noiseClass","cluster"],"additionalProperties":false}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":0},"offset":{"type":"integer","minimum":0},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["filter","total","byType","recent","page"],"additionalProperties":false},"HotspotsResult":{"type":"object","properties":{"dimension":{"type":"string","enum":["namespace","resource","alertrule","alertworkload"]},"filter":{"type":"object","properties":{"eventType":{"type":"string"},"namespace":{"type":"string"},"includeNoise":{"type":"boolean"}},"required":["eventType","namespace","includeNoise"],"additionalProperties":false},"ranking":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"total":{"type":"integer","minimum":0},"namespace":{"type":["string","null"]},"recovers":{"type":"integer","minimum":0},"flap":{"type":"integer","minimum":0}},"required":["key","total","namespace"],"additionalProperties":false}}},"required":["dimension","filter","ranking"],"additionalProperties":false},"IncidentResult":{"type":"object","properties":{"correlationId":{"type":["string","null"]},"total":{"type":"integer","minimum":0},"roots":{"type":"integer","minimum":0},"namespaces":{"type":"array","items":{"type":"string"}},"byType":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"count":{"type":"integer","minimum":0}},"required":["type","count"],"additionalProperties":false}},"rootCauses":{"type":"array","items":{"type":"object","properties":{"ts":{"type":"string"},"type":{"type":"string"},"summary":{"type":["string","null"]},"targetKind":{"type":["string","null"]},"target":{"type":["string","null"]},"namespace":{"type":["string","null"]},"isRoot":{"type":"boolean"},"noiseClass":{"type":["string","null"]},"cluster":{"type":["string","null"]}},"required":["ts","type","summary","targetKind","target","namespace","isRoot","noiseClass","cluster"],"additionalProperties":false}},"chain":{"type":"array","items":{"type":"object","properties":{"ts":{"type":"string"},"type":{"type":"string"},"summary":{"type":["string","null"]},"targetKind":{"type":["string","null"]},"target":{"type":["string","null"]},"namespace":{"type":["string","null"]},"isRoot":{"type":"boolean"},"noiseClass":{"type":["string","null"]},"cluster":{"type":["string","null"]}},"required":["ts","type","summary","targetKind","target","namespace","isRoot","noiseClass","cluster"],"additionalProperties":false}}},"required":["correlationId","total","roots","namespaces","byType","rootCauses","chain"],"additionalProperties":false},"EventFeedResult":{"type":"object","properties":{"filter":{"type":"object","properties":{"target":{"type":"string"},"sinceHours":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["target","sinceHours"],"additionalProperties":false},"total":{"type":"integer","minimum":0},"byType":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"count":{"type":"integer","minimum":0}},"required":["type","count"],"additionalProperties":false}},"recent":{"type":"array","items":{"type":"object","properties":{"ts":{"type":"string"},"type":{"type":"string"},"summary":{"type":["string","null"]},"targetKind":{"type":["string","null"]},"target":{"type":["string","null"]},"namespace":{"type":["string","null"]},"isRoot":{"type":"boolean"},"noiseClass":{"type":["string","null"]},"cluster":{"type":["string","null"]}},"required":["ts","type","summary","targetKind","target","namespace","isRoot","noiseClass","cluster"],"additionalProperties":false}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":0},"offset":{"type":"integer","minimum":0},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["filter","total","byType","recent","page"],"additionalProperties":false},"DeploymentsResult":{"type":"object","properties":{"filter":{"type":"object","properties":{"target":{"type":"string"},"namespace":{"type":"string"},"sinceHours":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["target","namespace","sinceHours"],"additionalProperties":false},"total":{"type":"integer","minimum":0},"namespaces":{"type":"array","items":{"type":"string"}},"recent":{"type":"array","items":{"type":"object","properties":{"ts":{"type":"string"},"target":{"type":["string","null"]},"namespace":{"type":["string","null"]},"images":{"type":"array","items":{"type":"object","properties":{"from":{"type":["string","null"]},"to":{"type":["string","null"]}},"required":["from","to"],"additionalProperties":false}}},"required":["ts","target","namespace","images"],"additionalProperties":false}},"page":{"type":"object","properties":{"limit":{"type":"integer","minimum":0},"offset":{"type":"integer","minimum":0},"hasMore":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}},"required":["limit","offset","hasMore","nextOffset"],"additionalProperties":false}},"required":["filter","total","namespaces","recent","page"],"additionalProperties":false},"DeployImpactResult":{"type":"object","properties":{"scope":{"type":"string","enum":["ranked","target"]},"filter":{"type":"object","properties":{"target":{"type":"string"},"sinceHours":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["target","sinceHours"],"additionalProperties":false},"ranking":{"type":"array","items":{"type":"object","properties":{"deployed":{"type":"string"},"namespace":{"type":["string","null"]},"rollouts":{"type":"integer","minimum":0},"fallout":{"type":"integer","minimum":0},"effects":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"count":{"type":"integer","minimum":0}},"required":["type","count"],"additionalProperties":false}}},"required":["deployed","namespace","rollouts","fallout","effects"],"additionalProperties":false}},"target":{"type":"string"},"rollouts":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"byType":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"count":{"type":"integer","minimum":0}},"required":["type","count"],"additionalProperties":false}},"recent":{"type":"array","items":{"type":"object","properties":{"ts":{"type":"string"},"type":{"type":"string"},"summary":{"type":["string","null"]},"targetKind":{"type":["string","null"]},"target":{"type":["string","null"]},"namespace":{"type":["string","null"]},"isRoot":{"type":"boolean"},"noiseClass":{"type":["string","null"]},"cluster":{"type":["string","null"]}},"required":["ts","type","summary","targetKind","target","namespace","isRoot","noiseClass","cluster"],"additionalProperties":false}}},"required":["scope","filter","ranking","target","rollouts","total","byType","recent"],"additionalProperties":false},"CommonCauseResult":{"type":"object","properties":{"filter":{"type":"object","properties":{"namespace":{"type":"string"},"sinceHours":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["namespace","sinceHours"],"additionalProperties":false},"failingPods":{"type":"integer","minimum":0},"events":{"type":"integer","minimum":0},"byNode":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"affected":{"type":"integer","minimum":0}},"required":["name","namespace","affected"],"additionalProperties":false}},"byWorkload":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"affected":{"type":"integer","minimum":0}},"required":["name","namespace","affected"],"additionalProperties":false}},"byDatastore":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"affected":{"type":"integer","minimum":0}},"required":["name","namespace","affected"],"additionalProperties":false}},"byExternal":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"affected":{"type":"integer","minimum":0}},"required":["name","namespace","affected"],"additionalProperties":false}}},"required":["filter","failingPods","events","byNode","byWorkload","byDatastore","byExternal"],"additionalProperties":false},"BlastRadiusResult":{"type":"object","properties":{"pods":{"type":"integer","minimum":0},"workloads":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"affected":{"type":"integer","minimum":0}},"required":["name","namespace","affected"],"additionalProperties":false}},"services":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"affected":{"type":"integer","minimum":0}},"required":["name","namespace","affected"],"additionalProperties":false}}},"required":["pods","workloads","services"],"additionalProperties":false},"SpofResult":{"type":"object","properties":{"kind":{"type":"string","enum":["configmap","serviceaccount","node"]},"filter":{"type":"object","properties":{"namespace":{"type":"string"}},"required":["namespace"],"additionalProperties":false},"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"workloads":{"type":"integer","minimum":0},"pods":{"type":"integer","minimum":0}},"required":["name","namespace","workloads","pods"],"additionalProperties":false}}},"required":["kind","filter","items"],"additionalProperties":false},"PathResult":{"type":"object","properties":{"from":{"anyOf":[{"type":"object","properties":{"term":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"required":["term","name","type"],"additionalProperties":false},{"type":"null"}]},"to":{"anyOf":[{"type":"object","properties":{"term":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"required":["term","name","type"],"additionalProperties":false},{"type":"null"}]},"found":{"type":"boolean"},"hops":{"type":"integer","minimum":0},"chain":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":["string","null"]},"namespace":{"type":["string","null"]}},"required":["name","type","namespace"],"additionalProperties":false}},"rels":{"type":"array","items":{"type":"string"}}},"required":["from","to","found","hops","chain","rels"],"additionalProperties":false},"CascadeResult":{"type":"object","properties":{"correlationId":{"type":"string"},"root":{"anyOf":[{"type":"object","properties":{"ts":{"type":"string"},"type":{"type":"string"},"kind":{"type":["string","null"]},"target":{"type":["string","null"]},"namespace":{"type":["string","null"]}},"required":["ts","type","kind","target","namespace"],"additionalProperties":false},{"type":"null"}]},"totalEvents":{"type":"integer","minimum":0},"spanSeconds":{"type":"integer","minimum":0},"byReason":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string"},"count":{"type":"integer","minimum":0}},"required":["reason","count"],"additionalProperties":false}},"steps":{"type":"array","items":{"type":"object","properties":{"resource":{"type":"string"},"namespace":{"type":["string","null"]},"firstType":{"type":"string"},"reason":{"type":["string","null"]},"events":{"type":"integer","minimum":0},"offsetSeconds":{"type":"integer","minimum":0}},"required":["resource","namespace","firstType","reason","events","offsetSeconds"],"additionalProperties":false}}},"required":["correlationId","root","totalEvents","spanSeconds","byReason","steps"],"additionalProperties":false},"AlertImpactResult":{"type":"object","properties":{"scope":{"type":"string"},"workloads":{"type":"integer","minimum":0},"services":{"type":"integer","minimum":0},"counts":{"type":"object","properties":{"monitors":{"type":"integer","minimum":0},"slos":{"type":"integer","minimum":0}},"required":["monitors","slos"],"additionalProperties":false},"monitors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"service":{"type":["string","null"]}},"required":["name","service"],"additionalProperties":false}},"slos":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"service":{"type":["string","null"]}},"required":["name","service"],"additionalProperties":false}}},"required":["scope","workloads","services","counts","monitors","slos"],"additionalProperties":false},"MonitorResult":{"type":"object","properties":{"term":{"type":"string"},"matched":{"type":"integer","minimum":0},"monitors":{"type":"array","items":{"type":"string"}},"services":{"type":"array","items":{"type":"string"}},"workloads":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":["string","null"]},"namespace":{"type":["string","null"]}},"required":["name","type","namespace"],"additionalProperties":false}},"nodes":{"type":"array","items":{"type":"string"}},"slos":{"type":"array","items":{"type":"string"}}},"required":["term","matched","monitors","services","workloads","nodes","slos"],"additionalProperties":false},"DataStoreResult":{"type":"object","properties":{"scope":{"type":"string","enum":["ranked","target"]},"ranking":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"services":{"type":"integer","minimum":0}},"required":["name","services"],"additionalProperties":false}},"target":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"services":{"type":"integer","minimum":0},"sample":{"type":"array","items":{"type":"string"}}},"required":["name","services","sample"],"additionalProperties":false},{"type":"null"}]}},"required":["scope","ranking","target"],"additionalProperties":false},"FlowResult":{"type":"object","properties":{"scope":{"type":"string","enum":["ranked","target"]},"ranking":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"producers":{"type":"integer","minimum":0},"consumers":{"type":"integer","minimum":0}},"required":["name","producers","consumers"],"additionalProperties":false}},"target":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"producers":{"type":"array","items":{"type":"string"}},"consumers":{"type":"array","items":{"type":"string"}}},"required":["name","producers","consumers"],"additionalProperties":false},{"type":"null"}]}},"required":["scope","ranking","target"],"additionalProperties":false},"ExternalDepResult":{"type":"object","properties":{"scope":{"type":"string","enum":["ranked","target"]},"ranking":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"services":{"type":"integer","minimum":0}},"required":["name","services"],"additionalProperties":false}},"target":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"services":{"type":"integer","minimum":0},"sample":{"type":"array","items":{"type":"string"}}},"required":["name","services","sample"],"additionalProperties":false},{"type":"null"}]}},"required":["scope","ranking","target"],"additionalProperties":false},"AlertsResult":{"type":"object","properties":{"filter":{"type":"object","properties":{"target":{"type":"string"}},"required":["target"],"additionalProperties":false},"total":{"type":"integer","minimum":0},"byState":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string"},"count":{"type":"integer","minimum":0}},"required":["state","count"],"additionalProperties":false}},"firing":{"type":"array","items":{"type":"object","properties":{"monitor":{"type":"string"},"state":{"type":"string"},"service":{"type":["string","null"]},"workload":{"type":["string","null"]},"namespace":{"type":["string","null"]}},"required":["monitor","state","service","workload","namespace"],"additionalProperties":false}}},"required":["filter","total","byState","firing"],"additionalProperties":false},"AlertNoiseResult":{"type":"object","properties":{"scope":{"type":"string","enum":["ranked","target"]},"filter":{"type":"object","properties":{"noiseKind":{"type":"string"},"window":{"type":"string"}},"required":["noiseKind","window"],"additionalProperties":false},"target":{"type":["string","null"]},"monitors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"fires":{"type":"integer","minimum":0},"recovers":{"type":"integer","minimum":0},"pctSelfResolved":{"type":"number"},"noiseKind":{"type":"string","enum":["flapping","stuck"]}},"required":["name","fires","recovers","pctSelfResolved","noiseKind"],"additionalProperties":false}},"counts":{"type":"object","properties":{"flapping":{"type":"integer","minimum":0},"stuck":{"type":"integer","minimum":0},"totalFires":{"type":"integer","minimum":0}},"required":["flapping","stuck","totalFires"],"additionalProperties":false}},"required":["scope","filter","target","monitors","counts"],"additionalProperties":false},"CallsResult":{"type":"object","properties":{"scope":{"type":"string","enum":["ranked","target"]},"ranking":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"callers":{"type":"integer","minimum":0}},"required":["name","callers"],"additionalProperties":false}},"target":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"callerCount":{"type":"integer","minimum":0},"calleeCount":{"type":"integer","minimum":0},"callers":{"type":"array","items":{"type":"string"}},"callees":{"type":"array","items":{"type":"string"}}},"required":["name","callerCount","calleeCount","callers","callees"],"additionalProperties":false},{"type":"null"}]}},"required":["scope","ranking","target"],"additionalProperties":false},"ServiceTreeResult":{"type":"object","properties":{"scope":{"type":"string","enum":["ranked","target"]},"ranking":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"serviceCount":{"type":"integer","minimum":0},"leafCount":{"type":"integer","minimum":0},"footprint":{"type":"integer","minimum":0}},"required":["name","serviceCount","leafCount","footprint"],"additionalProperties":false}},"target":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"serviceCount":{"type":"integer","minimum":0},"datastoreCount":{"type":"integer","minimum":0},"externalCount":{"type":"integer","minimum":0},"services":{"type":"array","items":{"type":"string"}},"datastores":{"type":"array","items":{"type":"string"}},"externals":{"type":"array","items":{"type":"string"}},"hasCycle":{"type":"boolean"}},"required":["name","serviceCount","datastoreCount","externalCount","services","datastores","externals","hasCycle"],"additionalProperties":false},{"type":"null"}]}},"required":["scope","ranking","target"],"additionalProperties":false},"AlertCauseResult":{"type":"object","properties":{"target":{"type":"string"},"workload":{"type":["string","null"]},"namespace":{"type":["string","null"]},"firingMonitors":{"type":"array","items":{"type":"string"}},"firingCount":{"type":"integer","minimum":0},"changes":{"type":"array","items":{"type":"object","properties":{"ts":{"type":"string"},"type":{"type":"string"},"summary":{"type":["string","null"]},"target":{"type":["string","null"]}},"required":["ts","type","summary","target"],"additionalProperties":false}}},"required":["target","workload","namespace","firingMonitors","firingCount","changes"],"additionalProperties":false},"AccessResult":{"type":"object","properties":{"mode":{"type":"string","enum":["reach","privileged"]},"direction":{"type":"string","enum":["subject","object"]},"serviceAccounts":{"type":"array","items":{"type":"string"}},"roles":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"namespace":{"type":["string","null"]},"via":{"type":["string","null"]},"cluster":{"type":"boolean"},"rules":{"type":"array","items":{"type":"object","properties":{"verbs":{"type":"array","items":{"type":"string"}},"resources":{"type":"array","items":{"type":"string"}},"apiGroups":{"type":"array","items":{"type":"string"}}},"required":["verbs","resources","apiGroups"],"additionalProperties":false}},"privileged":{"type":"boolean"},"reasons":{"type":"array","items":{"type":"string"}}},"required":["role","namespace","via","cluster","rules","privileged","reasons"],"additionalProperties":false}},"subjects":{"type":"array","items":{"type":"object","properties":{"serviceAccount":{"type":"string"},"namespace":{"type":["string","null"]},"via":{"type":["string","null"]},"pods":{"type":"integer","minimum":0},"workloads":{"type":"array","items":{"type":"string"}}},"required":["serviceAccount","namespace","via","pods","workloads"],"additionalProperties":false}},"privileged":{"type":"array","items":{"type":"object","properties":{"serviceAccount":{"type":"string"},"namespace":{"type":["string","null"]},"pods":{"type":"integer","minimum":0},"workloads":{"type":"array","items":{"type":"string"}},"score":{"type":"number"},"reasons":{"type":"array","items":{"type":"string"}},"roles":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"namespace":{"type":["string","null"]},"via":{"type":["string","null"]},"cluster":{"type":"boolean"},"rules":{"type":"array","items":{"type":"object","properties":{"verbs":{"type":"array","items":{"type":"string"}},"resources":{"type":"array","items":{"type":"string"}},"apiGroups":{"type":"array","items":{"type":"string"}}},"required":["verbs","resources","apiGroups"],"additionalProperties":false}},"privileged":{"type":"boolean"},"reasons":{"type":"array","items":{"type":"string"}}},"required":["role","namespace","via","cluster","rules","privileged","reasons"],"additionalProperties":false}}},"required":["serviceAccount","namespace","pods","workloads","score","reasons","roles"],"additionalProperties":false}}},"required":["mode","direction","serviceAccounts","roles","subjects","privileged"],"additionalProperties":false},"ExposureResult":{"type":"object","properties":{"direction":{"type":"string","enum":["ingress","workload"]},"exposed":{"type":"boolean"},"services":{"type":"array","items":{"type":"object","properties":{"service":{"type":"string"},"namespace":{"type":["string","null"]},"pods":{"type":"integer","minimum":0},"workloads":{"type":"array","items":{"type":"string"}}},"required":["service","namespace","pods","workloads"],"additionalProperties":false}},"ingresses":{"type":"array","items":{"type":"object","properties":{"ingress":{"type":"string"},"namespace":{"type":["string","null"]},"via":{"type":["string","null"]}},"required":["ingress","namespace","via"],"additionalProperties":false}}},"required":["direction","exposed","services","ingresses"],"additionalProperties":false},"OrphansResult":{"type":"object","properties":{"kind":{"type":"string","enum":["configmap","serviceaccount","role","replicaset"]},"filter":{"type":"object","properties":{"namespace":{"type":"string"}},"required":["namespace"],"additionalProperties":false},"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]}},"required":["name","namespace"],"additionalProperties":false}}},"required":["kind","filter","items"],"additionalProperties":false},"CoverageResult":{"type":"object","properties":{"kind":{"type":"string","enum":["service","monitor","metrics"]},"filter":{"type":"object","properties":{"namespace":{"type":"string"}},"required":["namespace"],"additionalProperties":false},"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"kind":{"type":["string","null"]}},"required":["name","namespace","kind"],"additionalProperties":false}}},"required":["kind","filter","items"],"additionalProperties":false},"SloResult":{"type":"object","properties":{"scope":{"type":"string","enum":["ranked","target"]},"ranking":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"status":{"type":"string"},"alerting":{"type":"integer","minimum":0},"warning":{"type":"integer","minimum":0},"monitors":{"type":"integer","minimum":0}},"required":["name","status","alerting","warning","monitors"],"additionalProperties":false}},"target":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"status":{"type":"string"},"alerting":{"type":"integer","minimum":0},"warning":{"type":"integer","minimum":0},"monitors":{"type":"integer","minimum":0},"sample":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"state":{"type":"string"},"service":{"type":["string","null"]}},"required":["name","state","service"],"additionalProperties":false}}},"required":["name","status","alerting","warning","monitors","sample"],"additionalProperties":false},{"type":"null"}]}},"required":["scope","ranking","target"],"additionalProperties":false},"TenancyResult":{"type":"object","properties":{"nodes":{"type":"array","items":{"type":"string"}},"ownPods":{"type":"integer","minimum":0},"neighbors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"type":{"type":["string","null"]},"pods":{"type":"integer","minimum":0},"nodes":{"type":"array","items":{"type":"string"}}},"required":["name","namespace","type","pods","nodes"],"additionalProperties":false}}},"required":["nodes","ownPods","neighbors"],"additionalProperties":false},"SharedConfigResult":{"type":"object","properties":{"configmaps":{"type":"array","items":{"type":"string"}},"ownPods":{"type":"integer","minimum":0},"siblings":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"type":{"type":["string","null"]},"pods":{"type":"integer","minimum":0},"configmaps":{"type":"array","items":{"type":"string"}}},"required":["name","namespace","type","pods","configmaps"],"additionalProperties":false}}},"required":["configmaps","ownPods","siblings"],"additionalProperties":false},"AlertRulesResult":{"type":"object","properties":{"subject":{"type":"string","enum":["coverage","inventory","target"]},"filter":{"type":"object","properties":{"namespace":{"type":"string"},"term":{"type":"string"}},"required":["namespace","term"],"additionalProperties":false},"coverage":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"kind":{"type":"string"},"replicas":{"type":"integer","minimum":0},"hasHpa":{"type":"boolean"},"exposed":{"type":"boolean"}},"required":["name","namespace","kind","replicas","hasHpa","exposed"],"additionalProperties":false}},"inventory":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"uid":{"type":["string","null"]},"ruleGroup":{"type":["string","null"]},"alerts":{"type":"integer","minimum":0},"watched":{"type":"integer","minimum":0},"severities":{"type":"array","items":{"type":"string"}}},"required":["name","uid","ruleGroup","alerts","watched","severities"],"additionalProperties":false}},"target":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"kind":{"type":"string"},"rules":{"type":"array","items":{"type":"string"}},"datastores":{"type":"array","items":{"type":"string"}},"destinations":{"type":"array","items":{"type":"string"}}},"required":["name","namespace","kind","rules","datastores","destinations"],"additionalProperties":false},{"type":"null"}]}},"required":["subject","filter","coverage","inventory","target"],"additionalProperties":false},"GitopsResult":{"type":"object","properties":{"subject":{"type":"string","enum":["drift","unmanaged","owner"]},"filter":{"type":"object","properties":{"namespace":{"type":"string"}},"required":["namespace"],"additionalProperties":false},"drift":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"syncStatus":{"type":["string","null"]},"healthStatus":{"type":["string","null"]},"repoUrl":{"type":["string","null"]},"sourcePath":{"type":["string","null"]}},"required":["name","syncStatus","healthStatus","repoUrl","sourcePath"],"additionalProperties":false}},"unmanaged":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"kind":{"type":"string"}},"required":["name","namespace","kind"],"additionalProperties":false}},"owner":{"anyOf":[{"type":"object","properties":{"workload":{"type":"string"},"namespace":{"type":["string","null"]},"application":{"type":["string","null"]},"repoUrl":{"type":["string","null"]},"sourcePath":{"type":["string","null"]},"targetRevision":{"type":["string","null"]},"syncStatus":{"type":["string","null"]},"healthStatus":{"type":["string","null"]}},"required":["workload","namespace","application","repoUrl","sourcePath","targetRevision","syncStatus","healthStatus"],"additionalProperties":false},{"type":"null"}]}},"required":["subject","filter","drift","unmanaged","owner"],"additionalProperties":false},"ImageResult":{"type":"object","properties":{"mode":{"type":"string","enum":["ranked","byimage","workload","hygiene"]},"ranking":{"type":"array","items":{"type":"object","properties":{"image":{"type":"string"},"containers":{"type":"integer","minimum":0},"pods":{"type":"integer","minimum":0}},"required":["image","containers","pods"],"additionalProperties":false}},"byImage":{"anyOf":[{"type":"object","properties":{"term":{"type":"string"},"matchedImages":{"type":"array","items":{"type":"string"}},"containers":{"type":"integer","minimum":0},"pods":{"type":"integer","minimum":0},"workloadCount":{"type":"integer","minimum":0},"workloads":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"kind":{"type":["string","null"]}},"required":["name","namespace","kind"],"additionalProperties":false}}},"required":["term","matchedImages","containers","pods","workloadCount","workloads"],"additionalProperties":false},{"type":"null"}]},"workload":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"type":{"type":["string","null"]},"namespace":{"type":["string","null"]},"imageCount":{"type":"integer","minimum":0},"containers":{"type":"array","items":{"type":"object","properties":{"name":{"type":["string","null"]},"image":{"type":"string"},"isInit":{"type":"boolean"},"cpuRequest":{"type":["string","null"]},"memRequest":{"type":["string","null"]},"memLimit":{"type":["string","null"]},"pod":{"type":["string","null"]}},"required":["name","image","isInit","cpuRequest","memRequest","memLimit","pod"],"additionalProperties":false}}},"required":["name","type","namespace","imageCount","containers"],"additionalProperties":false},{"type":"null"}]},"hygiene":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["nomemlimit","nocpurequest","skew"]},"items":{"type":"array","items":{"type":"object","properties":{"workload":{"type":"string"},"namespace":{"type":["string","null"]},"container":{"type":["string","null"]},"image":{"type":"string"},"detail":{"type":["string","null"]}},"required":["workload","namespace","container","image","detail"],"additionalProperties":false}}},"required":["kind","items"],"additionalProperties":false},{"type":"null"}]}},"required":["mode","ranking","byImage","workload","hygiene"],"additionalProperties":false},"NetpolResult":{"type":"object","properties":{"mode":{"type":"string","enum":["uncovered","policy","segmentation"]},"filter":{"type":"object","properties":{"namespace":{"type":"string"},"term":{"type":"string"}},"required":["namespace","term"],"additionalProperties":false},"uncovered":{"type":"array","items":{"type":"object","properties":{"namespace":{"type":"string"},"pods":{"type":"integer","minimum":0},"workloads":{"type":"array","items":{"type":"string"}}},"required":["namespace","pods","workloads"],"additionalProperties":false}},"covered":{"type":"boolean"},"ingressCovered":{"type":"boolean"},"policies":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"policyTypes":{"type":"array","items":{"type":"string"}},"ingressRuleCount":{"type":"integer","minimum":0},"egressRuleCount":{"type":"integer","minimum":0},"podSelector":{"type":["string","null"]}},"required":["name","namespace","policyTypes","ingressRuleCount","egressRuleCount","podSelector"],"additionalProperties":false}},"reachers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"type":{"type":["string","null"]},"pods":{"type":"integer","minimum":0}},"required":["name","namespace","type","pods"],"additionalProperties":false}}},"required":["mode","filter","uncovered","covered","ingressCovered","policies","reachers"],"additionalProperties":false},"StorageResult":{"type":"object","properties":{"mode":{"type":"string","enum":["footprint","orphanpv","unclaimedpvc","byclass"]},"filter":{"type":"object","properties":{"term":{"type":"string"}},"required":["term"],"additionalProperties":false},"claims":{"type":"array","items":{"type":"object","properties":{"pvc":{"type":"string"},"pvcNamespace":{"type":["string","null"]},"pv":{"type":["string","null"]},"storageClass":{"type":["string","null"]},"capacity":{"type":["string","null"]},"pods":{"type":"array","items":{"type":"string"}}},"required":["pvc","pvcNamespace","pv","storageClass","capacity","pods"],"additionalProperties":false}},"orphanPvs":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"storageClass":{"type":["string","null"]},"capacity":{"type":["string","null"]},"reclaimPolicy":{"type":["string","null"]}},"required":["name","storageClass","capacity","reclaimPolicy"],"additionalProperties":false}},"unclaimedPvcs":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"pv":{"type":["string","null"]},"storageClass":{"type":["string","null"]}},"required":["name","namespace","pv","storageClass"],"additionalProperties":false}},"classes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"pvs":{"type":"integer","minimum":0},"pvcs":{"type":"integer","minimum":0}},"required":["name","pvs","pvcs"],"additionalProperties":false}}},"required":["mode","filter","claims","orphanPvs","unclaimedPvcs","classes"],"additionalProperties":false},"PdbResult":{"type":"object","properties":{"scope":{"type":"string","enum":["nopdb","workload","pdb"]},"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"kind":{"type":["string","null"]}},"required":["name","namespace","kind"],"additionalProperties":false}},"workload":{"anyOf":[{"type":"object","properties":{"totalPods":{"type":"integer","minimum":0},"protectedPods":{"type":"integer","minimum":0},"pdbs":{"type":"array","items":{"type":"string"}}},"required":["totalPods","protectedPods","pdbs"],"additionalProperties":false},{"type":"null"}]},"pdb":{"anyOf":[{"type":"object","properties":{"pods":{"type":"integer","minimum":0},"podSample":{"type":"array","items":{"type":"string"}},"workloads":{"type":"array","items":{"type":"string"}}},"required":["pods","podSample","workloads"],"additionalProperties":false},{"type":"null"}]}},"required":["scope","items","workload","pdb"],"additionalProperties":false},"ScalingResult":{"type":"object","properties":{"mode":{"type":"string","enum":["nohpa","autoscaled","target"]},"filter":{"type":"object","properties":{"namespace":{"type":"string"},"term":{"type":"string"}},"required":["namespace","term"],"additionalProperties":false},"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"kind":{"type":["string","null"]},"replicas":{"anyOf":[{"type":"number"},{"type":"null"}]},"hpa":{"type":["string","null"]},"minReplicas":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxReplicas":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["name","namespace","kind","replicas","hpa","minReplicas","maxReplicas"],"additionalProperties":false}},"target":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"resolvedKind":{"type":["string","null"]},"minReplicas":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxReplicas":{"anyOf":[{"type":"number"},{"type":"null"}]},"hpas":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"minReplicas":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxReplicas":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["name","namespace","minReplicas","maxReplicas"],"additionalProperties":false}},"scales":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"kind":{"type":["string","null"]}},"required":["name","namespace","kind"],"additionalProperties":false}}},"required":["name","namespace","resolvedKind","minReplicas","maxReplicas","hpas","scales"],"additionalProperties":false},{"type":"null"}]}},"required":["mode","filter","items","target"],"additionalProperties":false},"TopologyResult":{"type":"object","properties":{"resolved":{"anyOf":[{"type":"object","properties":{"term":{"type":"string"},"service":{"type":"string"}},"required":["term","service"],"additionalProperties":false},{"type":"null"}]},"level":{"type":"string","enum":["context","container","component","dynamic"]},"nodeCount":{"type":"integer","minimum":0},"edgeCount":{"type":"integer","minimum":0},"byType":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"count":{"type":"integer","minimum":0}},"required":["type","count"],"additionalProperties":false}}},"required":["resolved","level","nodeCount","edgeCount","byType"],"additionalProperties":false},"PriorityResult":{"type":"object","properties":{"kind":{"type":"string","enum":["nopriority","ladder","target"]},"filter":{"type":"object","properties":{"namespace":{"type":"string"},"term":{"type":"string"}},"required":["namespace","term"],"additionalProperties":false},"nopriority":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"namespace":{"type":["string","null"]},"kind":{"type":"string"},"pods":{"type":"integer","minimum":0}},"required":["name","namespace","kind","pods"],"additionalProperties":false}},"ladder":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"pods":{"type":"integer","minimum":0}},"required":["name","value","pods"],"additionalProperties":false}},"classes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"pods":{"type":"integer","minimum":0}},"required":["name","value","pods"],"additionalProperties":false}}},"required":["kind","filter","nopriority","ladder","classes"],"additionalProperties":false},"AskResult":{"oneOf":[{"type":"object","required":["question","intent","summary","resolve"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"resolve"},"resolve":{"oneOf":[{"$ref":"#/components/schemas/ResolveResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","resolved","nodes","edges"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"connections"}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","inventory"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"inventory"},"inventory":{"oneOf":[{"$ref":"#/components/schemas/InventoryResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","events"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"events"},"events":{"oneOf":[{"$ref":"#/components/schemas/EventsResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","hotspots"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"hotspots"},"hotspots":{"oneOf":[{"$ref":"#/components/schemas/HotspotsResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","incident"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"incident"},"incident":{"oneOf":[{"$ref":"#/components/schemas/IncidentResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","failures"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"failures"},"failures":{"oneOf":[{"$ref":"#/components/schemas/EventFeedResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","deployments"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"deployments"},"deployments":{"oneOf":[{"$ref":"#/components/schemas/DeploymentsResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","audit"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"audit"},"audit":{"oneOf":[{"$ref":"#/components/schemas/EventFeedResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","nodeEvents"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"nodes"},"nodeEvents":{"oneOf":[{"$ref":"#/components/schemas/EventFeedResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","deployImpact"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"deployimpact"},"deployImpact":{"oneOf":[{"$ref":"#/components/schemas/DeployImpactResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","commonCause"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"commoncause"},"commonCause":{"oneOf":[{"$ref":"#/components/schemas/CommonCauseResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","blastRadius"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"blast"},"blastRadius":{"oneOf":[{"$ref":"#/components/schemas/BlastRadiusResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","spof"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"spof"},"spof":{"oneOf":[{"$ref":"#/components/schemas/SpofResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","path"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"path"},"path":{"oneOf":[{"$ref":"#/components/schemas/PathResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","cascade"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"cascade"},"cascade":{"oneOf":[{"$ref":"#/components/schemas/CascadeResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","alertImpact"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"alertimpact"},"alertImpact":{"oneOf":[{"$ref":"#/components/schemas/AlertImpactResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","monitor"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"monitor"},"monitor":{"oneOf":[{"$ref":"#/components/schemas/MonitorResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","dataStore"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"datastore"},"dataStore":{"oneOf":[{"$ref":"#/components/schemas/DataStoreResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","flow"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"flow"},"flow":{"oneOf":[{"$ref":"#/components/schemas/FlowResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","externalDep"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"externaldep"},"externalDep":{"oneOf":[{"$ref":"#/components/schemas/ExternalDepResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","alerts"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"alerts"},"alerts":{"oneOf":[{"$ref":"#/components/schemas/AlertsResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","alertNoise"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"alertnoise"},"alertNoise":{"oneOf":[{"$ref":"#/components/schemas/AlertNoiseResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","calls"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"calls"},"calls":{"oneOf":[{"$ref":"#/components/schemas/CallsResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","serviceTree"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"servicetree"},"serviceTree":{"oneOf":[{"$ref":"#/components/schemas/ServiceTreeResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","alertCause"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"alertcause"},"alertCause":{"oneOf":[{"$ref":"#/components/schemas/AlertCauseResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","access"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"access"},"access":{"oneOf":[{"$ref":"#/components/schemas/AccessResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","exposure"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"exposure"},"exposure":{"oneOf":[{"$ref":"#/components/schemas/ExposureResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","orphans"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"orphans"},"orphans":{"oneOf":[{"$ref":"#/components/schemas/OrphansResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","coverage"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"coverage"},"coverage":{"oneOf":[{"$ref":"#/components/schemas/CoverageResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","slo"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"slo"},"slo":{"oneOf":[{"$ref":"#/components/schemas/SloResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","tenancy"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"tenancy"},"tenancy":{"oneOf":[{"$ref":"#/components/schemas/TenancyResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","sharedConfig"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"sharedconfig"},"sharedConfig":{"oneOf":[{"$ref":"#/components/schemas/SharedConfigResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","alertRules"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"alertrules"},"alertRules":{"oneOf":[{"$ref":"#/components/schemas/AlertRulesResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","gitops"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"gitops"},"gitops":{"oneOf":[{"$ref":"#/components/schemas/GitopsResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","image"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"image"},"image":{"oneOf":[{"$ref":"#/components/schemas/ImageResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","netpol"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"netpol"},"netpol":{"oneOf":[{"$ref":"#/components/schemas/NetpolResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","storage"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"storage"},"storage":{"oneOf":[{"$ref":"#/components/schemas/StorageResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","pdb"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"pdb"},"pdb":{"oneOf":[{"$ref":"#/components/schemas/PdbResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","scaling"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"scaling"},"scaling":{"oneOf":[{"$ref":"#/components/schemas/ScalingResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","topology","nodes","edges"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"topology"},"topology":{"oneOf":[{"$ref":"#/components/schemas/TopologyResult"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["question","intent","summary","priority"],"properties":{"question":{"type":"string"},"summary":{"type":"string"},"countOnly":{"type":"boolean"},"elapsedMs":{"type":"integer","minimum":0},"resolved":{"oneOf":[{"type":"object","required":["term","hashedID","name","type"],"properties":{"term":{"type":"string"},"hashedID":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/GraphEdge"}},"intent":{"const":"priority"},"priority":{"oneOf":[{"$ref":"#/components/schemas/PriorityResult"},{"type":"null"}]}},"additionalProperties":false}],"discriminator":{"propertyName":"intent"}}}},"paths":{"/v1/query":{"post":{"operationId":"queryGraph","tags":["Graph"],"summary":"Run a query-language query (deterministic, no LLM).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryRequest"}}}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskResult"}}}},"400":{"description":"Bad query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"504":{"description":"Query timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/projects/{projectId}/query":{"post":{"operationId":"queryProjectGraph","tags":["Graph"],"summary":"Run a deterministic graph query for an Anyshift project","security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/ProjectId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryRequest"}}}},"responses":{"200":{"description":"Query result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskResult"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Project events graph unconfigured or internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"504":{"description":"Query timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/ask":{"post":{"operationId":"askGraph","tags":["Graph"],"summary":"Ask a natural-language graph question.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskRequest"}}}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskResult"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"504":{"description":"Query timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/projects/{projectId}/ask":{"post":{"operationId":"askProjectGraph","tags":["Graph"],"summary":"Ask a natural-language graph question for an Anyshift project","security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/ProjectId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskRequest"}}}},"responses":{"200":{"description":"Answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskResult"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Payload too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Project events graph unconfigured or internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"504":{"description":"Query timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}