Allow set of single unix or windows path check

This commit is contained in:
bcmmbaga
2024-03-14 14:32:40 +03:00
parent 60f9f08ecb
commit cc60df7805
4 changed files with 24 additions and 20 deletions

View File

@@ -976,9 +976,6 @@ components:
description: Path to the process executable file in a Windows operating system
type: string
example: "C:\ProgramData\NetBird\netbird.exe"
required:
- path
- windows_path
Location:
description: Describe geographical location information
type: object

View File

@@ -916,10 +916,10 @@ type PostureCheckUpdate struct {
// Process Describe the operational activity within peer's system.
type Process struct {
// Path Path to the process executable file in a Unix-like operating system
Path string `json:"path"`
Path *string `json:"path,omitempty"`
// WindowsPath Path to the process executable file in a Windows operating system
WindowsPath string `json:"windows_path"`
WindowsPath *string `json:"windows_path,omitempty"`
}
// ProcessCheck Posture Check for binaries exist and are running in the peers system