Skip to content

Commit 35a09ad

Browse files
feat(api): add IP address logging for residential and custom proxies
1 parent 690d473 commit 35a09ad

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 90
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-6a44c851ec955b997558a8524eb641355ff3097474f40772b8ea2fef5bee4134.yml
3-
openapi_spec_hash: 155ee005a1b43e1c11e843de91e9f509
4-
config_hash: 6cbbf855a29bc675f35ddb1106ea9083
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-cc60c65c6bb0b8a8ea662cf758806e641790870ded35f6ffdb9f4801f3d29b15.yml
3+
openapi_spec_hash: a1074e1bba578bcd5912512166ada0dc
4+
config_hash: 7868d3397406c2974b6f058488aeefd6

option/requestoption.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ func WithRequestTimeout(dur time.Duration) RequestOption {
263263
// environment to be the "production" environment. An environment specifies which base URL
264264
// to use by default.
265265
func WithEnvironmentProduction() RequestOption {
266-
return requestconfig.WithDefaultBaseURL("https://api.onkernel.com/")
266+
return requestconfig.WithDefaultBaseURL("https://api.kernel.com/")
267267
}
268268

269269
// WithEnvironmentDevelopment returns a RequestOption that sets the current

proxy.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ type ProxyNewResponse struct {
100100
ID string `json:"id"`
101101
// Configuration specific to the selected proxy `type`.
102102
Config ProxyNewResponseConfigUnion `json:"config"`
103+
// IP address that the proxy uses when making requests.
104+
IPAddress string `json:"ip_address"`
103105
// Timestamp of the last health check performed on this proxy.
104106
LastChecked time.Time `json:"last_checked" format:"date-time"`
105107
// Readable name of the proxy.
@@ -117,6 +119,7 @@ type ProxyNewResponse struct {
117119
Type respjson.Field
118120
ID respjson.Field
119121
Config respjson.Field
122+
IPAddress respjson.Field
120123
LastChecked respjson.Field
121124
Name respjson.Field
122125
Protocol respjson.Field
@@ -388,6 +391,8 @@ type ProxyGetResponse struct {
388391
ID string `json:"id"`
389392
// Configuration specific to the selected proxy `type`.
390393
Config ProxyGetResponseConfigUnion `json:"config"`
394+
// IP address that the proxy uses when making requests.
395+
IPAddress string `json:"ip_address"`
391396
// Timestamp of the last health check performed on this proxy.
392397
LastChecked time.Time `json:"last_checked" format:"date-time"`
393398
// Readable name of the proxy.
@@ -405,6 +410,7 @@ type ProxyGetResponse struct {
405410
Type respjson.Field
406411
ID respjson.Field
407412
Config respjson.Field
413+
IPAddress respjson.Field
408414
LastChecked respjson.Field
409415
Name respjson.Field
410416
Protocol respjson.Field
@@ -676,6 +682,8 @@ type ProxyListResponse struct {
676682
ID string `json:"id"`
677683
// Configuration specific to the selected proxy `type`.
678684
Config ProxyListResponseConfigUnion `json:"config"`
685+
// IP address that the proxy uses when making requests.
686+
IPAddress string `json:"ip_address"`
679687
// Timestamp of the last health check performed on this proxy.
680688
LastChecked time.Time `json:"last_checked" format:"date-time"`
681689
// Readable name of the proxy.
@@ -693,6 +701,7 @@ type ProxyListResponse struct {
693701
Type respjson.Field
694702
ID respjson.Field
695703
Config respjson.Field
704+
IPAddress respjson.Field
696705
LastChecked respjson.Field
697706
Name respjson.Field
698707
Protocol respjson.Field
@@ -964,6 +973,8 @@ type ProxyCheckResponse struct {
964973
ID string `json:"id"`
965974
// Configuration specific to the selected proxy `type`.
966975
Config ProxyCheckResponseConfigUnion `json:"config"`
976+
// IP address that the proxy uses when making requests.
977+
IPAddress string `json:"ip_address"`
967978
// Timestamp of the last health check performed on this proxy.
968979
LastChecked time.Time `json:"last_checked" format:"date-time"`
969980
// Readable name of the proxy.
@@ -981,6 +992,7 @@ type ProxyCheckResponse struct {
981992
Type respjson.Field
982993
ID respjson.Field
983994
Config respjson.Field
995+
IPAddress respjson.Field
984996
LastChecked respjson.Field
985997
Name respjson.Field
986998
Protocol respjson.Field

0 commit comments

Comments
 (0)