mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
2f38662d4d
* feat: heartbeat * feat: independent heartbeat model
25 lines
562 B
Go
25 lines
562 B
Go
package heartbeat
|
|
|
|
import "time"
|
|
|
|
type Config struct {
|
|
BotID string
|
|
OwnerUserID string
|
|
Interval int
|
|
}
|
|
|
|
type Log struct {
|
|
ID string `json:"id"`
|
|
BotID string `json:"bot_id"`
|
|
Status string `json:"status"`
|
|
ResultText string `json:"result_text"`
|
|
ErrorMessage string `json:"error_message"`
|
|
Usage any `json:"usage,omitempty"`
|
|
StartedAt time.Time `json:"started_at"`
|
|
CompletedAt *time.Time `json:"completed_at,omitempty"`
|
|
}
|
|
|
|
type ListLogsResponse struct {
|
|
Items []Log `json:"items"`
|
|
}
|