Skip to content

Commit

Permalink
go.d whoisquery change default days until expiration 90/30 => 30/15 (#…
Browse files Browse the repository at this point in the history
…18000)

(cherry picked from commit ecc9c3e)
  • Loading branch information
ilyam8 authored and Ferroin committed Jul 10, 2024
1 parent 3a8a3fb commit de6d884
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit de6d884

Please sign in to comment.