model

package
v0.0.0-...-df92b0f Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: GPL-3.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 CustomField

type CustomField struct {
	ID    *int    `json:"ID"`
	Value *string `json:"Value"`
}

type OrgFields

type OrgFields struct {
	SLALevel string `json:"SLALevel"`
}

type Organization

type Organization struct {
	URL                string       `json:"URL"`
	ID                 int          `json:"ID"`
	Name               string       `json:"Name"`
	CreatedAt          string       `json:"CreatedAt"`
	UpdatedAt          string       `json:"UpdatedAt"`
	DomainNames        []string     `json:"DomainNames"`
	Tags               []string     `json:"Tags"`
	OrganizationFields []*OrgFields `json:"OrganizationFields"`
}

type Ticket

type Ticket struct {
	URL            string         `json:"url"`
	ID             int            `json:"id"`
	Createdat      string         `json:"createdat"`
	Updatedat      string         `json:"updatedat"`
	Subject        string         `json:"subject"`
	Description    string         `json:"description"`
	Priority       string         `json:"priority"`
	Status         string         `json:"status"`
	Assigneeid     string         `json:"assigneeid"`
	Requesterid    string         `json:"requesterid"`
	Organizationid string         `json:"organizationid"`
	Groupid        int            `json:"groupid"`
	Tags           []string       `json:"tags"`
	Customfields   []*CustomField `json:"customfields"`
	SLA            string         `json:"sla"`
}

type Tickets

type Tickets struct {
	Tickets []*Ticket `json:"tickets"`
	Count   int       `json:"Count"`
}

type Trigger

type Trigger struct {
	URL         string             `json:"URL"`
	ID          int                `json:"ID"`
	Title       string             `json:"Title"`
	RawTitle    string             `json:"RawTitle"`
	Position    int                `json:"Position"`
	Active      bool               `json:"Active"`
	Conditions  *TriggerConditions `json:"Conditions"`
	Actions     []*TriggerAction   `json:"Actions"`
	Description string             `json:"Description"`
	UpdatedAt   string             `json:"UpdatedAt"`
	CreatedAt   string             `json:"CreatedAt"`
}

type TriggerAction

type TriggerAction struct {
	Field string `json:"Field"`
	Value string `json:"Value"`
}

type TriggerCondition

type TriggerCondition struct {
	Field    string `json:"Field"`
	Operator string `json:"Operator"`
	Value    string `json:"Value"`
}

type TriggerConditions

type TriggerConditions struct {
	Any []*TriggerCondition `json:"Any"`
	All []*TriggerCondition `json:"All"`
}

type Triggers

type Triggers struct {
	Triggers []*Trigger `json:"Triggers"`
	Count    int        `json:"Count"`
}

type User

type User struct {
	Active       bool   `json:"active"`
	Createdat    string `json:"createdat"`
	Defaultgroup string `json:"defaultgroup"`
	Email        string `json:"email"`
	ID           string `json:"id"`
	Lastlogin    string `json:"lastlogin"`
	Name         string `json:"name"`
	Timezone     string `json:"timezone"`
	Updatedat    string `json:"updatedat"`
}

type View

type View struct {
	ID          int    `json:"ID"`
	Title       string `json:"Title"`
	Active      bool   `json:"Active"`
	Description string `json:"Description"`
	CreatedAt   string `json:"CreatedAt"`
	UpdatedAt   string `json:"UpdatedAt"`
}

type ViewCount

type ViewCount struct {
	ViewID int    `json:"ViewID"`
	URL    string `json:"URL"`
	Value  int    `json:"Value"`
	Pretty string `json:"Pretty"`
	Fresh  bool   `json:"Fresh"`
}

type Views

type Views struct {
	Views []*View `json:"Views"`
	Count int     `json:"Count"`
}

type ZendeskConfigInput

type ZendeskConfigInput struct {
	User   string `json:"user"`
	Apikey string `json:"apikey"`
	URL    string `json:"url"`
}

Jump to

Keyboard shortcuts

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