Conversation
RyanRiz
requested changes
Jul 20, 2026
RyanRiz
left a comment
Contributor
There was a problem hiding this comment.
- buat response api yang jelas ketika agent membaca sync.yml dan request ke plugin. isinya bisa:
- Current monitor status
- URL
- Status code
- Response time
- Certificate expiration
- Last up/down/check times
- Accurate daily uptime statistics
- Enough history for the Laravel charts
- saat ini data yang dikirim cuma max 100 ke master. lalu di master dihitung history per-90 hari. harusnya langsung dihitung dari uptime-go karena memiliki akses data secara langsung, jadi laravel master hanya meload hasil generate summary
- jangan generate sync.yml pakai relative runtime path. bisa buat
initcommand yang menggenerate required folder, configs, etc. supaya bisa dijalankan oleh ansible saat install dan update - tambahlan:
params:
with_stat: true
ke sync, karena jika di request saat ini hasilnya:
[
{
"url": "https://example.com",
"is_up": true,
"status_code": 200,
"response_time": 120,
"histories": []
}
]history nya kosong, jadi harusnya seperti:
[
{
"url": "https://example.com",
"enabled": true,
"is_up": true,
"status_code": 200,
"response_time": 120,
"last_check": "2026-07-20T11:00:00Z",
"stats": [
{
"date": "2026-07-19",
"uptime_percentage": 99.65,
"total_checks": 288
},
{
"date": "2026-07-20",
"uptime_percentage": 100,
"total_checks": 132
}
],
"histories": []
}
]
Contributor
Additional defects
|
… report calculation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.