Documentation ¶
Overview ¶
Package trmm integrates with the Tactical RMM API.
Package trmm integrates with the Tactical RMM API.
Package trmm integrates with the Tactical RMM API.
Package trmm integrates with the Tactical RMM API.
Package trmm integrates with the Tactical RMM API.
Package trmm integrates with the Tactical RMM API.
Package trmm integrates with the Tactical RMM API.
Package trmm integrates with the Tactical RMM API.
Package trmm integrates with the Tactical RMM API.
Package trmm integrates with the Tactical RMM API.
Package trmm integrates with the Tactical RMM API.
Package trmm integrates with the Tactical RMM API.
Package trmm integrates with the Tactical RMM API.
Package trmm integrates with the Tactical RMM API.
Index ¶
- Constants
- type Accounts
- type AccountsAPIKeys
- type AccountsRoles
- type AccountsUsers
- type Agents
- type AgentsAgents
- type AgentsChecks
- type AgentsHistory
- type AgentsId
- type AgentsIdChecks
- type AgentsIdWinupdatepolicy
- type AgentsNotes
- type AgentsScriptResults
- type AgentsVersions
- type AgentsVersionsAgents
- type Alerts
- type AlertsTemplates
- type AppliedPolicies
- type Checks
- type Client
- type ClientSites
- type ClientWrapper
- type ClientsSitesFailingChecks
- type Core
- type CoreCodeSign
- type CoreCustomFields
- type CoreDashInfo
- type CoreKeyStore
- type CoreSettings
- type CoreVersion
- type CreateClient
- type CreateClientWrapper
- type CreateSite
- type DefaultPolicy
- type Disks
- type EffectivePatchPolicy
- type Logs
- type LogsPendingActions
- type LogsPendingActionsDetails
- type Scripts
- type ScriptsScripts
- type ScriptsSnippets
- type Services
- type Software
- type SoftwareByAgent
- type SoftwareChocos
- type SoftwareSoftware
- type TRMM
- func (t *TRMM) CreateClient(client string, site string) *TRMM
- func (t *TRMM) DeleteAgent(agentId string) *TRMM
- func (t *TRMM) DeleteClient(client string) *TRMM
- func (t *TRMM) Error() error
- func (t *TRMM) ErrorMessage() string
- func (t *TRMM) GetAccountsAPIKeys() *TRMM
- func (t *TRMM) GetAccountsRoles() *TRMM
- func (t *TRMM) GetAccountsUsers() *TRMM
- func (t *TRMM) GetAgentsAgents() *TRMM
- func (t *TRMM) GetAgentsClient(client string) *TRMM
- func (t *TRMM) GetAgentsHistory() *TRMM
- func (t *TRMM) GetAgentsNotes() *TRMM
- func (t *TRMM) GetAgentsVersions() *TRMM
- func (t *TRMM) GetAlertsTemplates() *TRMM
- func (t *TRMM) GetChecks() *TRMM
- func (t *TRMM) GetClient(client string) *TRMM
- func (t *TRMM) GetClients() *TRMM
- func (t *TRMM) GetCoreCodeSign() *TRMM
- func (t *TRMM) GetCoreCustomFields() *TRMM
- func (t *TRMM) GetCoreDashInfo() *TRMM
- func (t *TRMM) GetCoreKeyStore() *TRMM
- func (t *TRMM) GetCoreSettings() *TRMM
- func (t *TRMM) GetCoreVersion() *TRMM
- func (t *TRMM) GetLogsPendingActions() *TRMM
- func (t *TRMM) GetScripts() *TRMM
- func (t *TRMM) GetScriptsSnippets() *TRMM
- func (t *TRMM) GetSoftware() *TRMM
- func (t *TRMM) GetSoftwareChocos() *TRMM
- func (t *TRMM) GetTasks() *TRMM
- func (t *TRMM) HasErrors() bool
- func (t *TRMM) Offboard(client string, force bool) (bool, error)
- func (t *TRMM) RenameClient(client string, newName string) *TRMM
- func (t *TRMM) SetAPIKey(key string) *TRMM
- func (t *TRMM) SetDomain(domain string) *TRMM
- func (t *TRMM) SetTimeout(seconds int) *TRMM
- func (t *TRMM) ToBytes() []byte
- func (t *TRMM) ToCsv(trmmStruct interface{}) *TRMM
- func (t *TRMM) ToJSON(trmmStruct interface{}) *TRMM
- func (t *TRMM) ToString() string
- func (t *TRMM) ValueToCsv(trmmStruct interface{}) *TRMM
- type Tasks
- type TasksActions
- type Winupdate
Constants ¶
const ( API_HEADER = "X-API-KEY" API_TIMEOUT = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accounts ¶
type Accounts struct { APIKeys *[]AccountsAPIKeys Roles *[]AccountsRoles Users *[]AccountsUsers }
Accounts is not an endpoint, rather it gathers all the Accounts* endpoints into a single struct.
type AccountsAPIKeys ¶
type AccountsAPIKeys struct { Id int `json:"id"` Username string `json:"username"` CreatedBy string `json:"created_by"` CreatedTime string `json:"created_time"` ModifiedBy string `json:"modified_by"` ModifiedTime string `json:"modified_time"` Name string `json:"name"` Key string `json:"key"` Expiration interface{} `json:"expiration"` User int `json:"user"` }
type AccountsRoles ¶
type AccountsRoles struct {
Id int `json:"id"`
}
type AccountsUsers ¶
type AccountsUsers struct { Id int `json:"id"` Username string `json:"username"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Email string `json:"email"` IsActive bool `json:"is_active"` LastLogin string `json:"last_login"` LastLoginIp string `json:"last_login_ip"` Role interface{} `json:"role"` BlockDashboardLogin bool `json:"block_dashboard_login"` }
type Agents ¶
type Agents struct { Agents *[]AgentsAgents History *[]AgentsHistory Notes *[]AgentsNotes Versions *AgentsVersions }
type AgentsAgents ¶ added in v0.1.7
type AgentsAgents struct { AgentId string `json:"agent_id" csv:"agent_id"` AlertTemplate interface{} `json:"alert_template" csv:"-"` BlockPolicyInheritance bool `json:"block_policy_inheritance" csv:"block_policy_inheritance"` BootTime float64 `json:"boot_time,float64" csv:"boot_time"` Checks AgentsChecks `json:"checks" csv:"-"` ClientName string `json:"client_name" csv:"client_name"` Description string `json:"description" csv:"description"` Goarch string `json:"goarch" csv:"goarch"` HasPatchesPending bool `json:"has_patches_pending" csv:"has_patches_pending"` Hostname string `json:"hostname" csv:"hostname"` Italic bool `json:"italic" csv:"italic"` LastSeen string `json:"last_seen" csv:"last_seen"` LoggedUsername string `json:"logged_username" csv:"logged_username"` MaintenanceMode bool `json:"maintenance_mode" csv:"maintenance_mode"` MonitoringType string `json:"monitoring_type" csv:"monitoring_type"` NeedsReboot bool `json:"needs_reboot" csv:"needs_reboot"` OverdueDashboardAlert bool `json:"overdue_dashboard_alert" csv:"overdue_dashboard_alert"` OverdueEmailAlert bool `json:"overdue_email_alert" csv:"overdue_email_alert"` OverdueTextAlert bool `json:"overdue_text_alert" csv:"overdue_text_alert"` PendingActionsCount int `json:"pending_actions_count" csv:"pending_actions_count"` Plat string `json:"plat" csv:"plat"` SiteName string `json:"site_name" csv:"site_name"` Status string `json:"status" csv:"status"` }
type AgentsChecks ¶
type AgentsHistory ¶
type AgentsHistory struct { Id int `json:"id" csv:"id"` Time time.Time `json:"time" csv:"time"` Type string `json:"type" csv:"type"` Command string `json:"command" csv:"command"` Status string `json:"status" csv:"status"` Username string `json:"username" csv:"username"` Results interface{} `json:"results" csv:"results"` ScriptResults AgentsScriptResults `json:"script_results" csv:"script_results"` Agent int `json:"agent" csv:"agent"` Script interface{} `json:"script" csv:"script"` }
type AgentsId ¶
type AgentsId struct { Winupdatepolicy []AgentsIdWinupdatepolicy `json:"winupdatepolicy"` Status string `json:"status"` CpuModel []string `json:"cpu_model"` LocalIps string `json:"local_ips"` MakeModel string `json:"make_model"` PhysicalDisks []string `json:"physical_disks"` Graphics string `json:"graphics"` Checks AgentsIdChecks `json:"checks"` Timezone string `json:"timezone"` AllTimezones []string `json:"all_timezones"` Client string `json:"client"` SiteName string `json:"site_name"` CustomFields []interface{} `json:"custom_fields"` PatchesLastInstalled interface{} `json:"patches_last_installed"` LastSeen time.Time `json:"last_seen"` AppliedPolicies AppliedPolicies `json:"applied_policies"` EffectivePatchPolicy EffectivePatchPolicy `json:"effective_patch_policy"` AlertTemplate interface{} `json:"alert_template"` CreatedBy interface{} `json:"created_by"` CreatedTime string `json:"created_time"` ModifiedBy interface{} `json:"modified_by"` ModifiedTime string `json:"modified_time"` Version string `json:"version"` OperatingSystem string `json:"operating_system"` Plat string `json:"plat"` Goarch string `json:"goarch"` PlatRelease interface{} `json:"plat_release"` Hostname string `json:"hostname"` AgentId string `json:"agent_id"` Services []Services `json:"services"` PublicIp string `json:"public_ip"` TotalRam int `json:"total_ram"` Disks []Disks `json:"disks"` BootTime int `json:"boot_time"` LoggedInUsername string `json:"logged_in_username"` LastLoggedInUser string `json:"last_logged_in_user"` MonitoringType string `json:"monitoring_type"` Description string `json:"description"` MeshNodeId string `json:"mesh_node_id"` OverdueEmailAlert bool `json:"overdue_email_alert"` OverdueTextAlert bool `json:"overdue_text_alert"` OverdueDashboardAlert bool `json:"overdue_dashboard_alert"` OfflineTime int `json:"offline_time"` OverdueTime int `json:"overdue_time"` CheckInterval int `json:"check_interval"` NeedsReboot bool `json:"needs_reboot"` ChocoInstalled bool `json:"choco_installed"` WmiDetail struct { Os [][]struct { Name string `json:"Name"` Debug bool `json:"Debug"` CSName string `json:"CSName"` Locale string `json:"Locale"` OSType int `json:"OSType"` Status string `json:"Status"` Caption string `json:"Caption"` CodeSet string `json:"CodeSet"` Primary bool `json:"Primary"` Version string `json:"Version"` BuildType string `json:"BuildType"` SuiteMask int `json:"SuiteMask"` BootDevice string `json:"BootDevice"` CSDVersion string `json:"CSDVersion"` OSLanguage int `json:"OSLanguage"` PAEEnabled bool `json:"PAEEnabled"` BuildNumber string `json:"BuildNumber"` CountryCode string `json:"CountryCode"` Description string `json:"Description"` Distributed bool `json:"Distributed"` InstallDate time.Time `json:"InstallDate"` ProductType int `json:"ProductType"` SystemDrive string `json:"SystemDrive"` MUILanguages []string `json:"MUILanguages"` Manufacturer string `json:"Manufacturer"` Organization string `json:"Organization"` SerialNumber string `json:"SerialNumber"` SystemDevice string `json:"SystemDevice"` LocalDateTime time.Time `json:"LocalDateTime"` NumberOfUsers int `json:"NumberOfUsers"` PlusProductID string `json:"PlusProductID"` LastBootUpTime time.Time `json:"LastBootUpTime"` OSArchitecture string `json:"OSArchitecture"` OSProductSuite int `json:"OSProductSuite"` RegisteredUser string `json:"RegisteredUser"` CurrentTimeZone int `json:"CurrentTimeZone"` EncryptionLevel int `json:"EncryptionLevel"` SystemDirectory string `json:"SystemDirectory"` WindowsDirectory string `json:"WindowsDirectory"` CreationClassName string `json:"CreationClassName"` FreeVirtualMemory int `json:"FreeVirtualMemory"` NumberOfProcesses int `json:"NumberOfProcesses"` PlusVersionNumber string `json:"PlusVersionNumber"` FreePhysicalMemory int `json:"FreePhysicalMemory"` OperatingSystemSKU int `json:"OperatingSystemSKU"` TotalSwapSpaceSize int `json:"TotalSwapSpaceSize"` CSCreationClassName string `json:"CSCreationClassName"` MaxNumberOfProcesses int64 `json:"MaxNumberOfProcesses"` MaxProcessMemorySize int64 `json:"MaxProcessMemorySize"` OtherTypeDescription string `json:"OtherTypeDescription"` NumberOfLicensedUsers int `json:"NumberOfLicensedUsers"` FreeSpaceInPagingFiles int `json:"FreeSpaceInPagingFiles"` TotalVirtualMemorySize int `json:"TotalVirtualMemorySize"` TotalVisibleMemorySize int `json:"TotalVisibleMemorySize"` ServicePackMajorVersion int `json:"ServicePackMajorVersion"` ServicePackMinorVersion int `json:"ServicePackMinorVersion"` SizeStoredInPagingFiles int `json:"SizeStoredInPagingFiles"` ForegroundApplicationBoost int `json:"ForegroundApplicationBoost"` } `json:"os"` Cpu [][]struct { Name string `json:"Name"` Role string `json:"Role"` Level int `json:"Level"` Family int `json:"Family"` Status string `json:"Status"` Caption string `json:"Caption"` Version string `json:"Version"` AssetTag string `json:"AssetTag"` DeviceID string `json:"DeviceID"` ExtClock int `json:"ExtClock"` Revision int `json:"Revision"` Stepping string `json:"Stepping"` UniqueId string `json:"UniqueId"` CpuStatus int `json:"CpuStatus"` DataWidth int `json:"DataWidth"` PartNumber string `json:"PartNumber"` StatusInfo int `json:"StatusInfo"` SystemName string `json:"SystemName"` Description string `json:"Description"` InstallDate time.Time `json:"InstallDate"` L2CacheSize int `json:"L2CacheSize"` L3CacheSize int `json:"L3CacheSize"` PNPDeviceID string `json:"PNPDeviceID"` ProcessorId string `json:"ProcessorId"` ThreadCount int `json:"ThreadCount"` VoltageCaps int `json:"VoltageCaps"` AddressWidth int `json:"AddressWidth"` Architecture int `json:"Architecture"` Availability int `json:"Availability"` ErrorCleared bool `json:"ErrorCleared"` L2CacheSpeed int `json:"L2CacheSpeed"` L3CacheSpeed int `json:"L3CacheSpeed"` Manufacturer string `json:"Manufacturer"` SerialNumber string `json:"SerialNumber"` LastErrorCode int `json:"LastErrorCode"` MaxClockSpeed int `json:"MaxClockSpeed"` NumberOfCores int `json:"NumberOfCores"` ProcessorType int `json:"ProcessorType"` UpgradeMethod int `json:"UpgradeMethod"` CurrentVoltage int `json:"CurrentVoltage"` LoadPercentage int `json:"LoadPercentage"` Characteristics int `json:"Characteristics"` ErrorDescription string `json:"ErrorDescription"` CreationClassName string `json:"CreationClassName"` CurrentClockSpeed int `json:"CurrentClockSpeed"` SocketDesignation string `json:"SocketDesignation"` NumberOfEnabledCore int `json:"NumberOfEnabledCore"` ConfigManagerErrorCode int `json:"ConfigManagerErrorCode"` OtherFamilyDescription string `json:"OtherFamilyDescription"` ConfigManagerUserConfig bool `json:"ConfigManagerUserConfig"` SystemCreationClassName string `json:"SystemCreationClassName"` VMMonitorModeExtensions bool `json:"VMMonitorModeExtensions"` PowerManagementSupported bool `json:"PowerManagementSupported"` NumberOfLogicalProcessors int `json:"NumberOfLogicalProcessors"` VirtualizationFirmwareEnabled bool `json:"VirtualizationFirmwareEnabled"` SecondLevelAddressTranslationExtensions bool `json:"SecondLevelAddressTranslationExtensions"` } `json:"cpu"` Mem [][]struct { SKU string `json:"SKU"` Tag string `json:"Tag"` Name string `json:"Name"` Model string `json:"Model"` Speed int `json:"Speed"` Status string `json:"Status"` Caption string `json:"Caption"` Version string `json:"Version"` Capacity int64 `json:"Capacity"` BankLabel string `json:"BankLabel"` DataWidth int `json:"DataWidth"` PoweredOn bool `json:"PoweredOn"` Removable bool `json:"Removable"` Attributes int `json:"Attributes"` FormFactor int `json:"FormFactor"` MaxVoltage int `json:"MaxVoltage"` MemoryType int `json:"MemoryType"` MinVoltage int `json:"MinVoltage"` PartNumber string `json:"PartNumber"` TotalWidth int `json:"TotalWidth"` TypeDetail int `json:"TypeDetail"` Description string `json:"Description"` InstallDate time.Time `json:"InstallDate"` Replaceable bool `json:"Replaceable"` HotSwappable bool `json:"HotSwappable"` Manufacturer string `json:"Manufacturer"` SerialNumber string `json:"SerialNumber"` DeviceLocator string `json:"DeviceLocator"` PositionInRow int `json:"PositionInRow"` SMBIOSMemoryType int `json:"SMBIOSMemoryType"` ConfiguredVoltage int `json:"ConfiguredVoltage"` CreationClassName string `json:"CreationClassName"` InterleavePosition int `json:"InterleavePosition"` InterleaveDataDepth int `json:"InterleaveDataDepth"` ConfiguredClockSpeed int `json:"ConfiguredClockSpeed"` OtherIdentifyingInfo string `json:"OtherIdentifyingInfo"` } `json:"mem"` Usb [][]struct { Name string `json:"Name"` Status string `json:"Status"` Caption string `json:"Caption"` DeviceID string `json:"DeviceID"` StatusInfo int `json:"StatusInfo"` SystemName string `json:"SystemName"` Description string `json:"Description"` InstallDate time.Time `json:"InstallDate"` PNPDeviceID string `json:"PNPDeviceID"` Availability int `json:"Availability"` ErrorCleared bool `json:"ErrorCleared"` Manufacturer string `json:"Manufacturer"` LastErrorCode int `json:"LastErrorCode"` TimeOfLastReset time.Time `json:"TimeOfLastReset"` ErrorDescription string `json:"ErrorDescription"` CreationClassName string `json:"CreationClassName"` ProtocolSupported int `json:"ProtocolSupported"` MaxNumberControlled int `json:"MaxNumberControlled"` ConfigManagerErrorCode int `json:"ConfigManagerErrorCode"` ConfigManagerUserConfig bool `json:"ConfigManagerUserConfig"` SystemCreationClassName string `json:"SystemCreationClassName"` PowerManagementSupported bool `json:"PowerManagementSupported"` } `json:"usb"` Bios [][]struct { Name string `json:"Name"` Status string `json:"Status"` Caption string `json:"Caption"` CodeSet string `json:"CodeSet"` Version string `json:"Version"` BIOSVersion []string `json:"BIOSVersion"` BuildNumber string `json:"BuildNumber"` Description string `json:"Description"` InstallDate time.Time `json:"InstallDate"` PrimaryBIOS bool `json:"PrimaryBIOS"` ReleaseDate time.Time `json:"ReleaseDate"` Manufacturer string `json:"Manufacturer"` SerialNumber string `json:"SerialNumber"` OtherTargetOS string `json:"OtherTargetOS"` SMBIOSPresent bool `json:"SMBIOSPresent"` CurrentLanguage string `json:"CurrentLanguage"` LanguageEdition string `json:"LanguageEdition"` ListOfLanguages []string `json:"ListOfLanguages"` SMBIOSBIOSVersion string `json:"SMBIOSBIOSVersion"` SoftwareElementID string `json:"SoftwareElementID"` IdentificationCode string `json:"IdentificationCode"` SMBIOSMajorVersion int `json:"SMBIOSMajorVersion"` SMBIOSMinorVersion int `json:"SMBIOSMinorVersion"` InstallableLanguages int `json:"InstallableLanguages"` SoftwareElementState int `json:"SoftwareElementState"` TargetOperatingSystem int `json:"TargetOperatingSystem"` SystemBiosMajorVersion int `json:"SystemBiosMajorVersion"` SystemBiosMinorVersion int `json:"SystemBiosMinorVersion"` EmbeddedControllerMajorVersion int `json:"EmbeddedControllerMajorVersion"` EmbeddedControllerMinorVersion int `json:"EmbeddedControllerMinorVersion"` } `json:"bios"` Disk [][]struct { Name string `json:"Name"` Size int64 `json:"Size"` Index int `json:"Index"` Model string `json:"Model"` Status string `json:"Status"` Caption string `json:"Caption"` SCSIBus int `json:"SCSIBus"` DeviceID string `json:"DeviceID"` SCSIPort int `json:"SCSIPort"` MediaType string `json:"MediaType"` Signature int64 `json:"Signature"` Partitions int `json:"Partitions"` StatusInfo int `json:"StatusInfo"` SystemName string `json:"SystemName"` TotalHeads int `json:"TotalHeads"` Description string `json:"Description"` InstallDate time.Time `json:"InstallDate"` MediaLoaded bool `json:"MediaLoaded"` PNPDeviceID string `json:"PNPDeviceID"` TotalTracks int `json:"TotalTracks"` Availability int `json:"Availability"` ErrorCleared bool `json:"ErrorCleared"` Manufacturer string `json:"Manufacturer"` MaxBlockSize int `json:"MaxBlockSize"` MaxMediaSize int `json:"MaxMediaSize"` MinBlockSize int `json:"MinBlockSize"` SCSITargetId int `json:"SCSITargetId"` SerialNumber string `json:"SerialNumber"` TotalSectors int `json:"TotalSectors"` InterfaceType string `json:"InterfaceType"` LastErrorCode int `json:"LastErrorCode"` NeedsCleaning bool `json:"NeedsCleaning"` BytesPerSector int `json:"BytesPerSector"` TotalCylinders int `json:"TotalCylinders"` SCSILogicalUnit int `json:"SCSILogicalUnit"` SectorsPerTrack int `json:"SectorsPerTrack"` DefaultBlockSize int `json:"DefaultBlockSize"` ErrorDescription string `json:"ErrorDescription"` ErrorMethodology string `json:"ErrorMethodology"` FirmwareRevision string `json:"FirmwareRevision"` CompressionMethod string `json:"CompressionMethod"` CreationClassName string `json:"CreationClassName"` TracksPerCylinder int `json:"TracksPerCylinder"` CapabilityDescriptions []string `json:"CapabilityDescriptions"` ConfigManagerErrorCode int `json:"ConfigManagerErrorCode"` NumberOfMediaSupported int `json:"NumberOfMediaSupported"` ConfigManagerUserConfig bool `json:"ConfigManagerUserConfig"` SystemCreationClassName string `json:"SystemCreationClassName"` PowerManagementSupported bool `json:"PowerManagementSupported"` } `json:"disk"` CompSys [][]struct { Name string `json:"Name"` Model string `json:"Model"` Roles []string `json:"Roles"` Domain string `json:"Domain"` Status string `json:"Status"` Caption string `json:"Caption"` UserName string `json:"UserName"` Workgroup string `json:"Workgroup"` DomainRole int `json:"DomainRole"` NameFormat string `json:"NameFormat"` PowerState int `json:"PowerState"` ResetCount int `json:"ResetCount"` ResetLimit int `json:"ResetLimit"` SystemType string `json:"SystemType"` WakeUpType int `json:"WakeUpType"` BootupState string `json:"BootupState"` DNSHostName string `json:"DNSHostName"` Description string `json:"Description"` InstallDate time.Time `json:"InstallDate"` Manufacturer string `json:"Manufacturer"` PCSystemType int `json:"PCSystemType"` PartOfDomain bool `json:"PartOfDomain"` SystemFamily string `json:"SystemFamily"` ThermalState int `json:"ThermalState"` OEMStringArray []string `json:"OEMStringArray"` PCSystemTypeEx int `json:"PCSystemTypeEx"` CurrentTimeZone int `json:"CurrentTimeZone"` PauseAfterReset int `json:"PauseAfterReset"` ResetCapability int `json:"ResetCapability"` SystemSKUNumber string `json:"SystemSKUNumber"` BootROMSupported bool `json:"BootROMSupported"` ChassisSKUNumber string `json:"ChassisSKUNumber"` DaylightInEffect bool `json:"DaylightInEffect"` PowerSupplyState int `json:"PowerSupplyState"` PrimaryOwnerName string `json:"PrimaryOwnerName"` BootOptionOnLimit int `json:"BootOptionOnLimit"` CreationClassName string `json:"CreationClassName"` HypervisorPresent bool `json:"HypervisorPresent"` InfraredSupported bool `json:"InfraredSupported"` ChassisBootupState int `json:"ChassisBootupState"` NumberOfProcessors int `json:"NumberOfProcessors"` AdminPasswordStatus int `json:"AdminPasswordStatus"` PrimaryOwnerContact string `json:"PrimaryOwnerContact"` TotalPhysicalMemory int64 `json:"TotalPhysicalMemory"` BootOptionOnWatchDog int `json:"BootOptionOnWatchDog"` FrontPanelResetStatus int `json:"FrontPanelResetStatus"` PowerOnPasswordStatus int `json:"PowerOnPasswordStatus"` KeyboardPasswordStatus int `json:"KeyboardPasswordStatus"` AutomaticManagedPagefile bool `json:"AutomaticManagedPagefile"` AutomaticResetBootOption bool `json:"AutomaticResetBootOption"` AutomaticResetCapability bool `json:"AutomaticResetCapability"` NetworkServerModeEnabled bool `json:"NetworkServerModeEnabled"` PowerManagementSupported bool `json:"PowerManagementSupported"` EnableDaylightSavingsTime bool `json:"EnableDaylightSavingsTime"` NumberOfLogicalProcessors int `json:"NumberOfLogicalProcessors"` SupportContactDescription interface{} `json:"SupportContactDescription"` } `json:"comp_sys"` Graphics [][]struct { Name string `json:"Name"` Status string `json:"Status"` Caption string `json:"Caption"` DeviceID string `json:"DeviceID"` AdapterRAM int `json:"AdapterRAM"` DriverDate time.Time `json:"DriverDate"` SystemName string `json:"SystemName"` Description string `json:"Description"` InstallDate time.Time `json:"InstallDate"` Availability int `json:"Availability"` DriverVersion string `json:"DriverVersion"` AdapterDACType string `json:"AdapterDACType"` MaxRefreshRate int `json:"MaxRefreshRate"` MinRefreshRate int `json:"MinRefreshRate"` VideoProcessor string `json:"VideoProcessor"` TimeOfLastReset time.Time `json:"TimeOfLastReset"` CurrentRefreshRate int `json:"CurrentRefreshRate"` MaxMemorySupported int `json:"MaxMemorySupported"` AdapterCompatibility string `json:"AdapterCompatibility"` VideoModeDescription string `json:"VideoModeDescription"` CapabilityDescriptions interface{} `json:"CapabilityDescriptions"` AcceleratorCapabilities interface{} `json:"AcceleratorCapabilities"` InstalledDisplayDrivers string `json:"InstalledDisplayDrivers"` SystemCreationClassName string `json:"SystemCreationClassName"` CurrentVerticalResolution int `json:"CurrentVerticalResolution"` } `json:"graphics"` BaseBoard [][]struct { SKU string `json:"SKU"` Tag string `json:"Tag"` Name string `json:"Name"` Depth int `json:"Depth"` Model string `json:"Model"` Width int `json:"Width"` Height int `json:"Height"` Status string `json:"Status"` Weight int `json:"Weight"` Caption string `json:"Caption"` Product string `json:"Product"` Version string `json:"Version"` PoweredOn bool `json:"PoweredOn"` Removable bool `json:"Removable"` PartNumber string `json:"PartNumber"` SlotLayout string `json:"SlotLayout"` Description string `json:"Description"` InstallDate time.Time `json:"InstallDate"` Replaceable bool `json:"Replaceable"` HostingBoard bool `json:"HostingBoard"` HotSwappable bool `json:"HotSwappable"` Manufacturer string `json:"Manufacturer"` SerialNumber string `json:"SerialNumber"` ConfigOptions []string `json:"ConfigOptions"` CreationClassName string `json:"CreationClassName"` SpecialRequirements bool `json:"SpecialRequirements"` OtherIdentifyingInfo string `json:"OtherIdentifyingInfo"` RequiresDaughterBoard bool `json:"RequiresDaughterBoard"` RequirementsDescription string `json:"RequirementsDescription"` } `json:"base_board"` CompSysProd [][]struct { Name string `json:"Name"` UUID string `json:"UUID"` Vendor string `json:"Vendor"` Caption string `json:"Caption"` Version string `json:"Version"` SKUNumber string `json:"SKUNumber"` Description string `json:"Description"` IdentifyingNumber string `json:"IdentifyingNumber"` } `json:"comp_sys_prod"` NetworkConfig [][]struct { MTU int `json:"MTU"` Index int `json:"Index"` Caption string `json:"Caption"` IPSubnet []string `json:"IPSubnet"` DNSDomain string `json:"DNSDomain"` IGMPLevel int `json:"IGMPLevel"` IPAddress []string `json:"IPAddress"` IPEnabled bool `json:"IPEnabled"` SettingID string `json:"SettingID"` DHCPServer string `json:"DHCPServer"` DefaultTOS int `json:"DefaultTOS"` DefaultTTL int `json:"DefaultTTL"` MACAddress string `json:"MACAddress"` DHCPEnabled bool `json:"DHCPEnabled"` DNSHostName string `json:"DNSHostName"` Description string `json:"Description"` ServiceName string `json:"ServiceName"` WINSScopeID string `json:"WINSScopeID"` DatabasePath string `json:"DatabasePath"` KeepAliveTime int `json:"KeepAliveTime"` TcpWindowSize int `json:"TcpWindowSize"` InterfaceIndex int `json:"InterfaceIndex"` ArpUseEtherSNAP bool `json:"ArpUseEtherSNAP"` DHCPLeaseExpires time.Time `json:"DHCPLeaseExpires"` DefaultIPGateway []string `json:"DefaultIPGateway"` DHCPLeaseObtained time.Time `json:"DHCPLeaseObtained"` KeepAliveInterval int `json:"KeepAliveInterval"` NumForwardPackets int `json:"NumForwardPackets"` TcpNumConnections int `json:"TcpNumConnections"` WINSPrimaryServer string `json:"WINSPrimaryServer"` IPConnectionMetric int `json:"IPConnectionMetric"` IPUseZeroBroadcast bool `json:"IPUseZeroBroadcast"` WINSHostLookupFile string `json:"WINSHostLookupFile"` DeadGWDetectEnabled bool `json:"DeadGWDetectEnabled"` ForwardBufferMemory int `json:"ForwardBufferMemory"` IPSecPermitTCPPorts []interface{} `json:"IPSecPermitTCPPorts"` IPSecPermitUDPPorts []interface{} `json:"IPSecPermitUDPPorts"` PMTUBHDetectEnabled bool `json:"PMTUBHDetectEnabled"` TcpipNetbiosOptions int `json:"TcpipNetbiosOptions"` WINSSecondaryServer string `json:"WINSSecondaryServer"` ArpAlwaysSourceRoute bool `json:"ArpAlwaysSourceRoute"` DNSServerSearchOrder []string `json:"DNSServerSearchOrder"` PMTUDiscoveryEnabled bool `json:"PMTUDiscoveryEnabled"` IPSecPermitIPProtocols []interface{} `json:"IPSecPermitIPProtocols"` IPFilterSecurityEnabled bool `json:"IPFilterSecurityEnabled"` WINSEnableLMHostsLookup bool `json:"WINSEnableLMHostsLookup"` TcpMaxDataRetransmissions int `json:"TcpMaxDataRetransmissions"` DNSDomainSuffixSearchOrder []string `json:"DNSDomainSuffixSearchOrder"` FullDNSRegistrationEnabled bool `json:"FullDNSRegistrationEnabled"` TcpUseRFC1122UrgentPointer bool `json:"TcpUseRFC1122UrgentPointer"` DNSEnabledForWINSResolution bool `json:"DNSEnabledForWINSResolution"` DomainDNSRegistrationEnabled bool `json:"DomainDNSRegistrationEnabled"` TcpMaxConnectRetransmissions int `json:"TcpMaxConnectRetransmissions"` } `json:"network_config"` DesktopMonitor [][]struct { Name string `json:"Name"` Status string `json:"Status"` Caption string `json:"Caption"` DeviceID string `json:"DeviceID"` IsLocked bool `json:"IsLocked"` Bandwidth int `json:"Bandwidth"` StatusInfo int `json:"StatusInfo"` SystemName string `json:"SystemName"` Description string `json:"Description"` DisplayType int `json:"DisplayType"` InstallDate time.Time `json:"InstallDate"` MonitorType string `json:"MonitorType"` PNPDeviceID string `json:"PNPDeviceID"` ScreenWidth int `json:"ScreenWidth"` Availability int `json:"Availability"` ErrorCleared bool `json:"ErrorCleared"` ScreenHeight int `json:"ScreenHeight"` LastErrorCode int `json:"LastErrorCode"` ErrorDescription string `json:"ErrorDescription"` CreationClassName string `json:"CreationClassName"` MonitorManufacturer string `json:"MonitorManufacturer"` PixelsPerXLogicalInch int `json:"PixelsPerXLogicalInch"` PixelsPerYLogicalInch int `json:"PixelsPerYLogicalInch"` ConfigManagerErrorCode int `json:"ConfigManagerErrorCode"` ConfigManagerUserConfig bool `json:"ConfigManagerUserConfig"` SystemCreationClassName string `json:"SystemCreationClassName"` PowerManagementSupported bool `json:"PowerManagementSupported"` } `json:"desktop_monitor"` NetworkAdapter [][]struct { GUID string `json:"GUID"` Name string `json:"Name"` Index int `json:"Index"` Speed float64 `json:"Speed"` Status string `json:"Status"` Caption string `json:"Caption"` DeviceID string `json:"DeviceID"` MaxSpeed int `json:"MaxSpeed"` AutoSense bool `json:"AutoSense"` MACAddress string `json:"MACAddress"` NetEnabled bool `json:"NetEnabled"` StatusInfo int `json:"StatusInfo"` SystemName string `json:"SystemName"` AdapterType string `json:"AdapterType"` Description string `json:"Description"` InstallDate time.Time `json:"InstallDate"` PNPDeviceID string `json:"PNPDeviceID"` ProductName string `json:"ProductName"` ServiceName string `json:"ServiceName"` Availability int `json:"Availability"` ErrorCleared bool `json:"ErrorCleared"` Manufacturer string `json:"Manufacturer"` AdapterTypeID int `json:"AdapterTypeID"` LastErrorCode int `json:"LastErrorCode"` InterfaceIndex int `json:"InterfaceIndex"` NetConnectionID string `json:"NetConnectionID"` PhysicalAdapter bool `json:"PhysicalAdapter"` TimeOfLastReset time.Time `json:"TimeOfLastReset"` ErrorDescription string `json:"ErrorDescription"` NetworkAddresses interface{} `json:"NetworkAddresses"` PermanentAddress string `json:"PermanentAddress"` CreationClassName string `json:"CreationClassName"` MaxNumberControlled int `json:"MaxNumberControlled"` NetConnectionStatus int `json:"NetConnectionStatus"` ConfigManagerErrorCode int `json:"ConfigManagerErrorCode"` ConfigManagerUserConfig bool `json:"ConfigManagerUserConfig"` SystemCreationClassName string `json:"SystemCreationClassName"` PowerManagementSupported bool `json:"PowerManagementSupported"` } `json:"network_adapter"` } `json:"wmi_detail"` TimeZone interface{} `json:"time_zone"` MaintenanceMode bool `json:"maintenance_mode"` BlockPolicyInheritance bool `json:"block_policy_inheritance"` PendingActionsCount int `json:"pending_actions_count"` HasPatchesPending bool `json:"has_patches_pending"` Site int `json:"site"` Policy interface{} `json:"policy"` }
type AgentsIdChecks ¶
type AgentsIdWinupdatepolicy ¶
type AgentsIdWinupdatepolicy struct { Id int `json:"id"` CreatedBy interface{} `json:"created_by"` CreatedTime string `json:"created_time"` ModifiedBy interface{} `json:"modified_by"` ModifiedTime string `json:"modified_time"` Critical string `json:"critical"` Important string `json:"important"` Moderate string `json:"moderate"` Low string `json:"low"` Other string `json:"other"` RunTimeHour int `json:"run_time_hour"` RunTimeFrequency string `json:"run_time_frequency"` RunTimeDays []int `json:"run_time_days"` RunTimeDay int `json:"run_time_day"` RebootAfterInstall string `json:"reboot_after_install"` ReprocessFailedInherit bool `json:"reprocess_failed_inherit"` ReprocessFailed bool `json:"reprocess_failed"` ReprocessFailedTimes int `json:"reprocess_failed_times"` EmailIfFail bool `json:"email_if_fail"` Agent int `json:"agent"` Policy interface{} `json:"policy"` }
type AgentsNotes ¶
type AgentsScriptResults ¶
type AgentsVersions ¶
type AgentsVersions struct { Versions []string `json:"versions" csv:"versions"` Agents []AgentsVersionsAgents `json:"agents" csv:"agents"` }
type AgentsVersionsAgents ¶
type Alerts ¶ added in v0.1.7
type Alerts struct {
Templates *[]AlertsTemplates
}
Alerts represents all Alerts endpoints.
type AlertsTemplates ¶ added in v0.1.7
type AlertsTemplates struct { Id int `json:"id"` AgentSettings bool `json:"agent_settings"` CheckSettings bool `json:"check_settings"` TaskSettings bool `json:"task_settings"` CoreSettings []interface{} `json:"core_settings"` DefaultTemplate bool `json:"default_template"` AppliedCount int `json:"applied_count"` CreatedBy string `json:"created_by"` CreatedTime string `json:"created_time"` ModifiedBy string `json:"modified_by"` ModifiedTime string `json:"modified_time"` Name string `json:"name"` IsActive bool `json:"is_active"` ActionArgs []interface{} `json:"action_args"` ActionTimeout int `json:"action_timeout"` ResolvedActionArgs []interface{} `json:"resolved_action_args"` ResolvedActionTimeout int `json:"resolved_action_timeout"` EmailRecipients []interface{} `json:"email_recipients"` TextRecipients []interface{} `json:"text_recipients"` EmailFrom string `json:"email_from"` AgentEmailOnResolved bool `json:"agent_email_on_resolved"` AgentTextOnResolved bool `json:"agent_text_on_resolved"` AgentAlwaysEmail interface{} `json:"agent_always_email"` AgentAlwaysText interface{} `json:"agent_always_text"` AgentAlwaysAlert bool `json:"agent_always_alert"` AgentPeriodicAlertDays int `json:"agent_periodic_alert_days"` AgentScriptActions bool `json:"agent_script_actions"` CheckEmailAlertSeverity []interface{} `json:"check_email_alert_severity"` CheckTextAlertSeverity []interface{} `json:"check_text_alert_severity"` CheckDashboardAlertSeverity []string `json:"check_dashboard_alert_severity"` CheckEmailOnResolved bool `json:"check_email_on_resolved"` CheckTextOnResolved bool `json:"check_text_on_resolved"` CheckAlwaysEmail interface{} `json:"check_always_email"` CheckAlwaysText interface{} `json:"check_always_text"` CheckAlwaysAlert bool `json:"check_always_alert"` CheckPeriodicAlertDays int `json:"check_periodic_alert_days"` CheckScriptActions bool `json:"check_script_actions"` TaskEmailAlertSeverity []interface{} `json:"task_email_alert_severity"` TaskTextAlertSeverity []interface{} `json:"task_text_alert_severity"` TaskDashboardAlertSeverity []string `json:"task_dashboard_alert_severity"` TaskEmailOnResolved bool `json:"task_email_on_resolved"` TaskTextOnResolved bool `json:"task_text_on_resolved"` TaskAlwaysEmail interface{} `json:"task_always_email"` TaskAlwaysText interface{} `json:"task_always_text"` TaskAlwaysAlert bool `json:"task_always_alert"` TaskPeriodicAlertDays int `json:"task_periodic_alert_days"` TaskScriptActions bool `json:"task_script_actions"` ExcludeWorkstations bool `json:"exclude_workstations"` ExcludeServers bool `json:"exclude_servers"` Action interface{} `json:"action"` ResolvedAction interface{} `json:"resolved_action"` ExcludedSites []interface{} `json:"excluded_sites"` ExcludedClients []interface{} `json:"excluded_clients"` ExcludedAgents []interface{} `json:"excluded_agents"` }
type AppliedPolicies ¶
type AppliedPolicies struct { AgentPolicy interface{} `json:"agent_policy"` SitePolicy interface{} `json:"site_policy"` ClientPolicy interface{} `json:"client_policy"` DefaultPolicy DefaultPolicy `json:"default_policy"` }
type Checks ¶
type Checks struct { Id int `json:"id"` ReadableDesc string `json:"readable_desc"` AssignedTask interface{} `json:"assigned_task"` LastRun interface{} `json:"last_run"` HistoryInfo interface{} `json:"history_info"` AlertTemplate interface{} `json:"alert_template"` CreatedBy string `json:"created_by"` CreatedTime string `json:"created_time"` ModifiedBy string `json:"modified_by"` ModifiedTime string `json:"modified_time"` ManagedByPolicy bool `json:"managed_by_policy"` OverridenByPolicy bool `json:"overriden_by_policy"` ParentCheck interface{} `json:"parent_check"` Name interface{} `json:"name"` CheckType string `json:"check_type"` Status string `json:"status"` MoreInfo interface{} `json:"more_info"` EmailAlert bool `json:"email_alert"` TextAlert bool `json:"text_alert"` DashboardAlert bool `json:"dashboard_alert"` FailsB4Alert int `json:"fails_b4_alert"` FailCount int `json:"fail_count"` OutageHistory interface{} `json:"outage_history"` ExtraDetails interface{} `json:"extra_details"` RunInterval int `json:"run_interval"` AlertSeverity string `json:"alert_severity"` ErrorThreshold int `json:"error_threshold"` WarningThreshold int `json:"warning_threshold"` Disk string `json:"disk"` Ip interface{} `json:"ip"` ScriptArgs []interface{} `json:"script_args"` InfoReturnCodes []interface{} `json:"info_return_codes"` WarningReturnCodes []interface{} `json:"warning_return_codes"` Timeout interface{} `json:"timeout"` Stdout interface{} `json:"stdout"` Stderr interface{} `json:"stderr"` Retcode interface{} `json:"retcode"` ExecutionTime interface{} `json:"execution_time"` History []interface{} `json:"history"` SvcName interface{} `json:"svc_name"` SvcDisplayName interface{} `json:"svc_display_name"` PassIfStartPending interface{} `json:"pass_if_start_pending"` PassIfSvcNotExist bool `json:"pass_if_svc_not_exist"` RestartIfStopped interface{} `json:"restart_if_stopped"` SvcPolicyMode interface{} `json:"svc_policy_mode"` LogName interface{} `json:"log_name"` EventId interface{} `json:"event_id"` EventIdIsWildcard bool `json:"event_id_is_wildcard"` EventType interface{} `json:"event_type"` EventSource interface{} `json:"event_source"` EventMessage interface{} `json:"event_message"` FailWhen interface{} `json:"fail_when"` SearchLastDays interface{} `json:"search_last_days"` NumberOfEventsB4Alert int `json:"number_of_events_b4_alert"` Agent interface{} `json:"agent"` Policy int `json:"policy"` Script interface{} `json:"script"` }
type Client ¶ added in v0.1.9
type Client struct { Id int `json:"id" csv:"id"` Name string `json:"name" csv:"name"` ServerPolicy interface{} `json:"server_policy" csv:"server_policy"` WorkstationPolicy interface{} `json:"workstation_policy" csv:"workstation_policy"` AlertTemplate interface{} `json:"alert_template" csv:"alert_template"` BlockPolicyInheritance bool `json:"block_policy_inheritance" csv:"block_policy_inheritance"` Sites []ClientSites `json:"sites" csv:"sites"` CustomFields []interface{} `json:"custom_fields" csv:"custom_fields"` AgentCount int `json:"agent_count" csv:"agent_count"` MaintenanceMode bool `json:"maintenance_mode" csv:"maintenance_mode"` FailingChecks ClientsSitesFailingChecks `json:"failing_checks" csv:"failing_checks"` }
type ClientSites ¶ added in v0.1.9
type ClientSites struct { Id int `json:"id" csv:"id"` Name string `json:"name" csv:"name"` ServerPolicy interface{} `json:"server_policy" csv:"server_policy"` WorkstationPolicy interface{} `json:"workstation_policy" csv:"workstation_policy"` AlertTemplate interface{} `json:"alert_template" csv:"alert_template"` ClientName string `json:"client_name" csv:"client_name"` Client int `json:"client" csv:"client"` CustomFields []interface{} `json:"custom_fields" csv:"custom_fields"` AgentCount int `json:"agent_count" csv:"agent_count"` BlockPolicyInheritance bool `json:"block_policy_inheritance" csv:"block_policy_inheritance"` MaintenanceMode bool `json:"maintenance_mode" csv:"maintenance_mode"` FailingChecks ClientsSitesFailingChecks `json:"failing_checks" csv:"failing_checks"` }
type ClientWrapper ¶ added in v0.1.9
type ClientWrapper struct {
Client Client `json:"client"`
}
type Core ¶
type Core struct { CodeSign *CoreCodeSign CustomFields *[]CoreCustomFields DashInfo *CoreDashInfo KeyStore *[]CoreKeyStore Settings *CoreSettings Version *CoreVersion }
Core represents all Core endpoints.
type CoreCodeSign ¶ added in v0.1.7
type CoreCodeSign struct {
Token string `json:"token"`
}
type CoreCustomFields ¶
type CoreCustomFields struct { Id int `json:"id" csv:"id"` CreatedBy string `json:"created_by" csv:"created_by"` CreatedTime string `json:"created_time" csv:"created_time"` ModifiedBy string `json:"modified_by" csv:"modified_by"` ModifiedTime string `json:"modified_time" csv:"modified_time"` Order int `json:"order" csv:"order"` Model string `json:"model" csv:"model"` Type string `json:"type" csv:"type"` Options []interface{} `json:"options" csv:"options"` Name string `json:"name" csv:"name"` Required bool `json:"required" csv:"required"` DefaultValueString string `json:"default_value_string" csv:"default_value_string"` DefaultValueBool bool `json:"default_value_bool" csv:"default_value_bool"` DefaultValuesMultiple []interface{} `json:"default_values_multiple" csv:"default_values_multiple"` HideInUi bool `json:"hide_in_ui" csv:"hide_in_ui"` }
type CoreDashInfo ¶
type CoreDashInfo struct { TrmmVersion string `json:"trmm_version" csv:"trmm_version"` LatestTrmmVer string `json:"latest_trmm_ver" csv:"latest_trmm_ver"` DarkMode bool `json:"dark_mode" csv:"dark_mode"` ShowCommunityScripts bool `json:"show_community_scripts" csv:"show_community_scripts"` DblClickAction string `json:"dbl_click_action" csv:"dbl_click_action"` DefaultAgentTblTab string `json:"default_agent_tbl_tab" csv:"default_agent_tbl_tab"` UrlAction interface{} `json:"url_action" csv:"url_action"` ClientTreeSort string `json:"client_tree_sort" csv:"client_tree_sort"` ClientTreeSplitter int `json:"client_tree_splitter" csv:"client_tree_splitter"` LoadingBarColor string `json:"loading_bar_color" csv:"loading_bar_color"` ClearSearchWhenSwitching bool `json:"clear_search_when_switching" csv:"clear_search_when_switching"` Hosted bool `json:"hosted" csv:"hosted"` }
type CoreKeyStore ¶ added in v0.1.7
type CoreKeyStore struct { Id int `json:"id" csv:"id"` CreatedBy string `json:"created_by" csv:"created_by"` CreatedTime time.Time `json:"created_time" csv:"created_time"` ModifiedBy string `json:"modified_by" csv:"modified_by"` ModifiedTime time.Time `json:"modified_time" csv:"modified_time"` Name string `json:"name" csv:"name"` Value string `json:"value" csv:"value"` }
type CoreSettings ¶
type CoreSettings struct { Id int `json:"id" csv:"id"` AllTimezones []string `json:"all_timezones" csv:"all_timezones"` CreatedBy interface{} `json:"created_by" csv:"created_by"` CreatedTime string `json:"created_time" csv:"created_time"` ModifiedBy interface{} `json:"modified_by" csv:"modified_by"` ModifiedTime string `json:"modified_time" csv:"modified_time"` EmailAlertRecipients []interface{} `json:"email_alert_recipients" csv:"email_alert_recipients"` SmsAlertRecipients []interface{} `json:"sms_alert_recipients" csv:"sms_alert_recipients"` TwilioNumber interface{} `json:"twilio_number" csv:"twilio_number"` TwilioAccountSid interface{} `json:"twilio_account_sid" csv:"twilio_account_sid"` TwilioAuthToken interface{} `json:"twilio_auth_token" csv:"twilio_auth_token"` SmtpFromEmail string `json:"smtp_from_email" csv:"smtp_from_email"` SmtpHost string `json:"smtp_host" csv:"smtp_host"` SmtpHostUser string `json:"smtp_host_user" csv:"smtp_host_user"` SmtpHostPassword string `json:"smtp_host_password" csv:"smtp_host_password"` SmtpPort int `json:"smtp_port" csv:"smtp_port"` SmtpRequiresAuth bool `json:"smtp_requires_auth" csv:"smtp_requires_auth"` DefaultTimeZone string `json:"default_time_zone" csv:"default_time_zone"` CheckHistoryPruneDays int `json:"check_history_prune_days" csv:"check_history_prune_days"` ResolvedAlertsPruneDays int `json:"resolved_alerts_prune_days" csv:"resolved_alerts_prune_days"` AgentHistoryPruneDays int `json:"agent_history_prune_days" csv:"agent_history_prune_days"` DebugLogPruneDays int `json:"debug_log_prune_days" csv:"debug_log_prune_days"` AuditLogPruneDays int `json:"audit_log_prune_days" csv:"audit_log_prune_days"` AgentDebugLevel string `json:"agent_debug_level" csv:"agent_debug_level"` ClearFaultsDays int `json:"clear_faults_days" csv:"clear_faults_days"` MeshToken string `json:"mesh_token" csv:"mesh_token"` MeshUsername string `json:"mesh_username" csv:"mesh_username"` MeshSite string `json:"mesh_site" csv:"mesh_site"` MeshDeviceGroup string `json:"mesh_device_group" csv:"mesh_device_group"` AgentAutoUpdate bool `json:"agent_auto_update" csv:"agent_auto_update"` WorkstationPolicy int `json:"workstation_policy" csv:"workstation_policy"` ServerPolicy interface{} `json:"server_policy" csv:"server_policy"` AlertTemplate interface{} `json:"alert_template" csv:"alert_template"` }
type CoreVersion ¶
type CoreVersion struct {
Version string `json:"version" csv:"version"`
}
type CreateClient ¶ added in v0.1.9
type CreateClient struct {
Name string `json:"name"`
}
type CreateClientWrapper ¶ added in v0.1.9
type CreateClientWrapper struct { Client CreateClient `json:"client"` Site CreateSite `json:"site"` CustomFields []string `json:"custom_fiels"` }
type CreateSite ¶ added in v0.1.9
type CreateSite struct {
Name string `json:"name"`
}
type DefaultPolicy ¶
type DefaultPolicy struct { Id int `json:"id"` CreatedBy string `json:"created_by"` CreatedTime string `json:"created_time"` ModifiedBy string `json:"modified_by"` ModifiedTime string `json:"modified_time"` Name string `json:"name"` Desc string `json:"desc"` Active bool `json:"active"` Enforced bool `json:"enforced"` AlertTemplate interface{} `json:"alert_template"` ExcludedSites []interface{} `json:"excluded_sites"` ExcludedClients []interface{} `json:"excluded_clients"` ExcludedAgents []interface{} `json:"excluded_agents"` }
type Disks ¶
type Disks struct { Device string `json:"device"` Fstype string `json:"fstype"` //Total string `json:"total"` Total uint64 `json:"total"` //Used string `json:"used"` Used uint64 `json:"used"` //Free string `json:"free"` Free uint64 `json:"free"` //Percent int `json:"percent"` Percent float64 `json:"percent"` }
type EffectivePatchPolicy ¶
type EffectivePatchPolicy struct { Id int `json:"id"` CreatedBy interface{} `json:"created_by"` CreatedTime string `json:"created_time"` ModifiedBy interface{} `json:"modified_by"` ModifiedTime string `json:"modified_time"` Critical string `json:"critical"` Important string `json:"important"` Moderate string `json:"moderate"` Low string `json:"low"` Other string `json:"other"` RunTimeHour int `json:"run_time_hour"` RunTimeFrequency string `json:"run_time_frequency"` RunTimeDays []int `json:"run_time_days"` RunTimeDay int `json:"run_time_day"` RebootAfterInstall string `json:"reboot_after_install"` ReprocessFailedInherit bool `json:"reprocess_failed_inherit"` ReprocessFailed bool `json:"reprocess_failed"` ReprocessFailedTimes int `json:"reprocess_failed_times"` EmailIfFail bool `json:"email_if_fail"` Agent int `json:"agent"` Policy interface{} `json:"policy"` }
type Logs ¶
type Logs struct { PendingActions *[]LogsPendingActions PendingActionsDetails *[]LogsPendingActionsDetails }
Logs represents all Logs endpoints.
type LogsPendingActions ¶
type LogsPendingActions struct { Id int `json:"id" csv:"id"` Hostname string `json:"hostname" csv:"hostname"` Client string `json:"client" csv:"client"` Site string `json:"site" csv:"site"` Due string `json:"due" csv:"due"` Description string `json:"description" csv:"description"` EntryTime string `json:"entry_time" csv:"entry_time"` ActionType string `json:"action_type" csv:"action_type"` Status string `json:"status" csv:"status"` Cancelable bool `json:"cancelable" csv:"cancelable"` CeleryId interface{} `json:"celery_id" csv:"celery_id"` Details LogsPendingActionsDetails `json:"details" csv:"details"` Agent int `json:"agent" csv:"agent"` }
type LogsPendingActionsDetails ¶
type LogsPendingActionsDetails struct { Url string `json:"url,omitempty" csv:"url,omitempty"` Inno string `json:"inno,omitempty" csv:"inno,omitempty"` Version string `json:"version,omitempty" csv:"version,omitempty"` Name string `json:"name,omitempty" csv:"name,omitempty"` Output string `json:"output,omitempty" csv:"output,omitempty"` Installed bool `json:"installed,omitempty" csv:"installed,omitempty"` }
type Scripts ¶
type Scripts struct { Scripts *[]ScriptsScripts Snippets *[]ScriptsSnippets }
Scripts represents all Scripts endpoints.
type ScriptsScripts ¶ added in v0.1.7
type ScriptsScripts struct { Id int `json:"id"` Name string `json:"name"` Description string `json:"description"` ScriptType string `json:"script_type"` Shell string `json:"shell"` Args []interface{} `json:"args"` Category string `json:"category"` Favorite bool `json:"favorite"` DefaultTimeout int `json:"default_timeout"` Syntax interface{} `json:"syntax"` Filename interface{} `json:"filename"` Hidden bool `json:"hidden"` SupportedPlatforms []interface{} `json:"supported_platforms"` }
type ScriptsSnippets ¶ added in v0.1.7
type Services ¶
type Services struct { Name string `json:"name"` Status string `json:"status"` DisplayName string `json:"display_name"` Binpath string `json:"binpath"` Description string `json:"description"` Username string `json:"username"` Pid int `json:"pid"` StartType string `json:"start_type"` Autodelay bool `json:"autodelay"` }
type Software ¶
type Software struct { Software *[]SoftwareByAgent Chocos *[]SoftwareChocos }
Software represents all Software endpoints.
type SoftwareByAgent ¶ added in v0.1.7
type SoftwareByAgent struct { Id int `json:"id" csv:"id"` Software []SoftwareSoftware `json:"software" csv:"software"` Agent int `json:"agent" csv:"agent"` }
type SoftwareChocos ¶
type SoftwareChocos struct {
Name string `json:"name" csv:"name"`
}
type SoftwareSoftware ¶
type SoftwareSoftware struct { Name string `json:"name" csv:"name"` Version string `json:"version" csv:"version"` Publisher string `json:"publisher" csv:"publisher"` Source string `json:"source" csv:"source"` Location string `json:"location" csv:"location"` Size string `json:"size" csv:"size"` InstallDate string `json:"install_date" csv:"install_date"` Uninstall string `json:"uninstall" csv:"uninstall"` }
type TRMM ¶
type TRMM struct { // List of top-level TRMM endpoints Accounts Accounts Agents Agents // The Alerts endpoint returns a list of alert Templates. Alerts Alerts Checks *[]Checks Clients *[]Client Client *Client Core Core Logs Logs Scripts Scripts Services *[]Services Software Software Tasks *[]Tasks Winupdate *[]Winupdate // contains filtered or unexported fields }
func (*TRMM) CreateClient ¶ added in v0.1.9
func (*TRMM) DeleteAgent ¶ added in v0.1.9
func (*TRMM) DeleteClient ¶ added in v0.1.9
func (*TRMM) ErrorMessage ¶
ErrorMessage returns the error message.
func (*TRMM) GetAccountsAPIKeys ¶
GetAccountsAPIKeys will get the AccountsAPIKeys from the TRMM API.
func (*TRMM) GetAccountsRoles ¶
GetAccountsRoles will get the AccountsRoles from the TRMM API.
func (*TRMM) GetAccountsUsers ¶
GetAccountsUsers will get the AccountsUsers from the TRMM API.
func (*TRMM) GetAgentsAgents ¶ added in v0.1.7
GetAgentsAgents will get the Agents from the TRMM API.
func (*TRMM) GetAgentsClient ¶ added in v0.1.9
func (*TRMM) GetAgentsHistory ¶ added in v0.1.7
GetAgentsHistory will get the AgentsHistory from the TRMM API.
func (*TRMM) GetAgentsNotes ¶ added in v0.1.7
GetAgentsNotes will get the AgentsNotes from the TRMM API.
func (*TRMM) GetAgentsVersions ¶ added in v0.1.7
GetAgentsVersions will get the AgentsVersions from the TRMM API.
func (*TRMM) GetAlertsTemplates ¶ added in v0.1.7
GetAlertsTemplates will get the AlertsTemplates from the TRMM API.
func (*TRMM) GetClients ¶
GetClients will get the Clients from the TRMM API.
func (*TRMM) GetCoreCodeSign ¶ added in v0.1.7
GetCoreCodeSign will get the CoreCodeSign from the TRMM API.
func (*TRMM) GetCoreCustomFields ¶ added in v0.1.7
GetCoreCustomFields will get the CoreCustomFieldsn from the TRMM API.
func (*TRMM) GetCoreDashInfo ¶ added in v0.1.7
GetCoreDashInfo will get the CoreDashInfo from the TRMM API.
func (*TRMM) GetCoreKeyStore ¶ added in v0.1.7
GetCoreKeyStore will get the CoreKeyStore from the TRMM API.
func (*TRMM) GetCoreSettings ¶ added in v0.1.7
GetCoreSettings will get the CoreSettings from the TRMM API.
func (*TRMM) GetCoreVersion ¶ added in v0.1.7
GetCoreVersion will get the CoreVersion from the TRMM API.
func (*TRMM) GetLogsPendingActions ¶ added in v0.1.7
GetLogsPendingActions will get the LogsPendingActions from the TRMM API.
func (*TRMM) GetScripts ¶ added in v0.1.7
GetScripts will get the Scripts from the TRMM API.
func (*TRMM) GetScriptsSnippets ¶ added in v0.1.7
GetScriptsSnippets will get the ScriptsSnippets from the TRMM API.
func (*TRMM) GetSoftware ¶ added in v0.1.7
GetSoftware will get the Software from the TRMM API.
func (*TRMM) GetSoftwareChocos ¶ added in v0.1.7
GetSoftwareChocos will get the SoftwareChocos from the TRMM API.
func (*TRMM) RenameClient ¶ added in v0.1.9
func (*TRMM) SetTimeout ¶
SetTimeout will set the HTTP timeout. Use 0 for no timeout. Do not use 0. Always specify a timeout.
func (*TRMM) ValueToCsv ¶ added in v0.1.7
ValueToCsv will convert the given TRMM struct (single value) to CSV. FIXME: Use reflection to convert a struct into a slice.
type Tasks ¶
type Tasks struct { Id int `json:"id"` Schedule string `json:"schedule"` LastRun string `json:"last_run"` AlertTemplate interface{} `json:"alert_template"` RunTimeDate time.Time `json:"run_time_date"` ExpireDate interface{} `json:"expire_date"` CreatedBy string `json:"created_by"` CreatedTime string `json:"created_time"` ModifiedBy string `json:"modified_by"` ModifiedTime string `json:"modified_time"` ScriptArgs []interface{} `json:"script_args"` Timeout int `json:"timeout"` Actions []TasksActions `json:"actions"` Name string `json:"name"` CollectorAllOutput bool `json:"collector_all_output"` ManagedByPolicy bool `json:"managed_by_policy"` ParentTask interface{} `json:"parent_task"` Retvalue interface{} `json:"retvalue"` Retcode int `json:"retcode"` Stdout string `json:"stdout"` Stderr string `json:"stderr"` ExecutionTime string `json:"execution_time"` Enabled bool `json:"enabled"` ContinueOnError bool `json:"continue_on_error"` Status string `json:"status"` SyncStatus string `json:"sync_status"` AlertSeverity string `json:"alert_severity"` EmailAlert bool `json:"email_alert"` TextAlert bool `json:"text_alert"` DashboardAlert bool `json:"dashboard_alert"` TaskType string `json:"task_type"` WinTaskName string `json:"win_task_name"` DailyInterval int `json:"daily_interval"` RunTimeBitWeekdays interface{} `json:"run_time_bit_weekdays"` WeeklyInterval int `json:"weekly_interval"` RunTimeMinute interface{} `json:"run_time_minute"` MonthlyDaysOfMonth interface{} `json:"monthly_days_of_month"` MonthlyMonthsOfYear interface{} `json:"monthly_months_of_year"` MonthlyWeeksOfMonth interface{} `json:"monthly_weeks_of_month"` TaskRepetitionDuration interface{} `json:"task_repetition_duration"` TaskRepetitionInterval interface{} `json:"task_repetition_interval"` StopTaskAtDurationEnd bool `json:"stop_task_at_duration_end"` RandomTaskDelay interface{} `json:"random_task_delay"` RemoveIfNotScheduled bool `json:"remove_if_not_scheduled"` RunAsapAfterMissed bool `json:"run_asap_after_missed"` TaskInstancePolicy int `json:"task_instance_policy"` Agent int `json:"agent"` Policy interface{} `json:"policy"` CustomField interface{} `json:"custom_field"` Script interface{} `json:"script"` AssignedCheck *int `json:"assigned_check"` CheckName string `json:"check_name,omitempty"` }
Tasks endpoint.
type TasksActions ¶
type Winupdate ¶
type Winupdate struct { Id int `json:"id"` DateInstalled *string `json:"date_installed"` Guid string `json:"guid"` Kb string `json:"kb"` Title string `json:"title"` Installed bool `json:"installed"` Downloaded bool `json:"downloaded"` Description string `json:"description"` Severity string `json:"severity"` Categories []string `json:"categories"` CategoryIds []string `json:"category_ids"` KbArticleIds []string `json:"kb_article_ids"` MoreInfoUrls []string `json:"more_info_urls"` SupportUrl string `json:"support_url"` RevisionNumber int `json:"revision_number"` Action string `json:"action"` Result string `json:"result"` Agent int `json:"agent"` }