Skip to content
This repository has been archived by the owner on Apr 11, 2019. It is now read-only.

add HostTemplate #13

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions host.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type Host struct {
// Fields below used only when creating hosts
GroupIds HostGroupIds `json:"groups,omitempty"`
Interfaces HostInterfaces `json:"interfaces,omitempty"`
Templates HostTemplates `json:"templates,omitempty"`
}

type Hosts []Host
Expand Down
7 changes: 7 additions & 0 deletions host_template.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package zabbix

type HostTemplate struct {
Templateid string `json:"templateid"`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename to TemplateId.

}

type HostTemplates []HostTemplate