@@ -144,8 +144,8 @@ type CalculateResponse struct {
144144type RepoSampleRequest struct {
145145 Owner string `json:"owner"`
146146 Repo string `json:"repo"`
147- SampleSize int `json:"sample_size,omitempty"` // Default: 30
148- Days int `json:"days,omitempty"` // Default: 90
147+ SampleSize int `json:"sample_size,omitempty"` // Default: 50
148+ Days int `json:"days,omitempty"` // Default: 60
149149 Config * cost.Config `json:"config,omitempty"`
150150}
151151
@@ -154,8 +154,8 @@ type RepoSampleRequest struct {
154154//nolint:govet // fieldalignment: API struct field order optimized for readability
155155type OrgSampleRequest struct {
156156 Org string `json:"org"`
157- SampleSize int `json:"sample_size,omitempty"` // Default: 30
158- Days int `json:"days,omitempty"` // Default: 90
157+ SampleSize int `json:"sample_size,omitempty"` // Default: 50
158+ Days int `json:"days,omitempty"` // Default: 60
159159 Config * cost.Config `json:"config,omitempty"`
160160}
161161
@@ -1478,10 +1478,10 @@ func (s *Server) parseRepoSampleRequest(ctx context.Context, r *http.Request) (*
14781478
14791479 // Set defaults
14801480 if req .SampleSize == 0 {
1481- req .SampleSize = 30
1481+ req .SampleSize = 50
14821482 }
14831483 if req .Days == 0 {
1484- req .Days = 90
1484+ req .Days = 60
14851485 }
14861486
14871487 // Validate reasonable limits (silently cap at 50)
@@ -1536,10 +1536,10 @@ func (s *Server) parseOrgSampleRequest(ctx context.Context, r *http.Request) (*O
15361536
15371537 // Set defaults
15381538 if req .SampleSize == 0 {
1539- req .SampleSize = 30
1539+ req .SampleSize = 50
15401540 }
15411541 if req .Days == 0 {
1542- req .Days = 90
1542+ req .Days = 60
15431543 }
15441544
15451545 // Validate reasonable limits (silently cap at 50)
0 commit comments