package PB.Facts

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message FactSet

facts.proto:66

One fact set - the first level of the document - as a producer reports it. Not mentioning a set at all is the third state, and the important one: it leaves whatever the core already has, so a transient failure never blanks the inventory. `removed` is the explicit "stop holding this" (the docker socket went away), and `error` says a set this module produces could not be collected this round, which keeps the previous value and is reported next to the document so a consumer can show the reason rather than silence.

Used in: FactsMessage.Response

message FactsMessage

facts.proto:106

Facts message. Module -> core: what this module produced this round.

message FactsMessage.Response

facts.proto:107

Used in: FactsMessage

message FactsQueryMessage

facts.proto:88

Facts query message. Core -> module: collect the fact sets you are configured to produce.

message FactsQueryMessage.Request

facts.proto:89

Used in: FactsQueryMessage

message FactsRequestMessage

facts.proto:129

Facts request message. Consumer (REST, the `nscp test` console) -> core: read the document. There is no set command on purpose. Facts are produced by fetchFacts on the core's schedule from what each module's own configuration enables, so a module cannot push inventory the operator did not ask for.

message FactsRequestMessage.Request

facts.proto:130

Used in: FactsRequestMessage

enum FactsRequestMessage.Request.Command

facts.proto:131

Used in: Request

message FactsResponseMessage

facts.proto:153

Facts response message. The document (or the subtree asked for) and what a consumer needs to render and cache it.

message FactsResponseMessage.Response

facts.proto:154

Used in: FactsResponseMessage

message Field

facts.proto:45

One key/value pair of an object. Spelled out as a message in a `repeated` rather than a protobuf `map` because the order is ours to decide: the core stores the fields of every object sorted by key, which is what makes two collections of the same inventory compare equal byte for byte (and, through that, what keeps the revision from moving when nothing changed).

Used in: Object

message List

facts.proto:54

Used in: Value

message Object

facts.proto:50

Used in: FactSet, Value

message Value

facts.proto:26

One value in the document. The oneof is the value's type, and there is no null member on purpose: an unknown value is omitted from the document, never written as null, so a consumer never has to tell "absent" from "present but nothing".

Used in: FactsResponseMessage.Response, Field, List