mirror of
https://github.com/netdata/netdata.git
synced 2025-04-24 13:14:11 +00:00
go.d whoisquery change default days until expiration 90/30 => 30/15 (#18000)
This commit is contained in:
parent
2ac5c3280a
commit
ecc9c3e29a
2 changed files with 4 additions and 4 deletions
src/go/collectors/go.d.plugin/modules/whoisquery
|
@ -29,8 +29,8 @@ func New() *WhoisQuery {
|
|||
return &WhoisQuery{
|
||||
Config: Config{
|
||||
Timeout: web.Duration(time.Second * 5),
|
||||
DaysUntilWarn: 90,
|
||||
DaysUntilCrit: 30,
|
||||
DaysUntilWarn: 30,
|
||||
DaysUntilCrit: 15,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
@ -105,8 +105,8 @@ func TestWhoisQuery_Collect(t *testing.T) {
|
|||
|
||||
expected := map[string]int64{
|
||||
"expiry": 12345,
|
||||
"days_until_expiration_warning": 90,
|
||||
"days_until_expiration_critical": 30,
|
||||
"days_until_expiration_warning": 30,
|
||||
"days_until_expiration_critical": 15,
|
||||
}
|
||||
|
||||
assert.NotZero(t, collected)
|
||||
|
|
Loading…
Add table
Reference in a new issue