summaryrefslogtreecommitdiffstats
path: root/pkg/icingadb/v1/comment.go
blob: b720fac8a821f5f6644765f891b7585c5b6a7fd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package v1

import (
	"github.com/icinga/icingadb/pkg/contracts"
	"github.com/icinga/icingadb/pkg/types"
)

type Comment struct {
	EntityWithChecksum `json:",inline"`
	EnvironmentMeta    `json:",inline"`
	NameMeta           `json:",inline"`
	ObjectType         string            `json:"object_type"`
	HostId             types.Binary      `json:"host_id"`
	ServiceId          types.Binary      `json:"service_id"`
	Author             string            `json:"author"`
	Text               string            `json:"text"`
	EntryType          types.CommentType `json:"entry_type"`
	EntryTime          types.UnixMilli   `json:"entry_time"`
	IsPersistent       types.Bool        `json:"is_persistent"`
	IsSticky           types.Bool        `json:"is_sticky"`
	ExpireTime         types.UnixMilli   `json:"expire_time"`
	ZoneId             types.Binary      `json:"zone_id"`
}

func NewComment() contracts.Entity {
	return &Comment{}
}