Skip to content

Commit efdd71a

Browse files
Merge pull request #145 from code42/PL-111378/document-health-issues
update docs for health issue types
2 parents d15dc87 + 7f33cd4 commit efdd71a

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
how a consumer would use the library or CLI tool (e.g. adding unit tests, updating documentation, etc) are not captured
1010
here.
1111

12+
## Unreleased
13+
14+
### Added
15+
16+
- Improved documentation to clarify that all agent health issues can be queried and filtered using the CLI and SDK.
17+
1218
## 2.2.3 - 2025-02-05
1319

1420
### Fixed

src/_incydr_cli/cmds/agents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def agents():
5757
default=None,
5858
help="Filter by unhealthy agents. Defaults to returning all unhealthy agents."
5959
" Pass a comma delimited list of health issue types to filter by unhealthy agents that have (at least) any "
60-
"of the given health issue type(s). Health issue types include the following: NOT_CONNECTING, NOT_SENDING_SECURITY_EVENTS.",
60+
"of the given health issue type(s). Health issue types include the following: NOT_CONNECTING, NOT_SENDING_SECURITY_EVENTS, SECURITY_INGEST_REJECTED, MISSING_MACOS_PERMISSION_FULL_DISK_ACCESS, MISSING_MACOS_PERMISSION_ACCESSIBILITY.",
6161
cls=incompatible_with("healthy"),
6262
)
6363
@table_format_option

src/_incydr_sdk/agents/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_page(
5454
* **sort_dir**: `SortDirection` - `asc` or `desc`. The direction in which to sort the response based on the corresponding key. Defaults to `asc`.
5555
* **sort_key**: [`SortKeys`][agents-sort-keys] - Values on which the response will be sorted. Defaults to agent name.
5656
* **agent_healthy**: `bool | None` - Optionally retrieve agents with this health status. Agents that have no health issue types are considered healthy.
57-
* **agent_health_issue_types**: `List[str] | str` - Optionally retrieve agents that have (at least) any of the given issue type(s). Health issue types include the following: `NOT_CONNECTING`, `NOT_SENDING_SECURITY_EVENTS`.
57+
* **agent_health_issue_types**: `List[str] | str` - Optionally retrieve agents that have (at least) any of the given issue type(s). Health issue types include the following: `NOT_CONNECTING`, `NOT_SENDING_SECURITY_EVENTS`, `SECURITY_INGEST_REJECTED`, `MISSING_MACOS_PERMISSION_FULL_DISK_ACCESS`, `MISSING_MACOS_PERMISSION_ACCESSIBILITY`.
5858
5959
**Returns**: An [`AgentsPage`][agentspage-model] object.
6060
"""

src/_incydr_sdk/agents/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Agent(ResponseModel):
4747
* **serial_number**: `str` Authenticated agent serial number.
4848
* **active**: `bool` If the agent status is active.
4949
* **agent_type**: [`AgentType`][agent-type] The type of agent.
50-
* **agent_health_issue_types: `List[str]` List of health issues with the agent. Health issue types include the following: `NOT_CONNECTING`, `NOT_SENDING_SECURITY_EVENTS`.
50+
* **agent_health_issue_types: `List[str]` List of health issues with the agent. Health issue types include the following: `NOT_CONNECTING`, `NOT_SENDING_SECURITY_EVENTS`, `SECURITY_INGEST_REJECTED`, `MISSING_MACOS_PERMISSION_FULL_DISK_ACCESS`, `MISSING_MACOS_PERMISSION_ACCESSIBILITY`.
5151
* **app_version**: `str` The app version of the agent.
5252
* **product_version**: `str` The product version of the agent.
5353
* **last_connected**: `datetime` The time the agent last connected to a Code42 Authority server.

0 commit comments

Comments
 (0)