Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatastoreEntity ¶
type DatastoreEntity struct { Key string `json:"key" datastore:"key"` Value JenkinsData `json:"value" datastore:"value,noindex"` }
DatastoreEntity is used to store data in datastore, and prevent indexing of the huge json
type JenkinsData ¶
type JenkinsData struct { Stages []*JenkinsStage `json:"stages"` Status string `json:"status"` Name string `json:"name"` ID string `json:"id"` BuildID string `json:"build_id"` StartTime int `json:"start_time"` EndTime int `json:"end_time"` Duration int `json:"build_duration"` QueueDuration int `json:"queue_duration"` PauseDuration int `json:"pause_duration"` }
JenkinsData is the topmost level of the flattened structure stored in the database
type JenkinsStage ¶
type JenkinsStage struct { Status string `json:"status"` Name string `json:"name"` Logs []*Log `json:"log"` LogLength int `json:"log_length"` SubStages []*JenkinsStage `json:"substage"` StartTime int `json:"start_time"` Duration int `json:"duration"` Task string `json:"task"` Description string `json:"description"` }
JenkinsStage holds the output from a given stage
type JobData ¶
type JobData struct { Links struct { Self Link `json:"self"` Artifacts Link `json:"artifacts"` } `json:"_links"` Stages []JobStage `json:"stages"` Status string `json:"status"` Name string `json:"name"` ID string `json:"id"` StartTimeMillis int `json:"startTimeMillis"` EndTimeMillis int `json:"endTimeMillis"` DurationMillis int `json:"durationMillis"` QueueDurationMillis int `json:"queueDurationMillis"` PauseDurationMillis int `json:"pauseDurationMillis"` }
JobData holds parts of a jenkins job
type JobExecution ¶
type JobExecution struct { Links struct { Self Link `json:"self"` Log Link `json:"log"` } `json:"_links"` ID string `json:"id"` Status string `json:"status"` Name string `json:"name"` StartTimeMillis int `json:"startTimeMillis"` DurationMillis int `json:"durationMillis"` StageFlowNodes []StageFlowNode `json:"stageFlowNodes"` }
JobExecution holds information regarding an execution of a job
type JobStage ¶
type JobStage struct { Links struct { Self Link `json:"self"` } `json:"_links"` ID string `json:"id"` Status string `json:"status"` Name string `json:"name"` }
JobStage holds information about a stage of a job
type Link ¶
type Link struct {
Href string `json:"href"`
}
Link represents a relative uri deeper into the Jenkins API
type NodeLog ¶
type NodeLog struct { NodeID string `json:"nodeId"` NodeStatus string `json:"nodeStatus"` Length int `json:"length"` HasMore bool `json:"hasMore"` Text string `json:"text"` ConsoleURL string `json:"consoleUrl"` }
NodeLog maps to the logs from a node
type StageFlowNode ¶
type StageFlowNode struct { Links struct { Self Link `json:"self"` Log Link `json:"log"` } `json:"_links"` ID string `json:"id"` Status string `json:"status"` Name string `json:"name"` StartTimeMillis int `json:"startTimeMillis"` DurationMillis int `json:"durationMillis"` ParameterDescription string `json:"parameterDescription"` Parents []string `json:"parentNodes"` }
StageFlowNode holds information regarding a flow-node in a stage
Click to show internal directories.
Click to hide internal directories.