|
|
|
@@ -453,6 +453,43 @@ type CommitImageResult struct { |
|
|
|
Payload map[string]interface{} `json:"payload"` |
|
|
|
} |
|
|
|
|
|
|
|
type GetJobLogParams struct { |
|
|
|
QueryInfo QueryInfo `json:"query"` |
|
|
|
} |
|
|
|
|
|
|
|
type QueryInfo struct { |
|
|
|
Size string `json:"size"` |
|
|
|
Sort string `json:"sort"` |
|
|
|
MatchInfo MatchInfo `json:"match"` |
|
|
|
} |
|
|
|
|
|
|
|
type MatchInfo struct { |
|
|
|
PodName string `json:"kubernetes.pod.name"` |
|
|
|
} |
|
|
|
|
|
|
|
type GetJobLogResult struct { |
|
|
|
ScrollID string `json:"_scroll_id"` |
|
|
|
Took string `json:"took"` |
|
|
|
TimedOut bool `json:"timed_out"` |
|
|
|
Shards struct { |
|
|
|
Total int `json:"total"` |
|
|
|
Successful int `json:"successful"` |
|
|
|
Skipped int `json:"skipped"` |
|
|
|
Failed int `json:"failed"` |
|
|
|
} `json:"_shards"` |
|
|
|
Hits struct { |
|
|
|
Hits []struct { |
|
|
|
Index string `json:"_index"` |
|
|
|
Type string `json:"_type"` |
|
|
|
ID string `json:"_id"` |
|
|
|
Source struct { |
|
|
|
Message string `json:"message"` |
|
|
|
} `json:"_source"` |
|
|
|
Sort []int `json:"sort"` |
|
|
|
} `json:"hits"` |
|
|
|
} `json:"hits"` |
|
|
|
} |
|
|
|
|
|
|
|
type CloudBrainResult struct { |
|
|
|
Code string `json:"code"` |
|
|
|
Msg string `json:"msg"` |
|
|
|
|