broad-zoo-34077
05/20/2021, 3:21 PMwhite-airport-8778
monthly_additional_pushes: 12000000 # Monthly total number of additional pushes.
If this value is present, it could then be used to calculate the cost in the resource file, based on the tier (there’s a CalculateTierBuckets
tier method that could be used to calculate it, it’s mentioned in the contributing)crooked-daybreak-55253
05/20/2021, 3:30 PMwhite-airport-8778
white-airport-8778
crooked-daybreak-55253
05/20/2021, 3:39 PMwhite-airport-8778
var monthlyAdditionalPushes *decimal.Decimal
if u != nil && u.Get("monthly_additional_pushes").Type != gjson.Null {
monthlyAdditionalPushes = decimal.NewFromInt(u.Get("monthly_additional_pushes").Int())
}
...
return &schema.CostComponent{
...
MonthlyQuantity: monthlyAdditionalPushes,
...
}
crooked-daybreak-55253
05/20/2021, 3:44 PMwhite-airport-8778