File path sensors · GraphQL input

UpdatePathSensorInput input

Input for updating an existing PathSensor.

Fields

Input Field Description
id - PathSensorId! The PathSensor to update.
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.

Example

Example

{
  "id": PathSensorId,
  "name": "xyz789",
  "description": "xyz789",
  "path": "abc123",
  "inclusions": ["xyz789"],
  "exclusions": ["abc123"],
  "recursive": false,
  "collectAcls": true,
  "interval": "600000000",
  "collectChecksum": false,
  "checksumMaxBytes": "-8589934592",
  "collectContents": true,
  "contentMaxBytes": "-8589934592",
  "osTarget": PathSensorOsTargetInput,
  "enabled": true
}