warning.go raw

   1  package account
   2  
   3  // UsageWarning wraps an NS1 /account/usagewarnings resource
   4  type UsageWarning struct {
   5  	Records Warning `json:"records"`
   6  	Queries Warning `json:"queries"`
   7  }
   8  
   9  // Warning contains alerting toggles and thresholds for overage warning alert messages.
  10  // First thresholds must be smaller than Second ones and all thresholds
  11  // must be percentages between 0 and 100.
  12  type Warning struct {
  13  	Send bool `json:"send_warnings"`
  14  
  15  	First  int `json:"warning_1"`
  16  	Second int `json:"warning_2"`
  17  }
  18