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
  • Loading branch information
ilyam8 committed Jun 24, 2024
1 parent 2ac5c32 commit ecc9c3e
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 ecc9c3e

Please sign in to comment.