zammad

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 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 Assets

type Assets struct {
	Tickets map[string]Ticket `json:"Ticket"`
}

Assets represents the assets in the search result

type Ticket

type Ticket 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 TicketSearchResult

type TicketSearchResult struct {
	Assets Assets `json:"assets"`
}

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