zammad

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2025 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	TicketID    int    `json:"ticket_id,omitempty"`
	Internal    bool   `json:"internal"`
	Subject     string `json:"subject"`
	Body        string `json:"body"`
	ContentType string `json:"content_type"`        // "text/html"
	Type        string `json:"type"`                // "phone"
	Sender      string `json:"sender"`              // "Agent"
	TimeUnit    string `json:"time_unit,omitempty"` // "15"
}

Article represents a Zammad Ticket Article

type NewTicket added in v0.2.0

type NewTicket struct {
	ID            int     `json:"id,omitempty"`
	Title         string  `json:"title"`
	Group         string  `json:"group"`
	Customer      string  `json:"customer"`
	IcingaHost    string  `json:"icinga_host"`
	IcingaService string  `json:"icinga_service"`
	Article       Article `json:"article,omitempty"`
}

Ticket represents a Zammad Ticket We use two custom field attributes for the tickets icinga_host and icinga_service to track existing tickets

type Ticket

type Ticket struct {
	ID            int    `json:"id,omitempty"`
	Title         string `json:"title"`
	GroupID       int    `json:"group_id"`
	CustomerID    int    `json:"customer_id"`
	IcingaHost    string `json:"icinga_host"`
	IcingaService string `json:"icinga_service"`
	ArticleIDs    []int  `json:"article_ids,omitempty"`
}

type TicketSearchResult

type TicketSearchResult struct {
	Tickets []Ticket `json:"Ticket"`
}

TicketSearchResult represents the results from a search We currently only care about the assets in which the tickets are contained

type TicketState

type TicketState string
const (
	NewTicketState    TicketState = "new"
	OpenTicketState   TicketState = "open"
	ClosedTicketState TicketState = "closed"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL