Компания и доступ · Чтение
Система · Журналы · Источники
system_logs_sources
Попробуйте три запроса
Получить данные
- Вы указываетеОбъект
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Система / Журналы / Источники» выполни чтение в текущей компании. Выведи кратко: sources, sampleLimit.
- sources
- Поле ответа
- sampleLimit
- Поле ответа
- hasMore
- Продолжение
Уточнить условия
- Вы указываетеЗадача
- ПомощникСхема входа
- Вы получаетеУсловия чтения
Запрос в чат
Для «Система / Журналы / Источники» перечисли допустимые параметры hours. Уточни, какие значения нужны для моей задачи, до запроса данных.
- hours
- Параметр чтения
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Система / Журналы / Источники» объясни sources, sampleLimit. Отметь отсутствующие значения.
- sources
- Поле ответа
- sampleLimit
- Поле ответа
- hasMore
- Продолжение
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
List services and modules observed in a bounded sample of this company's recent structured server logs. This is not a complete service inventory. Use the exact service names with system_logs_search. Company-wide current administration required.
Параметры запроса
- hours
- Lookback window in hours; samples at most 200 recent tagged entries. обязательно по схеме · integer · по умолчанию 24 · минимум 1 · максимум 168
Что вернёт команда
- sources
- Observed company sources. обязательно по схеме · array
- sampleLimit
- Maximum sampled records; not a total count. обязательно по схеме · number
- hasMore
- Есть ли ещё одна страница результата. обязательно по схеме · boolean
- coverage
- Limits of the evidence. обязательно по схеме · string
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"hours": {
"default": 24,
"description": "Lookback window in hours; samples at most 200 recent tagged entries.",
"type": "integer",
"minimum": 1,
"maximum": 168
}
},
"required": [
"hours"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"service": {
"type": "string",
"description": "Exact service filter."
},
"module": {
"description": "Explicit module tag, when present.",
"type": [
"string",
"null"
]
},
"sampledEntries": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Matching entries in this bounded sample only."
},
"latestAt": {
"type": "string",
"description": "Latest observed timestamp."
}
},
"required": [
"service",
"module",
"sampledEntries",
"latestAt"
],
"additionalProperties": false
},
"description": "Observed company sources."
},
"sampleLimit": {
"type": "number",
"const": 200,
"description": "Maximum sampled records; not a total count."
},
"hasMore": {
"type": "boolean",
"description": "Cloud Logging indicated more matching entries."
},
"coverage": {
"type": "string",
"description": "Limits of the evidence."
}
},
"required": [
"sources",
"sampleLimit",
"hasMore",
"coverage"
],
"additionalProperties": false
}