mirror of
https://github.com/TwiN/gatus.git
synced 2024-10-05 17:51:57 +02:00
Don't return unnecessary data
This commit is contained in:
parent
d58a256628
commit
afdbb1ea77
@ -10,7 +10,7 @@ type Result struct {
|
|||||||
HTTPStatus int `json:"status"`
|
HTTPStatus int `json:"status"`
|
||||||
|
|
||||||
// DNSRCode is the response code of a DNS query in a human readable format
|
// DNSRCode is the response code of a DNS query in a human readable format
|
||||||
DNSRCode string `json:"dns-rcode"`
|
DNSRCode string `json:"-"`
|
||||||
|
|
||||||
// Body is the response body
|
// Body is the response body
|
||||||
Body []byte `json:"-"`
|
Body []byte `json:"-"`
|
||||||
@ -40,5 +40,5 @@ type Result struct {
|
|||||||
Timestamp time.Time `json:"timestamp"`
|
Timestamp time.Time `json:"timestamp"`
|
||||||
|
|
||||||
// CertificateExpiration is the duration before the certificate expires
|
// CertificateExpiration is the duration before the certificate expires
|
||||||
CertificateExpiration time.Duration `json:"certificate-expiration,omitempty"`
|
CertificateExpiration time.Duration `json:"-"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user