Units API.

See the Weblate's Web API documentation for detailed description of the API.

GET /api/units/2284112/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "translation": "https://translate.checkmk.com/api/translations/checkmk/dev/de/?format=api",
    "source": [
        "The host name computation computes the name of the host that should have the corresponding Checkmk services. The computation is done by the OpenTelemetry collector and the result is stored in the \"{attr}\" attribute. For every rule configured here, the provided fields are concatenated in the order they are listed. The first rule that results in a non-empty value is used. For example:\n{startol}A first rule consisting of one field \"Value of attribute: service.name\" will set \"{attr}\" to the value of that attribute, if it is present. This attribute will be set to the prometheus scrape jobs name, for example.{newli}A second rule consisting of one field \"Value of attribute: container.name\" will set \"{attr}\" to the value of that attribute, if it is present and \"{attr}\" has not been set by the previous rule.{newli}A third rule consisting of two fields \"Resource attribute value: custom_attr\" and \"Literal string: some_suffix\" will set \"{attr}\" to \"VALUEsome_suffix\", if the attribute is present and \"{attr}\" has not been set by the previous rules.{newli}A last rule consisting of one field \"Literal string: fallback_host\" will set all \"{attr}\" attributes that are not yet filled to \"fallback_host\".{endol}"
    ],
    "previous_source": "",
    "target": [
        "Die Berechnung des Host-Namens ermittelt den Namen des Hosts, der die entsprechenden Checkmk-Dienste haben sollte. Die Berechnung erfolgt durch den OpenTelemetry-Kollektor und das Ergebnis wird im Attribut \"{attr}\" gespeichert. Für jede hier konfigurierte Regel werden die angegebenen Felder in der Reihenfolge, in der sie aufgelistet sind, aneinandergereiht. Die erste Regel, die einen nicht leeren Wert ergibt, wird verwendet. Zum Beispiel:\n{startol}Eine erste Regel, die aus einem Feld \"Wert des Attributs: service.name\" besteht, setzt \"{attr}\" auf den Wert dieses Attributs, wenn es vorhanden ist. Dieses Attribut wird zum Beispiel auf den Namen des Prometheus scrape jobs gesetzt.{newli}Eine zweite Regel, die aus einem Feld \"Wert des Attributs: container.name\" besteht, setzt \"{attr}\" auf den Wert dieses Attributs, wenn es vorhanden ist und \"{attr}\" nicht durch die vorherige Regel gesetzt wurde. {newli}Eine dritte Regel, die aus zwei Feldern \"Wert des Ressourcenattributs: custom_attr\" und \"Literal string: some_suffix\" besteht, setzt \"{attr}\" auf \"VALUEsome_suffix\", wenn das Attribut vorhanden ist und \"{attr}\" nicht durch die vorherigen Regeln gesetzt wurde.{newli}Eine letzte Regel, die aus einem Feld \"Literal string: fallback_host\" besteht, setzt alle \"{attr}\"-Attribute, die noch nicht gefüllt sind, auf \"fallback_host\".{endol}"
    ],
    "id_hash": 3854645432104731523,
    "content_hash": 3854645432104731523,
    "location": "cmk/gui/cce/otel_collector/_modes.py:501",
    "context": "",
    "note": "",
    "flags": "python-brace-format",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 16741,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 188,
    "source_unit": "https://translate.checkmk.com/api/units/2284088/?format=api",
    "priority": 100,
    "id": 2284112,
    "web_url": "https://translate.checkmk.com/translate/checkmk/dev/de/?checksum=b57e739903af4383",
    "url": "https://translate.checkmk.com/api/units/2284112/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2024-12-20T06:02:37.973510Z"
}