mailsafepro 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +256 -0
- data/Rakefile +10 -0
- data/docs/APIKeyCreateRequest.md +20 -0
- data/docs/APIKeyListResponse.md +22 -0
- data/docs/APIKeyMeta.md +34 -0
- data/docs/APIKeysApi.md +1241 -0
- data/docs/AuthenticationApi.md +1171 -0
- data/docs/BatchEmailResponse.md +28 -0
- data/docs/BatchValidationRequest.md +26 -0
- data/docs/BillingApi.md +689 -0
- data/docs/BodyChangePlanBillingBillingChangePlanPost.md +18 -0
- data/docs/CheckoutRequest.md +18 -0
- data/docs/CheckoutSessionResponse.md +18 -0
- data/docs/DNSInfo.md +26 -0
- data/docs/DNSRecordDKIM.md +26 -0
- data/docs/DNSRecordDMARC.md +24 -0
- data/docs/DNSRecordSPF.md +24 -0
- data/docs/DefaultApi.md +141 -0
- data/docs/DeveloperToolsApi.md +154 -0
- data/docs/EmailResponse.md +46 -0
- data/docs/EmailValidationApi.md +479 -0
- data/docs/EmailValidationRequest.md +26 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/HealthApi.md +937 -0
- data/docs/JobCreateRequest.md +32 -0
- data/docs/JobCreateResponse.md +22 -0
- data/docs/JobResultEntry.md +34 -0
- data/docs/JobResultsPage.md +26 -0
- data/docs/JobStatusResponse.md +28 -0
- data/docs/JobsApi.md +433 -0
- data/docs/KeyRotationRequest.md +22 -0
- data/docs/LogsApi.md +154 -0
- data/docs/PlanEnum.md +15 -0
- data/docs/PriorityEnum.md +15 -0
- data/docs/RegisterEndpoint.md +18 -0
- data/docs/ResponseTestNotificationBillingBillingTestNotificationPostValue.md +15 -0
- data/docs/RiskLevelEnum.md +15 -0
- data/docs/RotateSecret.md +18 -0
- data/docs/SMTPInfo.md +26 -0
- data/docs/SubscriptionResponse.md +24 -0
- data/docs/UserLogin.md +20 -0
- data/docs/UserRegister.md +22 -0
- data/docs/ValidationApi.md +479 -0
- data/docs/ValidationError.md +22 -0
- data/docs/ValidationErrorLocInner.md +15 -0
- data/docs/WebhookCreate.md +24 -0
- data/docs/WebhookResponse.md +22 -0
- data/docs/WebhookUpdate.md +24 -0
- data/docs/WebhooksApi.md +776 -0
- data/docs/WebhooksManagementApi.md +500 -0
- data/git_push.sh +57 -0
- data/lib/mailsafepro/api/api_keys_api.rb +1148 -0
- data/lib/mailsafepro/api/authentication_api.rb +1114 -0
- data/lib/mailsafepro/api/billing_api.rb +670 -0
- data/lib/mailsafepro/api/default_api.rb +149 -0
- data/lib/mailsafepro/api/developer_tools_api.rb +155 -0
- data/lib/mailsafepro/api/email_validation_api.rb +486 -0
- data/lib/mailsafepro/api/health_api.rb +877 -0
- data/lib/mailsafepro/api/jobs_api.rb +452 -0
- data/lib/mailsafepro/api/logs_api.rb +155 -0
- data/lib/mailsafepro/api/validation_api.rb +486 -0
- data/lib/mailsafepro/api/webhooks_api.rb +768 -0
- data/lib/mailsafepro/api/webhooks_management_api.rb +480 -0
- data/lib/mailsafepro/api_client.rb +397 -0
- data/lib/mailsafepro/api_error.rb +58 -0
- data/lib/mailsafepro/api_model_base.rb +88 -0
- data/lib/mailsafepro/configuration.rb +316 -0
- data/lib/mailsafepro/models/api_key_create_request.rb +185 -0
- data/lib/mailsafepro/models/api_key_list_response.rb +240 -0
- data/lib/mailsafepro/models/api_key_meta.rb +338 -0
- data/lib/mailsafepro/models/batch_email_response.rb +348 -0
- data/lib/mailsafepro/models/batch_validation_request.rb +290 -0
- data/lib/mailsafepro/models/body_change_plan_billing_billing_change_plan_post.rb +164 -0
- data/lib/mailsafepro/models/checkout_request.rb +166 -0
- data/lib/mailsafepro/models/checkout_session_response.rb +165 -0
- data/lib/mailsafepro/models/dns_info.rb +193 -0
- data/lib/mailsafepro/models/dns_record_dkim.rb +189 -0
- data/lib/mailsafepro/models/dns_record_dmarc.rb +179 -0
- data/lib/mailsafepro/models/dns_record_spf.rb +179 -0
- data/lib/mailsafepro/models/email_response.rb +454 -0
- data/lib/mailsafepro/models/email_validation_request.rb +252 -0
- data/lib/mailsafepro/models/http_validation_error.rb +149 -0
- data/lib/mailsafepro/models/job_create_request.rb +251 -0
- data/lib/mailsafepro/models/job_create_response.rb +216 -0
- data/lib/mailsafepro/models/job_result_entry.rb +257 -0
- data/lib/mailsafepro/models/job_results_page.rb +270 -0
- data/lib/mailsafepro/models/job_status_response.rb +231 -0
- data/lib/mailsafepro/models/key_rotation_request.rb +269 -0
- data/lib/mailsafepro/models/plan_enum.rb +41 -0
- data/lib/mailsafepro/models/priority_enum.rb +41 -0
- data/lib/mailsafepro/models/register_endpoint.rb +173 -0
- data/lib/mailsafepro/models/response_test_notification_billing_billing_test_notification_post_value.rb +103 -0
- data/lib/mailsafepro/models/risk_level_enum.rb +42 -0
- data/lib/mailsafepro/models/rotate_secret.rb +164 -0
- data/lib/mailsafepro/models/smtp_info.rb +206 -0
- data/lib/mailsafepro/models/subscription_response.rb +196 -0
- data/lib/mailsafepro/models/user_login.rb +211 -0
- data/lib/mailsafepro/models/user_register.rb +243 -0
- data/lib/mailsafepro/models/validation_error.rb +218 -0
- data/lib/mailsafepro/models/validation_error_loc_inner.rb +103 -0
- data/lib/mailsafepro/models/webhook_create.rb +213 -0
- data/lib/mailsafepro/models/webhook_response.rb +185 -0
- data/lib/mailsafepro/models/webhook_update.rb +204 -0
- data/lib/mailsafepro/version.rb +15 -0
- data/lib/mailsafepro.rb +88 -0
- data/mailsafepro.gemspec +39 -0
- data/spec/api/api_keys_api_spec.rb +245 -0
- data/spec/api/authentication_api_spec.rb +239 -0
- data/spec/api/billing_api_spec.rb +155 -0
- data/spec/api/default_api_spec.rb +60 -0
- data/spec/api/developer_tools_api_spec.rb +62 -0
- data/spec/api/email_validation_api_spec.rb +125 -0
- data/spec/api/health_api_spec.rb +200 -0
- data/spec/api/jobs_api_spec.rb +119 -0
- data/spec/api/logs_api_spec.rb +62 -0
- data/spec/api/validation_api_spec.rb +125 -0
- data/spec/api/webhooks_api_spec.rb +172 -0
- data/spec/api/webhooks_management_api_spec.rb +120 -0
- data/spec/models/api_key_create_request_spec.rb +42 -0
- data/spec/models/api_key_list_response_spec.rb +48 -0
- data/spec/models/api_key_meta_spec.rb +84 -0
- data/spec/models/batch_email_response_spec.rb +66 -0
- data/spec/models/batch_validation_request_spec.rb +60 -0
- data/spec/models/body_change_plan_billing_billing_change_plan_post_spec.rb +36 -0
- data/spec/models/checkout_request_spec.rb +36 -0
- data/spec/models/checkout_session_response_spec.rb +36 -0
- data/spec/models/dns_info_spec.rb +60 -0
- data/spec/models/dns_record_dkim_spec.rb +60 -0
- data/spec/models/dns_record_dmarc_spec.rb +54 -0
- data/spec/models/dns_record_spf_spec.rb +54 -0
- data/spec/models/email_response_spec.rb +120 -0
- data/spec/models/email_validation_request_spec.rb +60 -0
- data/spec/models/http_validation_error_spec.rb +36 -0
- data/spec/models/job_create_request_spec.rb +78 -0
- data/spec/models/job_create_response_spec.rb +48 -0
- data/spec/models/job_result_entry_spec.rb +84 -0
- data/spec/models/job_results_page_spec.rb +60 -0
- data/spec/models/job_status_response_spec.rb +66 -0
- data/spec/models/key_rotation_request_spec.rb +48 -0
- data/spec/models/plan_enum_spec.rb +30 -0
- data/spec/models/priority_enum_spec.rb +30 -0
- data/spec/models/register_endpoint_spec.rb +36 -0
- data/spec/models/response_test_notification_billing_billing_test_notification_post_value_spec.rb +21 -0
- data/spec/models/risk_level_enum_spec.rb +30 -0
- data/spec/models/rotate_secret_spec.rb +36 -0
- data/spec/models/smtp_info_spec.rb +60 -0
- data/spec/models/subscription_response_spec.rb +54 -0
- data/spec/models/user_login_spec.rb +42 -0
- data/spec/models/user_register_spec.rb +48 -0
- data/spec/models/validation_error_loc_inner_spec.rb +21 -0
- data/spec/models/validation_error_spec.rb +48 -0
- data/spec/models/webhook_create_spec.rb +54 -0
- data/spec/models/webhook_response_spec.rb +48 -0
- data/spec/models/webhook_update_spec.rb +54 -0
- data/spec/spec_helper.rb +111 -0
- metadata +291 -0
|
@@ -0,0 +1,877 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Email Validation API — Enterprise-grade Email Verification
|
|
3
|
+
|
|
4
|
+
#API robusta y segura para validación y verificación de correos electrónicos. Soporta verificación individual y en lote, detección de brechas, y autenticación JWT. Cumple con GDPR y dispone de planes de pago flexibles. **🔗 Enlaces importantes:** - [Estado del sistema](https://mailsafepro.betteruptime.com) - [Documentación completa](https://email-validation-api-jlra.onrender.com/redoc) **📧 Contacto:** mailsafepro1@gmail.com
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.5.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.18.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module MailSafePro
|
|
16
|
+
class HealthApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Basic health check
|
|
23
|
+
# Basic health check for load balancers. Returns 200 if service is running. Fast response, no dependency checks.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [Object]
|
|
26
|
+
def basic_health_health_get(opts = {})
|
|
27
|
+
data, _status_code, _headers = basic_health_health_get_with_http_info(opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Basic health check
|
|
32
|
+
# Basic health check for load balancers. Returns 200 if service is running. Fast response, no dependency checks.
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
35
|
+
def basic_health_health_get_with_http_info(opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.basic_health_health_get ...'
|
|
38
|
+
end
|
|
39
|
+
# resource path
|
|
40
|
+
local_var_path = '/health'
|
|
41
|
+
|
|
42
|
+
# query parameters
|
|
43
|
+
query_params = opts[:query_params] || {}
|
|
44
|
+
|
|
45
|
+
# header parameters
|
|
46
|
+
header_params = opts[:header_params] || {}
|
|
47
|
+
# HTTP header 'Accept' (if needed)
|
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
49
|
+
|
|
50
|
+
# form parameters
|
|
51
|
+
form_params = opts[:form_params] || {}
|
|
52
|
+
|
|
53
|
+
# http body (model)
|
|
54
|
+
post_body = opts[:debug_body]
|
|
55
|
+
|
|
56
|
+
# return_type
|
|
57
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
58
|
+
|
|
59
|
+
# auth_names
|
|
60
|
+
auth_names = opts[:debug_auth_names] || []
|
|
61
|
+
|
|
62
|
+
new_options = opts.merge(
|
|
63
|
+
:operation => :"HealthApi.basic_health_health_get",
|
|
64
|
+
:header_params => header_params,
|
|
65
|
+
:query_params => query_params,
|
|
66
|
+
:form_params => form_params,
|
|
67
|
+
:body => post_body,
|
|
68
|
+
:auth_names => auth_names,
|
|
69
|
+
:return_type => return_type
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
73
|
+
if @api_client.config.debugging
|
|
74
|
+
@api_client.config.logger.debug "API called: HealthApi#basic_health_health_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
75
|
+
end
|
|
76
|
+
return data, status_code, headers
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Basic health check
|
|
80
|
+
# Basic health check for load balancers. Returns 200 if service is running. Fast response, no dependency checks.
|
|
81
|
+
# @param [Hash] opts the optional parameters
|
|
82
|
+
# @return [Object]
|
|
83
|
+
def basic_health_health_get_0(opts = {})
|
|
84
|
+
data, _status_code, _headers = basic_health_health_get_0_with_http_info(opts)
|
|
85
|
+
data
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Basic health check
|
|
89
|
+
# Basic health check for load balancers. Returns 200 if service is running. Fast response, no dependency checks.
|
|
90
|
+
# @param [Hash] opts the optional parameters
|
|
91
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
92
|
+
def basic_health_health_get_0_with_http_info(opts = {})
|
|
93
|
+
if @api_client.config.debugging
|
|
94
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.basic_health_health_get_0 ...'
|
|
95
|
+
end
|
|
96
|
+
# resource path
|
|
97
|
+
local_var_path = '/health'
|
|
98
|
+
|
|
99
|
+
# query parameters
|
|
100
|
+
query_params = opts[:query_params] || {}
|
|
101
|
+
|
|
102
|
+
# header parameters
|
|
103
|
+
header_params = opts[:header_params] || {}
|
|
104
|
+
# HTTP header 'Accept' (if needed)
|
|
105
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
106
|
+
|
|
107
|
+
# form parameters
|
|
108
|
+
form_params = opts[:form_params] || {}
|
|
109
|
+
|
|
110
|
+
# http body (model)
|
|
111
|
+
post_body = opts[:debug_body]
|
|
112
|
+
|
|
113
|
+
# return_type
|
|
114
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
115
|
+
|
|
116
|
+
# auth_names
|
|
117
|
+
auth_names = opts[:debug_auth_names] || []
|
|
118
|
+
|
|
119
|
+
new_options = opts.merge(
|
|
120
|
+
:operation => :"HealthApi.basic_health_health_get_0",
|
|
121
|
+
:header_params => header_params,
|
|
122
|
+
:query_params => query_params,
|
|
123
|
+
:form_params => form_params,
|
|
124
|
+
:body => post_body,
|
|
125
|
+
:auth_names => auth_names,
|
|
126
|
+
:return_type => return_type
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
130
|
+
if @api_client.config.debugging
|
|
131
|
+
@api_client.config.logger.debug "API called: HealthApi#basic_health_health_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
132
|
+
end
|
|
133
|
+
return data, status_code, headers
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Circuit Breaker Status
|
|
137
|
+
# ✅ Circuit breaker status for all services. Shows state of Redis, SMTP, DNS, and other circuit breakers.
|
|
138
|
+
# @param [Hash] opts the optional parameters
|
|
139
|
+
# @return [Object]
|
|
140
|
+
def circuit_breaker_status_admin_circuit_breaker_status_get(opts = {})
|
|
141
|
+
data, _status_code, _headers = circuit_breaker_status_admin_circuit_breaker_status_get_with_http_info(opts)
|
|
142
|
+
data
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Circuit Breaker Status
|
|
146
|
+
# ✅ Circuit breaker status for all services. Shows state of Redis, SMTP, DNS, and other circuit breakers.
|
|
147
|
+
# @param [Hash] opts the optional parameters
|
|
148
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
149
|
+
def circuit_breaker_status_admin_circuit_breaker_status_get_with_http_info(opts = {})
|
|
150
|
+
if @api_client.config.debugging
|
|
151
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.circuit_breaker_status_admin_circuit_breaker_status_get ...'
|
|
152
|
+
end
|
|
153
|
+
# resource path
|
|
154
|
+
local_var_path = '/admin/circuit-breaker-status'
|
|
155
|
+
|
|
156
|
+
# query parameters
|
|
157
|
+
query_params = opts[:query_params] || {}
|
|
158
|
+
|
|
159
|
+
# header parameters
|
|
160
|
+
header_params = opts[:header_params] || {}
|
|
161
|
+
# HTTP header 'Accept' (if needed)
|
|
162
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
163
|
+
|
|
164
|
+
# form parameters
|
|
165
|
+
form_params = opts[:form_params] || {}
|
|
166
|
+
|
|
167
|
+
# http body (model)
|
|
168
|
+
post_body = opts[:debug_body]
|
|
169
|
+
|
|
170
|
+
# return_type
|
|
171
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
172
|
+
|
|
173
|
+
# auth_names
|
|
174
|
+
auth_names = opts[:debug_auth_names] || []
|
|
175
|
+
|
|
176
|
+
new_options = opts.merge(
|
|
177
|
+
:operation => :"HealthApi.circuit_breaker_status_admin_circuit_breaker_status_get",
|
|
178
|
+
:header_params => header_params,
|
|
179
|
+
:query_params => query_params,
|
|
180
|
+
:form_params => form_params,
|
|
181
|
+
:body => post_body,
|
|
182
|
+
:auth_names => auth_names,
|
|
183
|
+
:return_type => return_type
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
187
|
+
if @api_client.config.debugging
|
|
188
|
+
@api_client.config.logger.debug "API called: HealthApi#circuit_breaker_status_admin_circuit_breaker_status_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
189
|
+
end
|
|
190
|
+
return data, status_code, headers
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Detailed health check
|
|
194
|
+
# Detailed health check with all component statuses. Returns comprehensive health information for monitoring.
|
|
195
|
+
# @param [Hash] opts the optional parameters
|
|
196
|
+
# @return [Object]
|
|
197
|
+
def detailed_health_health_detailed_get(opts = {})
|
|
198
|
+
data, _status_code, _headers = detailed_health_health_detailed_get_with_http_info(opts)
|
|
199
|
+
data
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Detailed health check
|
|
203
|
+
# Detailed health check with all component statuses. Returns comprehensive health information for monitoring.
|
|
204
|
+
# @param [Hash] opts the optional parameters
|
|
205
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
206
|
+
def detailed_health_health_detailed_get_with_http_info(opts = {})
|
|
207
|
+
if @api_client.config.debugging
|
|
208
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.detailed_health_health_detailed_get ...'
|
|
209
|
+
end
|
|
210
|
+
# resource path
|
|
211
|
+
local_var_path = '/health/detailed'
|
|
212
|
+
|
|
213
|
+
# query parameters
|
|
214
|
+
query_params = opts[:query_params] || {}
|
|
215
|
+
|
|
216
|
+
# header parameters
|
|
217
|
+
header_params = opts[:header_params] || {}
|
|
218
|
+
# HTTP header 'Accept' (if needed)
|
|
219
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
220
|
+
|
|
221
|
+
# form parameters
|
|
222
|
+
form_params = opts[:form_params] || {}
|
|
223
|
+
|
|
224
|
+
# http body (model)
|
|
225
|
+
post_body = opts[:debug_body]
|
|
226
|
+
|
|
227
|
+
# return_type
|
|
228
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
229
|
+
|
|
230
|
+
# auth_names
|
|
231
|
+
auth_names = opts[:debug_auth_names] || []
|
|
232
|
+
|
|
233
|
+
new_options = opts.merge(
|
|
234
|
+
:operation => :"HealthApi.detailed_health_health_detailed_get",
|
|
235
|
+
:header_params => header_params,
|
|
236
|
+
:query_params => query_params,
|
|
237
|
+
:form_params => form_params,
|
|
238
|
+
:body => post_body,
|
|
239
|
+
:auth_names => auth_names,
|
|
240
|
+
:return_type => return_type
|
|
241
|
+
)
|
|
242
|
+
|
|
243
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
244
|
+
if @api_client.config.debugging
|
|
245
|
+
@api_client.config.logger.debug "API called: HealthApi#detailed_health_health_detailed_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
246
|
+
end
|
|
247
|
+
return data, status_code, headers
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Detailed health check
|
|
251
|
+
# Detailed health check with all component statuses. Returns comprehensive health information for monitoring.
|
|
252
|
+
# @param [Hash] opts the optional parameters
|
|
253
|
+
# @return [Object]
|
|
254
|
+
def detailed_health_health_detailed_get_0(opts = {})
|
|
255
|
+
data, _status_code, _headers = detailed_health_health_detailed_get_0_with_http_info(opts)
|
|
256
|
+
data
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# Detailed health check
|
|
260
|
+
# Detailed health check with all component statuses. Returns comprehensive health information for monitoring.
|
|
261
|
+
# @param [Hash] opts the optional parameters
|
|
262
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
263
|
+
def detailed_health_health_detailed_get_0_with_http_info(opts = {})
|
|
264
|
+
if @api_client.config.debugging
|
|
265
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.detailed_health_health_detailed_get_0 ...'
|
|
266
|
+
end
|
|
267
|
+
# resource path
|
|
268
|
+
local_var_path = '/health/detailed'
|
|
269
|
+
|
|
270
|
+
# query parameters
|
|
271
|
+
query_params = opts[:query_params] || {}
|
|
272
|
+
|
|
273
|
+
# header parameters
|
|
274
|
+
header_params = opts[:header_params] || {}
|
|
275
|
+
# HTTP header 'Accept' (if needed)
|
|
276
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
277
|
+
|
|
278
|
+
# form parameters
|
|
279
|
+
form_params = opts[:form_params] || {}
|
|
280
|
+
|
|
281
|
+
# http body (model)
|
|
282
|
+
post_body = opts[:debug_body]
|
|
283
|
+
|
|
284
|
+
# return_type
|
|
285
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
286
|
+
|
|
287
|
+
# auth_names
|
|
288
|
+
auth_names = opts[:debug_auth_names] || []
|
|
289
|
+
|
|
290
|
+
new_options = opts.merge(
|
|
291
|
+
:operation => :"HealthApi.detailed_health_health_detailed_get_0",
|
|
292
|
+
:header_params => header_params,
|
|
293
|
+
:query_params => query_params,
|
|
294
|
+
:form_params => form_params,
|
|
295
|
+
:body => post_body,
|
|
296
|
+
:auth_names => auth_names,
|
|
297
|
+
:return_type => return_type
|
|
298
|
+
)
|
|
299
|
+
|
|
300
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
301
|
+
if @api_client.config.debugging
|
|
302
|
+
@api_client.config.logger.debug "API called: HealthApi#detailed_health_health_detailed_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
303
|
+
end
|
|
304
|
+
return data, status_code, headers
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# Healthcheck
|
|
308
|
+
# Basic health check endpoint (backward compatibility)
|
|
309
|
+
# @param [Hash] opts the optional parameters
|
|
310
|
+
# @return [Object]
|
|
311
|
+
def healthcheck_healthcheck_get(opts = {})
|
|
312
|
+
data, _status_code, _headers = healthcheck_healthcheck_get_with_http_info(opts)
|
|
313
|
+
data
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
# Healthcheck
|
|
317
|
+
# Basic health check endpoint (backward compatibility)
|
|
318
|
+
# @param [Hash] opts the optional parameters
|
|
319
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
320
|
+
def healthcheck_healthcheck_get_with_http_info(opts = {})
|
|
321
|
+
if @api_client.config.debugging
|
|
322
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.healthcheck_healthcheck_get ...'
|
|
323
|
+
end
|
|
324
|
+
# resource path
|
|
325
|
+
local_var_path = '/healthcheck'
|
|
326
|
+
|
|
327
|
+
# query parameters
|
|
328
|
+
query_params = opts[:query_params] || {}
|
|
329
|
+
|
|
330
|
+
# header parameters
|
|
331
|
+
header_params = opts[:header_params] || {}
|
|
332
|
+
# HTTP header 'Accept' (if needed)
|
|
333
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
334
|
+
|
|
335
|
+
# form parameters
|
|
336
|
+
form_params = opts[:form_params] || {}
|
|
337
|
+
|
|
338
|
+
# http body (model)
|
|
339
|
+
post_body = opts[:debug_body]
|
|
340
|
+
|
|
341
|
+
# return_type
|
|
342
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
343
|
+
|
|
344
|
+
# auth_names
|
|
345
|
+
auth_names = opts[:debug_auth_names] || []
|
|
346
|
+
|
|
347
|
+
new_options = opts.merge(
|
|
348
|
+
:operation => :"HealthApi.healthcheck_healthcheck_get",
|
|
349
|
+
:header_params => header_params,
|
|
350
|
+
:query_params => query_params,
|
|
351
|
+
:form_params => form_params,
|
|
352
|
+
:body => post_body,
|
|
353
|
+
:auth_names => auth_names,
|
|
354
|
+
:return_type => return_type
|
|
355
|
+
)
|
|
356
|
+
|
|
357
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
358
|
+
if @api_client.config.debugging
|
|
359
|
+
@api_client.config.logger.debug "API called: HealthApi#healthcheck_healthcheck_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
360
|
+
end
|
|
361
|
+
return data, status_code, headers
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# Healthcheck
|
|
365
|
+
# Basic health check endpoint (backward compatibility)
|
|
366
|
+
# @param [Hash] opts the optional parameters
|
|
367
|
+
# @return [Object]
|
|
368
|
+
def healthcheck_healthcheck_head(opts = {})
|
|
369
|
+
data, _status_code, _headers = healthcheck_healthcheck_head_with_http_info(opts)
|
|
370
|
+
data
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# Healthcheck
|
|
374
|
+
# Basic health check endpoint (backward compatibility)
|
|
375
|
+
# @param [Hash] opts the optional parameters
|
|
376
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
377
|
+
def healthcheck_healthcheck_head_with_http_info(opts = {})
|
|
378
|
+
if @api_client.config.debugging
|
|
379
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.healthcheck_healthcheck_head ...'
|
|
380
|
+
end
|
|
381
|
+
# resource path
|
|
382
|
+
local_var_path = '/healthcheck'
|
|
383
|
+
|
|
384
|
+
# query parameters
|
|
385
|
+
query_params = opts[:query_params] || {}
|
|
386
|
+
|
|
387
|
+
# header parameters
|
|
388
|
+
header_params = opts[:header_params] || {}
|
|
389
|
+
# HTTP header 'Accept' (if needed)
|
|
390
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
391
|
+
|
|
392
|
+
# form parameters
|
|
393
|
+
form_params = opts[:form_params] || {}
|
|
394
|
+
|
|
395
|
+
# http body (model)
|
|
396
|
+
post_body = opts[:debug_body]
|
|
397
|
+
|
|
398
|
+
# return_type
|
|
399
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
400
|
+
|
|
401
|
+
# auth_names
|
|
402
|
+
auth_names = opts[:debug_auth_names] || []
|
|
403
|
+
|
|
404
|
+
new_options = opts.merge(
|
|
405
|
+
:operation => :"HealthApi.healthcheck_healthcheck_head",
|
|
406
|
+
:header_params => header_params,
|
|
407
|
+
:query_params => query_params,
|
|
408
|
+
:form_params => form_params,
|
|
409
|
+
:body => post_body,
|
|
410
|
+
:auth_names => auth_names,
|
|
411
|
+
:return_type => return_type
|
|
412
|
+
)
|
|
413
|
+
|
|
414
|
+
data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options)
|
|
415
|
+
if @api_client.config.debugging
|
|
416
|
+
@api_client.config.logger.debug "API called: HealthApi#healthcheck_healthcheck_head\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
417
|
+
end
|
|
418
|
+
return data, status_code, headers
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
# Liveness Check
|
|
422
|
+
# ✅ MEJORA: Kubernetes liveness probe Returns 200 if the application is alive (not deadlocked) Used by Kubernetes to restart the pod if unhealthy
|
|
423
|
+
# @param [Hash] opts the optional parameters
|
|
424
|
+
# @return [Object]
|
|
425
|
+
def liveness_check_health_liveness_get(opts = {})
|
|
426
|
+
data, _status_code, _headers = liveness_check_health_liveness_get_with_http_info(opts)
|
|
427
|
+
data
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# Liveness Check
|
|
431
|
+
# ✅ MEJORA: Kubernetes liveness probe Returns 200 if the application is alive (not deadlocked) Used by Kubernetes to restart the pod if unhealthy
|
|
432
|
+
# @param [Hash] opts the optional parameters
|
|
433
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
434
|
+
def liveness_check_health_liveness_get_with_http_info(opts = {})
|
|
435
|
+
if @api_client.config.debugging
|
|
436
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.liveness_check_health_liveness_get ...'
|
|
437
|
+
end
|
|
438
|
+
# resource path
|
|
439
|
+
local_var_path = '/health/liveness'
|
|
440
|
+
|
|
441
|
+
# query parameters
|
|
442
|
+
query_params = opts[:query_params] || {}
|
|
443
|
+
|
|
444
|
+
# header parameters
|
|
445
|
+
header_params = opts[:header_params] || {}
|
|
446
|
+
# HTTP header 'Accept' (if needed)
|
|
447
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
448
|
+
|
|
449
|
+
# form parameters
|
|
450
|
+
form_params = opts[:form_params] || {}
|
|
451
|
+
|
|
452
|
+
# http body (model)
|
|
453
|
+
post_body = opts[:debug_body]
|
|
454
|
+
|
|
455
|
+
# return_type
|
|
456
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
457
|
+
|
|
458
|
+
# auth_names
|
|
459
|
+
auth_names = opts[:debug_auth_names] || []
|
|
460
|
+
|
|
461
|
+
new_options = opts.merge(
|
|
462
|
+
:operation => :"HealthApi.liveness_check_health_liveness_get",
|
|
463
|
+
:header_params => header_params,
|
|
464
|
+
:query_params => query_params,
|
|
465
|
+
:form_params => form_params,
|
|
466
|
+
:body => post_body,
|
|
467
|
+
:auth_names => auth_names,
|
|
468
|
+
:return_type => return_type
|
|
469
|
+
)
|
|
470
|
+
|
|
471
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
472
|
+
if @api_client.config.debugging
|
|
473
|
+
@api_client.config.logger.debug "API called: HealthApi#liveness_check_health_liveness_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
474
|
+
end
|
|
475
|
+
return data, status_code, headers
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
# Liveness probe (Kubernetes)
|
|
479
|
+
# Kubernetes liveness probe. Returns 200 if the application is running. Should restart pod if this fails.
|
|
480
|
+
# @param [Hash] opts the optional parameters
|
|
481
|
+
# @return [Object]
|
|
482
|
+
def liveness_health_live_get(opts = {})
|
|
483
|
+
data, _status_code, _headers = liveness_health_live_get_with_http_info(opts)
|
|
484
|
+
data
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
# Liveness probe (Kubernetes)
|
|
488
|
+
# Kubernetes liveness probe. Returns 200 if the application is running. Should restart pod if this fails.
|
|
489
|
+
# @param [Hash] opts the optional parameters
|
|
490
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
491
|
+
def liveness_health_live_get_with_http_info(opts = {})
|
|
492
|
+
if @api_client.config.debugging
|
|
493
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.liveness_health_live_get ...'
|
|
494
|
+
end
|
|
495
|
+
# resource path
|
|
496
|
+
local_var_path = '/health/live'
|
|
497
|
+
|
|
498
|
+
# query parameters
|
|
499
|
+
query_params = opts[:query_params] || {}
|
|
500
|
+
|
|
501
|
+
# header parameters
|
|
502
|
+
header_params = opts[:header_params] || {}
|
|
503
|
+
# HTTP header 'Accept' (if needed)
|
|
504
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
505
|
+
|
|
506
|
+
# form parameters
|
|
507
|
+
form_params = opts[:form_params] || {}
|
|
508
|
+
|
|
509
|
+
# http body (model)
|
|
510
|
+
post_body = opts[:debug_body]
|
|
511
|
+
|
|
512
|
+
# return_type
|
|
513
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
514
|
+
|
|
515
|
+
# auth_names
|
|
516
|
+
auth_names = opts[:debug_auth_names] || []
|
|
517
|
+
|
|
518
|
+
new_options = opts.merge(
|
|
519
|
+
:operation => :"HealthApi.liveness_health_live_get",
|
|
520
|
+
:header_params => header_params,
|
|
521
|
+
:query_params => query_params,
|
|
522
|
+
:form_params => form_params,
|
|
523
|
+
:body => post_body,
|
|
524
|
+
:auth_names => auth_names,
|
|
525
|
+
:return_type => return_type
|
|
526
|
+
)
|
|
527
|
+
|
|
528
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
529
|
+
if @api_client.config.debugging
|
|
530
|
+
@api_client.config.logger.debug "API called: HealthApi#liveness_health_live_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
531
|
+
end
|
|
532
|
+
return data, status_code, headers
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
# Liveness probe (Kubernetes)
|
|
536
|
+
# Kubernetes liveness probe. Returns 200 if the application is running. Should restart pod if this fails.
|
|
537
|
+
# @param [Hash] opts the optional parameters
|
|
538
|
+
# @return [Object]
|
|
539
|
+
def liveness_health_live_get_0(opts = {})
|
|
540
|
+
data, _status_code, _headers = liveness_health_live_get_0_with_http_info(opts)
|
|
541
|
+
data
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
# Liveness probe (Kubernetes)
|
|
545
|
+
# Kubernetes liveness probe. Returns 200 if the application is running. Should restart pod if this fails.
|
|
546
|
+
# @param [Hash] opts the optional parameters
|
|
547
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
548
|
+
def liveness_health_live_get_0_with_http_info(opts = {})
|
|
549
|
+
if @api_client.config.debugging
|
|
550
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.liveness_health_live_get_0 ...'
|
|
551
|
+
end
|
|
552
|
+
# resource path
|
|
553
|
+
local_var_path = '/health/live'
|
|
554
|
+
|
|
555
|
+
# query parameters
|
|
556
|
+
query_params = opts[:query_params] || {}
|
|
557
|
+
|
|
558
|
+
# header parameters
|
|
559
|
+
header_params = opts[:header_params] || {}
|
|
560
|
+
# HTTP header 'Accept' (if needed)
|
|
561
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
562
|
+
|
|
563
|
+
# form parameters
|
|
564
|
+
form_params = opts[:form_params] || {}
|
|
565
|
+
|
|
566
|
+
# http body (model)
|
|
567
|
+
post_body = opts[:debug_body]
|
|
568
|
+
|
|
569
|
+
# return_type
|
|
570
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
571
|
+
|
|
572
|
+
# auth_names
|
|
573
|
+
auth_names = opts[:debug_auth_names] || []
|
|
574
|
+
|
|
575
|
+
new_options = opts.merge(
|
|
576
|
+
:operation => :"HealthApi.liveness_health_live_get_0",
|
|
577
|
+
:header_params => header_params,
|
|
578
|
+
:query_params => query_params,
|
|
579
|
+
:form_params => form_params,
|
|
580
|
+
:body => post_body,
|
|
581
|
+
:auth_names => auth_names,
|
|
582
|
+
:return_type => return_type
|
|
583
|
+
)
|
|
584
|
+
|
|
585
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
586
|
+
if @api_client.config.debugging
|
|
587
|
+
@api_client.config.logger.debug "API called: HealthApi#liveness_health_live_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
588
|
+
end
|
|
589
|
+
return data, status_code, headers
|
|
590
|
+
end
|
|
591
|
+
|
|
592
|
+
# Readiness Check
|
|
593
|
+
# ✅ MEJORA: Kubernetes readiness probe Returns 200 if the application is ready to serve traffic Checks all critical dependencies (PostgreSQL, Redis, ARQ)
|
|
594
|
+
# @param [Hash] opts the optional parameters
|
|
595
|
+
# @return [Object]
|
|
596
|
+
def readiness_check_health_readiness_get(opts = {})
|
|
597
|
+
data, _status_code, _headers = readiness_check_health_readiness_get_with_http_info(opts)
|
|
598
|
+
data
|
|
599
|
+
end
|
|
600
|
+
|
|
601
|
+
# Readiness Check
|
|
602
|
+
# ✅ MEJORA: Kubernetes readiness probe Returns 200 if the application is ready to serve traffic Checks all critical dependencies (PostgreSQL, Redis, ARQ)
|
|
603
|
+
# @param [Hash] opts the optional parameters
|
|
604
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
605
|
+
def readiness_check_health_readiness_get_with_http_info(opts = {})
|
|
606
|
+
if @api_client.config.debugging
|
|
607
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.readiness_check_health_readiness_get ...'
|
|
608
|
+
end
|
|
609
|
+
# resource path
|
|
610
|
+
local_var_path = '/health/readiness'
|
|
611
|
+
|
|
612
|
+
# query parameters
|
|
613
|
+
query_params = opts[:query_params] || {}
|
|
614
|
+
|
|
615
|
+
# header parameters
|
|
616
|
+
header_params = opts[:header_params] || {}
|
|
617
|
+
# HTTP header 'Accept' (if needed)
|
|
618
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
619
|
+
|
|
620
|
+
# form parameters
|
|
621
|
+
form_params = opts[:form_params] || {}
|
|
622
|
+
|
|
623
|
+
# http body (model)
|
|
624
|
+
post_body = opts[:debug_body]
|
|
625
|
+
|
|
626
|
+
# return_type
|
|
627
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
628
|
+
|
|
629
|
+
# auth_names
|
|
630
|
+
auth_names = opts[:debug_auth_names] || []
|
|
631
|
+
|
|
632
|
+
new_options = opts.merge(
|
|
633
|
+
:operation => :"HealthApi.readiness_check_health_readiness_get",
|
|
634
|
+
:header_params => header_params,
|
|
635
|
+
:query_params => query_params,
|
|
636
|
+
:form_params => form_params,
|
|
637
|
+
:body => post_body,
|
|
638
|
+
:auth_names => auth_names,
|
|
639
|
+
:return_type => return_type
|
|
640
|
+
)
|
|
641
|
+
|
|
642
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
643
|
+
if @api_client.config.debugging
|
|
644
|
+
@api_client.config.logger.debug "API called: HealthApi#readiness_check_health_readiness_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
645
|
+
end
|
|
646
|
+
return data, status_code, headers
|
|
647
|
+
end
|
|
648
|
+
|
|
649
|
+
# Readiness probe (Kubernetes)
|
|
650
|
+
# Kubernetes readiness probe. Returns 200 if service is ready to accept traffic. Checks critical dependencies (Redis).
|
|
651
|
+
# @param [Hash] opts the optional parameters
|
|
652
|
+
# @return [Object]
|
|
653
|
+
def readiness_health_ready_get(opts = {})
|
|
654
|
+
data, _status_code, _headers = readiness_health_ready_get_with_http_info(opts)
|
|
655
|
+
data
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
# Readiness probe (Kubernetes)
|
|
659
|
+
# Kubernetes readiness probe. Returns 200 if service is ready to accept traffic. Checks critical dependencies (Redis).
|
|
660
|
+
# @param [Hash] opts the optional parameters
|
|
661
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
662
|
+
def readiness_health_ready_get_with_http_info(opts = {})
|
|
663
|
+
if @api_client.config.debugging
|
|
664
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.readiness_health_ready_get ...'
|
|
665
|
+
end
|
|
666
|
+
# resource path
|
|
667
|
+
local_var_path = '/health/ready'
|
|
668
|
+
|
|
669
|
+
# query parameters
|
|
670
|
+
query_params = opts[:query_params] || {}
|
|
671
|
+
|
|
672
|
+
# header parameters
|
|
673
|
+
header_params = opts[:header_params] || {}
|
|
674
|
+
# HTTP header 'Accept' (if needed)
|
|
675
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
676
|
+
|
|
677
|
+
# form parameters
|
|
678
|
+
form_params = opts[:form_params] || {}
|
|
679
|
+
|
|
680
|
+
# http body (model)
|
|
681
|
+
post_body = opts[:debug_body]
|
|
682
|
+
|
|
683
|
+
# return_type
|
|
684
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
685
|
+
|
|
686
|
+
# auth_names
|
|
687
|
+
auth_names = opts[:debug_auth_names] || []
|
|
688
|
+
|
|
689
|
+
new_options = opts.merge(
|
|
690
|
+
:operation => :"HealthApi.readiness_health_ready_get",
|
|
691
|
+
:header_params => header_params,
|
|
692
|
+
:query_params => query_params,
|
|
693
|
+
:form_params => form_params,
|
|
694
|
+
:body => post_body,
|
|
695
|
+
:auth_names => auth_names,
|
|
696
|
+
:return_type => return_type
|
|
697
|
+
)
|
|
698
|
+
|
|
699
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
700
|
+
if @api_client.config.debugging
|
|
701
|
+
@api_client.config.logger.debug "API called: HealthApi#readiness_health_ready_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
702
|
+
end
|
|
703
|
+
return data, status_code, headers
|
|
704
|
+
end
|
|
705
|
+
|
|
706
|
+
# Readiness probe (Kubernetes)
|
|
707
|
+
# Kubernetes readiness probe. Returns 200 if service is ready to accept traffic. Checks critical dependencies (Redis).
|
|
708
|
+
# @param [Hash] opts the optional parameters
|
|
709
|
+
# @return [Object]
|
|
710
|
+
def readiness_health_ready_get_0(opts = {})
|
|
711
|
+
data, _status_code, _headers = readiness_health_ready_get_0_with_http_info(opts)
|
|
712
|
+
data
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
# Readiness probe (Kubernetes)
|
|
716
|
+
# Kubernetes readiness probe. Returns 200 if service is ready to accept traffic. Checks critical dependencies (Redis).
|
|
717
|
+
# @param [Hash] opts the optional parameters
|
|
718
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
719
|
+
def readiness_health_ready_get_0_with_http_info(opts = {})
|
|
720
|
+
if @api_client.config.debugging
|
|
721
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.readiness_health_ready_get_0 ...'
|
|
722
|
+
end
|
|
723
|
+
# resource path
|
|
724
|
+
local_var_path = '/health/ready'
|
|
725
|
+
|
|
726
|
+
# query parameters
|
|
727
|
+
query_params = opts[:query_params] || {}
|
|
728
|
+
|
|
729
|
+
# header parameters
|
|
730
|
+
header_params = opts[:header_params] || {}
|
|
731
|
+
# HTTP header 'Accept' (if needed)
|
|
732
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
733
|
+
|
|
734
|
+
# form parameters
|
|
735
|
+
form_params = opts[:form_params] || {}
|
|
736
|
+
|
|
737
|
+
# http body (model)
|
|
738
|
+
post_body = opts[:debug_body]
|
|
739
|
+
|
|
740
|
+
# return_type
|
|
741
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
742
|
+
|
|
743
|
+
# auth_names
|
|
744
|
+
auth_names = opts[:debug_auth_names] || []
|
|
745
|
+
|
|
746
|
+
new_options = opts.merge(
|
|
747
|
+
:operation => :"HealthApi.readiness_health_ready_get_0",
|
|
748
|
+
:header_params => header_params,
|
|
749
|
+
:query_params => query_params,
|
|
750
|
+
:form_params => form_params,
|
|
751
|
+
:body => post_body,
|
|
752
|
+
:auth_names => auth_names,
|
|
753
|
+
:return_type => return_type
|
|
754
|
+
)
|
|
755
|
+
|
|
756
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
757
|
+
if @api_client.config.debugging
|
|
758
|
+
@api_client.config.logger.debug "API called: HealthApi#readiness_health_ready_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
759
|
+
end
|
|
760
|
+
return data, status_code, headers
|
|
761
|
+
end
|
|
762
|
+
|
|
763
|
+
# Service Status
|
|
764
|
+
# ✅ MEJORA: Detailed service status with feature flags Shows which features are available and which are running in degraded mode
|
|
765
|
+
# @param [Hash] opts the optional parameters
|
|
766
|
+
# @return [Object]
|
|
767
|
+
def service_status_status_get(opts = {})
|
|
768
|
+
data, _status_code, _headers = service_status_status_get_with_http_info(opts)
|
|
769
|
+
data
|
|
770
|
+
end
|
|
771
|
+
|
|
772
|
+
# Service Status
|
|
773
|
+
# ✅ MEJORA: Detailed service status with feature flags Shows which features are available and which are running in degraded mode
|
|
774
|
+
# @param [Hash] opts the optional parameters
|
|
775
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
776
|
+
def service_status_status_get_with_http_info(opts = {})
|
|
777
|
+
if @api_client.config.debugging
|
|
778
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.service_status_status_get ...'
|
|
779
|
+
end
|
|
780
|
+
# resource path
|
|
781
|
+
local_var_path = '/status'
|
|
782
|
+
|
|
783
|
+
# query parameters
|
|
784
|
+
query_params = opts[:query_params] || {}
|
|
785
|
+
|
|
786
|
+
# header parameters
|
|
787
|
+
header_params = opts[:header_params] || {}
|
|
788
|
+
# HTTP header 'Accept' (if needed)
|
|
789
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
790
|
+
|
|
791
|
+
# form parameters
|
|
792
|
+
form_params = opts[:form_params] || {}
|
|
793
|
+
|
|
794
|
+
# http body (model)
|
|
795
|
+
post_body = opts[:debug_body]
|
|
796
|
+
|
|
797
|
+
# return_type
|
|
798
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
799
|
+
|
|
800
|
+
# auth_names
|
|
801
|
+
auth_names = opts[:debug_auth_names] || []
|
|
802
|
+
|
|
803
|
+
new_options = opts.merge(
|
|
804
|
+
:operation => :"HealthApi.service_status_status_get",
|
|
805
|
+
:header_params => header_params,
|
|
806
|
+
:query_params => query_params,
|
|
807
|
+
:form_params => form_params,
|
|
808
|
+
:body => post_body,
|
|
809
|
+
:auth_names => auth_names,
|
|
810
|
+
:return_type => return_type
|
|
811
|
+
)
|
|
812
|
+
|
|
813
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
814
|
+
if @api_client.config.debugging
|
|
815
|
+
@api_client.config.logger.debug "API called: HealthApi#service_status_status_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
816
|
+
end
|
|
817
|
+
return data, status_code, headers
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
# Startup Check
|
|
821
|
+
# ✅ MEJORA: Kubernetes startup probe Returns 200 once the application has completed startup Used to delay readiness checks until startup is complete
|
|
822
|
+
# @param [Hash] opts the optional parameters
|
|
823
|
+
# @return [Object]
|
|
824
|
+
def startup_check_health_startup_get(opts = {})
|
|
825
|
+
data, _status_code, _headers = startup_check_health_startup_get_with_http_info(opts)
|
|
826
|
+
data
|
|
827
|
+
end
|
|
828
|
+
|
|
829
|
+
# Startup Check
|
|
830
|
+
# ✅ MEJORA: Kubernetes startup probe Returns 200 once the application has completed startup Used to delay readiness checks until startup is complete
|
|
831
|
+
# @param [Hash] opts the optional parameters
|
|
832
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
833
|
+
def startup_check_health_startup_get_with_http_info(opts = {})
|
|
834
|
+
if @api_client.config.debugging
|
|
835
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.startup_check_health_startup_get ...'
|
|
836
|
+
end
|
|
837
|
+
# resource path
|
|
838
|
+
local_var_path = '/health/startup'
|
|
839
|
+
|
|
840
|
+
# query parameters
|
|
841
|
+
query_params = opts[:query_params] || {}
|
|
842
|
+
|
|
843
|
+
# header parameters
|
|
844
|
+
header_params = opts[:header_params] || {}
|
|
845
|
+
# HTTP header 'Accept' (if needed)
|
|
846
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
847
|
+
|
|
848
|
+
# form parameters
|
|
849
|
+
form_params = opts[:form_params] || {}
|
|
850
|
+
|
|
851
|
+
# http body (model)
|
|
852
|
+
post_body = opts[:debug_body]
|
|
853
|
+
|
|
854
|
+
# return_type
|
|
855
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
856
|
+
|
|
857
|
+
# auth_names
|
|
858
|
+
auth_names = opts[:debug_auth_names] || []
|
|
859
|
+
|
|
860
|
+
new_options = opts.merge(
|
|
861
|
+
:operation => :"HealthApi.startup_check_health_startup_get",
|
|
862
|
+
:header_params => header_params,
|
|
863
|
+
:query_params => query_params,
|
|
864
|
+
:form_params => form_params,
|
|
865
|
+
:body => post_body,
|
|
866
|
+
:auth_names => auth_names,
|
|
867
|
+
:return_type => return_type
|
|
868
|
+
)
|
|
869
|
+
|
|
870
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
871
|
+
if @api_client.config.debugging
|
|
872
|
+
@api_client.config.logger.debug "API called: HealthApi#startup_check_health_startup_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
873
|
+
end
|
|
874
|
+
return data, status_code, headers
|
|
875
|
+
end
|
|
876
|
+
end
|
|
877
|
+
end
|