Skip to content

Commit e295d78

Browse files
feat(api): api update
1 parent f3cafbb commit e295d78

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 30
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/arcade-ai%2Farcade-engine-2a6c58164e9ff3381c59072a0e5128eaf0b414f324bd16aab007add62f010cf0.yml
3-
openapi_spec_hash: b65490ab703cb2de86fe47b58d2840c5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/arcade-ai%2Farcade-engine-2a57de34dacb76b02f6a65e188f97960ec9d2e57fb3302bc41a3f7d0da26baa6.yml
3+
openapi_spec_hash: 456fce09526baeca909da603a09ef8aa
44
config_hash: bf64816643634a621cd0ffd93d9c4347

health.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,16 @@ func (r *HealthService) Check(ctx context.Context, opts ...option.RequestOption)
4040
}
4141

4242
type HealthSchema struct {
43-
Healthy bool `json:"healthy"`
44-
JSON healthSchemaJSON `json:"-"`
43+
Healthy bool `json:"healthy"`
44+
// Optional: explains why unhealthy
45+
Reason string `json:"reason"`
46+
JSON healthSchemaJSON `json:"-"`
4547
}
4648

4749
// healthSchemaJSON contains the JSON metadata for the struct [HealthSchema]
4850
type healthSchemaJSON struct {
4951
Healthy apijson.Field
52+
Reason apijson.Field
5053
raw string
5154
ExtraFields map[string]apijson.Field
5255
}

0 commit comments

Comments
 (0)