Units API.

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

GET /api/units/1154340/?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/en/?format=api",
    "source": [
        "Checks <tt>fileinfo</tt> and <tt>sap_hana_fileinfo</tt> monitor the age and size of a single file. Each file information that is sent by the agent will create one service. By defining grouping patterns you can switch to checks <tt>fileinfo.groups</tt> or <tt>sap_hana_fileinfo.groups</tt>. These checks monitor a list of files at once. You can set levels not only for the total size and the age of the oldest/youngest file but also on the count. You can define one or several patterns for a group containing <tt>*</tt> and <tt>?</tt>, for example <tt>/var/log/apache/*.log</tt>. Please see Python's fnmatch for more information regarding globbing patterns and special characters. If the pattern begins with a tilde then this pattern is interpreted as a regular expression instead of as a filename globbing pattern and <tt>*</tt> and <tt>?</tt> are treated differently. For files contained in a group the discovery will automatically create a group service instead of single services for each file. This rule also applies when you use manually configured checks instead of inventorized ones. Furthermore, the current time/date in a configurable format may be included in the include pattern. The syntax is as follows: $DATE:format-spec$ or $YESTERDAY:format-spec$, where format-spec is a list of time format directives of the unix date command. Example: $DATE:%Y%m%d$ is todays date, e.g. 20140127. A pattern of /var/tmp/backups/$DATE:%Y%m%d$.txt would search for .txt files with todays date  as name in the directory /var/tmp/backups. The YESTERDAY syntax simply subtracts one day from the reference time."
    ],
    "previous_source": "",
    "target": [
        "Checks <tt>fileinfo</tt> and <tt>sap_hana_fileinfo</tt> monitor the age and size of a single file. Each file information that is sent by the agent will create one service. By defining grouping patterns you can switch to checks <tt>fileinfo.groups</tt> or <tt>sap_hana_fileinfo.groups</tt>. These checks monitor a list of files at once. You can set levels not only for the total size and the age of the oldest/youngest file but also on the count. You can define one or several patterns for a group containing <tt>*</tt> and <tt>?</tt>, for example <tt>/var/log/apache/*.log</tt>. Please see Python's fnmatch for more information regarding globbing patterns and special characters. If the pattern begins with a tilde then this pattern is interpreted as a regular expression instead of as a filename globbing pattern and <tt>*</tt> and <tt>?</tt> are treated differently. For files contained in a group the discovery will automatically create a group service instead of single services for each file. This rule also applies when you use manually configured checks instead of inventorized ones. Furthermore, the current time/date in a configurable format may be included in the include pattern. The syntax is as follows: $DATE:format-spec$ or $YESTERDAY:format-spec$, where format-spec is a list of time format directives of the unix date command. Example: $DATE:%Y%m%d$ is todays date, e.g. 20140127. A pattern of /var/tmp/backups/$DATE:%Y%m%d$.txt would search for .txt files with todays date  as name in the directory /var/tmp/backups. The YESTERDAY syntax simply subtracts one day from the reference time."
    ],
    "id_hash": -1673426394743212114,
    "content_hash": -1673426394743212114,
    "location": "cmk/gui/plugins/wato/check_parameters/fileinfo_groups.py:33",
    "context": "",
    "note": "",
    "flags": "",
    "labels": [],
    "state": 100,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 3088,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 237,
    "source_unit": "https://translate.checkmk.com/api/units/1154340/?format=api",
    "priority": 100,
    "id": 1154340,
    "web_url": "https://translate.checkmk.com/translate/checkmk/dev/en/?checksum=68c6cb8f679177ae",
    "url": "https://translate.checkmk.com/api/units/1154340/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2024-05-06T07:26:22.594461Z"
}