Input for creating a new PathSensor. A new id is assigned server-side.
Fields
| Input Field | Description |
|---|---|
orgId - OrganizationId!
|
The owning organization. |
name - String!
|
Human-readable label. |
description - String!
|
Describes what this sensor monitors. |
path - String!
|
The absolute path or directory this sensor monitors. |
inclusions - [String!]
|
Optional glob patterns; when non-empty, only paths matching an inclusion under the monitored path are recorded. |
exclusions - [String!]
|
Optional glob patterns; paths matching an exclusion under the monitored path are skipped. |
recursive - Boolean!
|
Whether the sensor walks directories recursively. Must be false when collectContents is true. Default = false |
collectAcls - Boolean!
|
Whether the endpoint collects ACL and extended-attribute metadata for each matched file. Default = false |
interval - Duration!
|
How often the endpoint runs this sensor. |
collectChecksum - Boolean!
|
Whether the endpoint computes a checksum for each matched file. |
checksumMaxBytes - Int64!
|
Maximum file size in bytes to checksum when collectChecksum is true. |
collectContents - Boolean!
|
Whether file bytes are uploaded with each result. |
contentMaxBytes - Int64!
|
Maximum bytes per file upload when collectContents is true. |
osTarget - PathSensorOsTargetInput!
|
OS target (platform plus optional Linux distribution restriction). |
enabled - Boolean!
|
Whether the sensor is active immediately. |
Example
Example
{
"orgId": "615f3b3b28284380e28a7342",
"name": "abc123",
"description": "xyz789",
"path": "abc123",
"inclusions": ["xyz789"],
"exclusions": ["xyz789"],
"recursive": true,
"collectAcls": true,
"interval": "600000000",
"collectChecksum": false,
"checksumMaxBytes": "-8589934592",
"collectContents": false,
"contentMaxBytes": "-8589934592",
"osTarget": PathSensorOsTargetInput,
"enabled": false
}