Přeskočit na obsah

Tato stránka byla automaticky přeložena z angličtiny, jediného jazyka, ve kterém se tento web píše. Číst originál.

environment.explain

Původ snímku: pro každé pole, co o něm rozhodlo — konstanta z doby kompilace, soubor, příkaz nebo cache — který resolver je četl a jak moc lze důvěřovat. Zúžit na jedno pole nebo na prefix lze jménem.

Původ snímku: pro každé pole, co o něm rozhodlo — konstanta z doby kompilace, soubor, příkaz nebo cache — který resolver je četl a jak moc lze důvěřovat. Zúžit na jedno pole nebo na prefix lze jménem.

Zpřístupnění

Kde je tato jedna definice dosažitelná. Absence je explicitní: povrch, který není uveden, ji nenese.

povrchjako
MCPnástroj majordomus_environment_explain
HTTPGET /api/v1/environment/explain operationId environment.explain
příkazová řádka—

Schémata

Kanonický vstup a výstup z typů Rustu; schéma nástroje MCP a parametry a odpovědi OpenAPI se odvozují z nich.

input · ExplainInput

Provenienci kterého pole vysvětlit.
vlastnosttyppovinnépopis
pole string | null ne Pole v tečkovém tvaru (services.url, capabilities.objects); každé pole, když chybí.
JSON Schema
{
  "additionalProperties": false,
  "description": "Which field's provenance to explain.",
  "properties": {
    "field": {
      "description": "The field in dotted form (`services.url`, `capabilities.objects`); every field when\nabsent.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "title": "ExplainInput",
  "type": "object"
}

výstup · EnvironmentProvenance

Odkud pocházejí hodnoty jednoho snímku.
vlastnosttyppovinnépopis
pole array ano Jedna položka na pole, v pořadí, v jakém je resolver vytvořil.
rozlišení reference ano Jak byl rozřešen snapshot za těmito položkami.
JSON Schema
{
  "$defs": {
    "Confidence": {
      "description": "How far a resolved value can be trusted.",
      "oneOf": [
        {
          "const": "exact",
          "description": "Read from its canonical source during this resolution.",
          "type": "string"
        },
        {
          "const": "cached",
          "description": "Read from a cache whose fingerprint still matches its inputs.",
          "type": "string"
        },
        {
          "const": "unknown",
          "description": "Not resolved.",
          "type": "string"
        }
      ]
    },
    "FieldSource": {
      "description": "Where one field of the snapshot came from. This is what makes an inferred system\ndebuggable: every fact can name the thing that decided it, so \"why does it say that\"\nis answered by the tool rather than by reading its source.",
      "properties": {
        "confidence": {
          "$ref": "#/$defs/Confidence",
          "description": "How certain the value is."
        },
        "field": {
          "description": "The field, in dotted form: `services.cockpit.url`, `vcs.branch`.",
          "type": "string"
        },
        "resolver": {
          "description": "The part of this executable that read it.",
          "type": "string"
        },
        "source": {
          "description": "What decided it: a file, a command, a compile-time constant, the cache.",
          "type": "string"
        },
        "value": {
          "description": "The value as it appears in the snapshot, rendered for a person; absent for a field\nthat resolved to nothing.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "field",
        "source",
        "resolver",
        "confidence"
      ],
      "type": "object"
    },
    "Resolution": {
      "description": "How completely a snapshot was resolved. Carried in the snapshot because a consumer must\nbe able to tell \"there is no server running\" from \"nobody looked\".",
      "oneOf": [
        {
          "const": "fast",
          "description": "Only what is cheap enough for a shell prompt; the rest from the cache.",
          "type": "string"
        },
        {
          "const": "full",
          "description": "Everything, including the index. Writes the cache.",
          "type": "string"
        }
      ]
    }
  },
  "description": "Where the values of one snapshot came from.",
  "properties": {
    "fields": {
      "description": "One entry per field, in the order the resolver produced them.",
      "items": {
        "$ref": "#/$defs/FieldSource"
      },
      "type": "array"
    },
    "resolution": {
      "$ref": "#/$defs/Resolution",
      "description": "How the snapshot behind these entries was resolved."
    }
  },
  "required": [
    "resolution",
    "fields"
  ],
  "title": "EnvironmentProvenance",
  "type": "object"
}

Politiky

benchmark
povinné — cíl na každém transportu, který expozice deklaruje; případy jsou ty ze vstupního typu
cache
vypnuto — každé volání spustí handler

Cíle benchmarku

Odvozeno z registru pro tento repozitář: jeden požadavek na transport a případy, které poskytuje typ vstupu. Celá matice je na stránce měření výkonu.

transportstatepřípadytargets
directpokryto2vše
one-field
mcppokryto2vše
one-field
httppokryto2vše
one-field

Prohledává názvy a popisy všech stránek, které tento web publikuje.