Skip to main content

connection

Typed specification

Generated by the pinned ess generate --kind docs from adapters/prometheus/spec/ess. Structural validation establishes consistency; behaviour, storage and cross-record predicates remain implementation obligations.

The Prometheus local connection — its native configuration, the prometheus.bearer profile and the configured identity probe that proves a credential.

connectors_prometheus.connection is one of connectors_prometheus's bounded contexts. Back to the index.

Types​

BearerEntry​

connectors_prometheus.connection.BearerEntry is a record of one field:

  • token — connectors_prometheus.connection.BearerToken

BearerProfile​

connectors_prometheus.connection.BearerProfile is a record of nine fields:

  • id — String
  • scheme — String
  • capability — String
  • purpose — String
  • subject — String
  • minimum_scopes — List<String>
  • evidence_lifetime_ms — Integer
  • entry — String
  • identity — connectors_prometheus.connection.IdentityProbe

Every value satisfies id == "prometheus.bearer", scheme == "http_bearer", capability == "http-bearer", purpose == "service_account", subject == "app", minimum_scopes.count == 0, evidence_lifetime_ms == 60000 and entry == "connectors_prometheus.connection.BearerEntry".

BearerToken​

connectors_prometheus.connection.BearerToken wraps String and is not interchangeable with one: the whole value of naming it separately is the crossings the model then refuses. Its characters are drawn from !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_abcdefghijklmnopqrstuvwxyz{|}~. Every value satisfies (value.count >= 1 and value.count <= 8192)`.

IdentityProbe​

connectors_prometheus.connection.IdentityProbe is a record of four fields:

  • method — String
  • path — String
  • source — connectors_prometheus.connection.IdentitySource
  • kind — String

Every value satisfies method == "GET", path == "api/v1/status/buildinfo" and kind == "prometheus.connection".

IdentitySource​

connectors_prometheus.connection.IdentitySource is one of configuration.

InstanceId​

connectors_prometheus.connection.InstanceId wraps String and is not interchangeable with one: the whole value of naming it separately is the crossings the model then refuses. Its characters are drawn from ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-. Every value satisfies (value.count >= 1 and value.count <= 128).

LocalConfiguration​

connectors_prometheus.connection.LocalConfiguration is a record of five fields:

  • format — String
  • instance — connectors_prometheus.connection.InstanceId
  • base_url — String
  • ca_file — Optional<String>, which may be absent
  • query_scope — connectors_prometheus.connection.QueryScope

Every value satisfies format == "connectors-prometheus-local/1", (base_url.count >= 8 and base_url.count <= 512), base_url starts_with "https://" and (ca_file.count >= 1 and ca_file.count <= 4096).

QueryScope​

connectors_prometheus.connection.QueryScope is a record of one field:

  • allowed_matchers — List<String>

Every value satisfies allowed_matchers.count == 0.

Three of the types above are reached by nothing else in this system: connectors_prometheus.connection.BearerEntry, connectors_prometheus.connection.BearerProfile and connectors_prometheus.connection.LocalConfiguration. No entity, view, command, event, error or crossing names them, so it is either vocabulary something outside this specification uses or a leftover — and only a person can tell which.


Generated from connectors_prometheus v1 · model digest 5a394966bc5849079b110e96a78cbdd0e0f71db4e76dbe085d6826e6c18c9495 · contract digest slice-sha256/2:d57f5d8bcaf5575c3d644988478bec66572b5ee8a61c1e8d3d7e4d6d2f27cd9d. Do not edit this file; change the specification and regenerate it with ess generate.