model

package
v0.0.0-...-4ef8731 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDataNotFoundError

func CreateDataNotFoundError(dataType string, id string) error

Types

type DataNotFoundError

type DataNotFoundError struct {
	// contains filtered or unexported fields
}

func (DataNotFoundError) Error

func (d DataNotFoundError) Error() string

type Error

type Error struct {
	Name    string   `json:"name"`
	Message string   `json:"message"`
	Tags    []string `json:"tags"`
}

type Markdown

type Markdown struct {
	Content string
}

type RuleEntity

type RuleEntity struct {
	RuleType    string `json:"rule_type"`
	MatcherType string `json:"matcher_type"`
	RuleContent string `json:"rule_content"`
	RunbookId   string `json:"runbook_id"`
	ID          string `json:"id" bson:"_id,omitempty"`
}

type RunbookDetails

type RunbookDetails struct {
	Name  string            `json:"name"`
	Steps []RunbookStepData `json:"steps"`
}

type RunbookRef

type RunbookRef struct {
	Id string `json:"id"`
}

type RunbookStepData

type RunbookStepData struct {
	Id      string `json:"id,omitempty"`
	Summary string `json:"summary"`
	Type    string `json:"type"`
}

type RunbookStepDetailsEntity

type RunbookStepDetailsEntity struct {
	RunbookStepData
	Location RunbookStepLocation
}

type RunbookStepLocation

type RunbookStepLocation struct {
	LocationType string
	Ref          string
}

type RunbookSummary

type RunbookSummary struct {
	Id    string   `json:"id"`
	Name  string   `json:"name"`
	Steps []string `json:"steps"`
}

type Session

type Session struct {
	Runbook         RunbookRef        `json:"runbook"`
	SessionId       string            `json:"session_id"`
	Stats           SessionStatistics `json:"stats"`
	TriggeringError Error             `json:"error"`
}

type SessionStatistics

type SessionStatistics struct {
	CompletedSteps map[string]time.Time `json:"completed_steps"`
}

Jump to

Keyboard shortcuts

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