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
data/docs/HealthApi.md
ADDED
|
@@ -0,0 +1,937 @@
|
|
|
1
|
+
# MailSafePro::HealthApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**basic_health_health_get**](HealthApi.md#basic_health_health_get) | **GET** /health | Basic health check |
|
|
8
|
+
| [**basic_health_health_get_0**](HealthApi.md#basic_health_health_get_0) | **GET** /health | Basic health check |
|
|
9
|
+
| [**circuit_breaker_status_admin_circuit_breaker_status_get**](HealthApi.md#circuit_breaker_status_admin_circuit_breaker_status_get) | **GET** /admin/circuit-breaker-status | Circuit Breaker Status |
|
|
10
|
+
| [**detailed_health_health_detailed_get**](HealthApi.md#detailed_health_health_detailed_get) | **GET** /health/detailed | Detailed health check |
|
|
11
|
+
| [**detailed_health_health_detailed_get_0**](HealthApi.md#detailed_health_health_detailed_get_0) | **GET** /health/detailed | Detailed health check |
|
|
12
|
+
| [**healthcheck_healthcheck_get**](HealthApi.md#healthcheck_healthcheck_get) | **GET** /healthcheck | Healthcheck |
|
|
13
|
+
| [**healthcheck_healthcheck_head**](HealthApi.md#healthcheck_healthcheck_head) | **HEAD** /healthcheck | Healthcheck |
|
|
14
|
+
| [**liveness_check_health_liveness_get**](HealthApi.md#liveness_check_health_liveness_get) | **GET** /health/liveness | Liveness Check |
|
|
15
|
+
| [**liveness_health_live_get**](HealthApi.md#liveness_health_live_get) | **GET** /health/live | Liveness probe (Kubernetes) |
|
|
16
|
+
| [**liveness_health_live_get_0**](HealthApi.md#liveness_health_live_get_0) | **GET** /health/live | Liveness probe (Kubernetes) |
|
|
17
|
+
| [**readiness_check_health_readiness_get**](HealthApi.md#readiness_check_health_readiness_get) | **GET** /health/readiness | Readiness Check |
|
|
18
|
+
| [**readiness_health_ready_get**](HealthApi.md#readiness_health_ready_get) | **GET** /health/ready | Readiness probe (Kubernetes) |
|
|
19
|
+
| [**readiness_health_ready_get_0**](HealthApi.md#readiness_health_ready_get_0) | **GET** /health/ready | Readiness probe (Kubernetes) |
|
|
20
|
+
| [**service_status_status_get**](HealthApi.md#service_status_status_get) | **GET** /status | Service Status |
|
|
21
|
+
| [**startup_check_health_startup_get**](HealthApi.md#startup_check_health_startup_get) | **GET** /health/startup | Startup Check |
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## basic_health_health_get
|
|
25
|
+
|
|
26
|
+
> Object basic_health_health_get
|
|
27
|
+
|
|
28
|
+
Basic health check
|
|
29
|
+
|
|
30
|
+
Basic health check for load balancers. Returns 200 if service is running. Fast response, no dependency checks.
|
|
31
|
+
|
|
32
|
+
### Examples
|
|
33
|
+
|
|
34
|
+
```ruby
|
|
35
|
+
require 'time'
|
|
36
|
+
require 'mailsafepro'
|
|
37
|
+
|
|
38
|
+
api_instance = MailSafePro::HealthApi.new
|
|
39
|
+
|
|
40
|
+
begin
|
|
41
|
+
# Basic health check
|
|
42
|
+
result = api_instance.basic_health_health_get
|
|
43
|
+
p result
|
|
44
|
+
rescue MailSafePro::ApiError => e
|
|
45
|
+
puts "Error when calling HealthApi->basic_health_health_get: #{e}"
|
|
46
|
+
end
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
#### Using the basic_health_health_get_with_http_info variant
|
|
50
|
+
|
|
51
|
+
This returns an Array which contains the response data, status code and headers.
|
|
52
|
+
|
|
53
|
+
> <Array(Object, Integer, Hash)> basic_health_health_get_with_http_info
|
|
54
|
+
|
|
55
|
+
```ruby
|
|
56
|
+
begin
|
|
57
|
+
# Basic health check
|
|
58
|
+
data, status_code, headers = api_instance.basic_health_health_get_with_http_info
|
|
59
|
+
p status_code # => 2xx
|
|
60
|
+
p headers # => { ... }
|
|
61
|
+
p data # => Object
|
|
62
|
+
rescue MailSafePro::ApiError => e
|
|
63
|
+
puts "Error when calling HealthApi->basic_health_health_get_with_http_info: #{e}"
|
|
64
|
+
end
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Parameters
|
|
68
|
+
|
|
69
|
+
This endpoint does not need any parameter.
|
|
70
|
+
|
|
71
|
+
### Return type
|
|
72
|
+
|
|
73
|
+
**Object**
|
|
74
|
+
|
|
75
|
+
### Authorization
|
|
76
|
+
|
|
77
|
+
No authorization required
|
|
78
|
+
|
|
79
|
+
### HTTP request headers
|
|
80
|
+
|
|
81
|
+
- **Content-Type**: Not defined
|
|
82
|
+
- **Accept**: application/json
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## basic_health_health_get_0
|
|
86
|
+
|
|
87
|
+
> Object basic_health_health_get_0
|
|
88
|
+
|
|
89
|
+
Basic health check
|
|
90
|
+
|
|
91
|
+
Basic health check for load balancers. Returns 200 if service is running. Fast response, no dependency checks.
|
|
92
|
+
|
|
93
|
+
### Examples
|
|
94
|
+
|
|
95
|
+
```ruby
|
|
96
|
+
require 'time'
|
|
97
|
+
require 'mailsafepro'
|
|
98
|
+
|
|
99
|
+
api_instance = MailSafePro::HealthApi.new
|
|
100
|
+
|
|
101
|
+
begin
|
|
102
|
+
# Basic health check
|
|
103
|
+
result = api_instance.basic_health_health_get_0
|
|
104
|
+
p result
|
|
105
|
+
rescue MailSafePro::ApiError => e
|
|
106
|
+
puts "Error when calling HealthApi->basic_health_health_get_0: #{e}"
|
|
107
|
+
end
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
#### Using the basic_health_health_get_0_with_http_info variant
|
|
111
|
+
|
|
112
|
+
This returns an Array which contains the response data, status code and headers.
|
|
113
|
+
|
|
114
|
+
> <Array(Object, Integer, Hash)> basic_health_health_get_0_with_http_info
|
|
115
|
+
|
|
116
|
+
```ruby
|
|
117
|
+
begin
|
|
118
|
+
# Basic health check
|
|
119
|
+
data, status_code, headers = api_instance.basic_health_health_get_0_with_http_info
|
|
120
|
+
p status_code # => 2xx
|
|
121
|
+
p headers # => { ... }
|
|
122
|
+
p data # => Object
|
|
123
|
+
rescue MailSafePro::ApiError => e
|
|
124
|
+
puts "Error when calling HealthApi->basic_health_health_get_0_with_http_info: #{e}"
|
|
125
|
+
end
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Parameters
|
|
129
|
+
|
|
130
|
+
This endpoint does not need any parameter.
|
|
131
|
+
|
|
132
|
+
### Return type
|
|
133
|
+
|
|
134
|
+
**Object**
|
|
135
|
+
|
|
136
|
+
### Authorization
|
|
137
|
+
|
|
138
|
+
No authorization required
|
|
139
|
+
|
|
140
|
+
### HTTP request headers
|
|
141
|
+
|
|
142
|
+
- **Content-Type**: Not defined
|
|
143
|
+
- **Accept**: application/json
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
## circuit_breaker_status_admin_circuit_breaker_status_get
|
|
147
|
+
|
|
148
|
+
> Object circuit_breaker_status_admin_circuit_breaker_status_get
|
|
149
|
+
|
|
150
|
+
Circuit Breaker Status
|
|
151
|
+
|
|
152
|
+
✅ Circuit breaker status for all services. Shows state of Redis, SMTP, DNS, and other circuit breakers.
|
|
153
|
+
|
|
154
|
+
### Examples
|
|
155
|
+
|
|
156
|
+
```ruby
|
|
157
|
+
require 'time'
|
|
158
|
+
require 'mailsafepro'
|
|
159
|
+
|
|
160
|
+
api_instance = MailSafePro::HealthApi.new
|
|
161
|
+
|
|
162
|
+
begin
|
|
163
|
+
# Circuit Breaker Status
|
|
164
|
+
result = api_instance.circuit_breaker_status_admin_circuit_breaker_status_get
|
|
165
|
+
p result
|
|
166
|
+
rescue MailSafePro::ApiError => e
|
|
167
|
+
puts "Error when calling HealthApi->circuit_breaker_status_admin_circuit_breaker_status_get: #{e}"
|
|
168
|
+
end
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
#### Using the circuit_breaker_status_admin_circuit_breaker_status_get_with_http_info variant
|
|
172
|
+
|
|
173
|
+
This returns an Array which contains the response data, status code and headers.
|
|
174
|
+
|
|
175
|
+
> <Array(Object, Integer, Hash)> circuit_breaker_status_admin_circuit_breaker_status_get_with_http_info
|
|
176
|
+
|
|
177
|
+
```ruby
|
|
178
|
+
begin
|
|
179
|
+
# Circuit Breaker Status
|
|
180
|
+
data, status_code, headers = api_instance.circuit_breaker_status_admin_circuit_breaker_status_get_with_http_info
|
|
181
|
+
p status_code # => 2xx
|
|
182
|
+
p headers # => { ... }
|
|
183
|
+
p data # => Object
|
|
184
|
+
rescue MailSafePro::ApiError => e
|
|
185
|
+
puts "Error when calling HealthApi->circuit_breaker_status_admin_circuit_breaker_status_get_with_http_info: #{e}"
|
|
186
|
+
end
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### Parameters
|
|
190
|
+
|
|
191
|
+
This endpoint does not need any parameter.
|
|
192
|
+
|
|
193
|
+
### Return type
|
|
194
|
+
|
|
195
|
+
**Object**
|
|
196
|
+
|
|
197
|
+
### Authorization
|
|
198
|
+
|
|
199
|
+
No authorization required
|
|
200
|
+
|
|
201
|
+
### HTTP request headers
|
|
202
|
+
|
|
203
|
+
- **Content-Type**: Not defined
|
|
204
|
+
- **Accept**: application/json
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
## detailed_health_health_detailed_get
|
|
208
|
+
|
|
209
|
+
> Object detailed_health_health_detailed_get
|
|
210
|
+
|
|
211
|
+
Detailed health check
|
|
212
|
+
|
|
213
|
+
Detailed health check with all component statuses. Returns comprehensive health information for monitoring.
|
|
214
|
+
|
|
215
|
+
### Examples
|
|
216
|
+
|
|
217
|
+
```ruby
|
|
218
|
+
require 'time'
|
|
219
|
+
require 'mailsafepro'
|
|
220
|
+
|
|
221
|
+
api_instance = MailSafePro::HealthApi.new
|
|
222
|
+
|
|
223
|
+
begin
|
|
224
|
+
# Detailed health check
|
|
225
|
+
result = api_instance.detailed_health_health_detailed_get
|
|
226
|
+
p result
|
|
227
|
+
rescue MailSafePro::ApiError => e
|
|
228
|
+
puts "Error when calling HealthApi->detailed_health_health_detailed_get: #{e}"
|
|
229
|
+
end
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
#### Using the detailed_health_health_detailed_get_with_http_info variant
|
|
233
|
+
|
|
234
|
+
This returns an Array which contains the response data, status code and headers.
|
|
235
|
+
|
|
236
|
+
> <Array(Object, Integer, Hash)> detailed_health_health_detailed_get_with_http_info
|
|
237
|
+
|
|
238
|
+
```ruby
|
|
239
|
+
begin
|
|
240
|
+
# Detailed health check
|
|
241
|
+
data, status_code, headers = api_instance.detailed_health_health_detailed_get_with_http_info
|
|
242
|
+
p status_code # => 2xx
|
|
243
|
+
p headers # => { ... }
|
|
244
|
+
p data # => Object
|
|
245
|
+
rescue MailSafePro::ApiError => e
|
|
246
|
+
puts "Error when calling HealthApi->detailed_health_health_detailed_get_with_http_info: #{e}"
|
|
247
|
+
end
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Parameters
|
|
251
|
+
|
|
252
|
+
This endpoint does not need any parameter.
|
|
253
|
+
|
|
254
|
+
### Return type
|
|
255
|
+
|
|
256
|
+
**Object**
|
|
257
|
+
|
|
258
|
+
### Authorization
|
|
259
|
+
|
|
260
|
+
No authorization required
|
|
261
|
+
|
|
262
|
+
### HTTP request headers
|
|
263
|
+
|
|
264
|
+
- **Content-Type**: Not defined
|
|
265
|
+
- **Accept**: application/json
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
## detailed_health_health_detailed_get_0
|
|
269
|
+
|
|
270
|
+
> Object detailed_health_health_detailed_get_0
|
|
271
|
+
|
|
272
|
+
Detailed health check
|
|
273
|
+
|
|
274
|
+
Detailed health check with all component statuses. Returns comprehensive health information for monitoring.
|
|
275
|
+
|
|
276
|
+
### Examples
|
|
277
|
+
|
|
278
|
+
```ruby
|
|
279
|
+
require 'time'
|
|
280
|
+
require 'mailsafepro'
|
|
281
|
+
|
|
282
|
+
api_instance = MailSafePro::HealthApi.new
|
|
283
|
+
|
|
284
|
+
begin
|
|
285
|
+
# Detailed health check
|
|
286
|
+
result = api_instance.detailed_health_health_detailed_get_0
|
|
287
|
+
p result
|
|
288
|
+
rescue MailSafePro::ApiError => e
|
|
289
|
+
puts "Error when calling HealthApi->detailed_health_health_detailed_get_0: #{e}"
|
|
290
|
+
end
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
#### Using the detailed_health_health_detailed_get_0_with_http_info variant
|
|
294
|
+
|
|
295
|
+
This returns an Array which contains the response data, status code and headers.
|
|
296
|
+
|
|
297
|
+
> <Array(Object, Integer, Hash)> detailed_health_health_detailed_get_0_with_http_info
|
|
298
|
+
|
|
299
|
+
```ruby
|
|
300
|
+
begin
|
|
301
|
+
# Detailed health check
|
|
302
|
+
data, status_code, headers = api_instance.detailed_health_health_detailed_get_0_with_http_info
|
|
303
|
+
p status_code # => 2xx
|
|
304
|
+
p headers # => { ... }
|
|
305
|
+
p data # => Object
|
|
306
|
+
rescue MailSafePro::ApiError => e
|
|
307
|
+
puts "Error when calling HealthApi->detailed_health_health_detailed_get_0_with_http_info: #{e}"
|
|
308
|
+
end
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
### Parameters
|
|
312
|
+
|
|
313
|
+
This endpoint does not need any parameter.
|
|
314
|
+
|
|
315
|
+
### Return type
|
|
316
|
+
|
|
317
|
+
**Object**
|
|
318
|
+
|
|
319
|
+
### Authorization
|
|
320
|
+
|
|
321
|
+
No authorization required
|
|
322
|
+
|
|
323
|
+
### HTTP request headers
|
|
324
|
+
|
|
325
|
+
- **Content-Type**: Not defined
|
|
326
|
+
- **Accept**: application/json
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
## healthcheck_healthcheck_get
|
|
330
|
+
|
|
331
|
+
> Object healthcheck_healthcheck_get
|
|
332
|
+
|
|
333
|
+
Healthcheck
|
|
334
|
+
|
|
335
|
+
Basic health check endpoint (backward compatibility)
|
|
336
|
+
|
|
337
|
+
### Examples
|
|
338
|
+
|
|
339
|
+
```ruby
|
|
340
|
+
require 'time'
|
|
341
|
+
require 'mailsafepro'
|
|
342
|
+
|
|
343
|
+
api_instance = MailSafePro::HealthApi.new
|
|
344
|
+
|
|
345
|
+
begin
|
|
346
|
+
# Healthcheck
|
|
347
|
+
result = api_instance.healthcheck_healthcheck_get
|
|
348
|
+
p result
|
|
349
|
+
rescue MailSafePro::ApiError => e
|
|
350
|
+
puts "Error when calling HealthApi->healthcheck_healthcheck_get: #{e}"
|
|
351
|
+
end
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
#### Using the healthcheck_healthcheck_get_with_http_info variant
|
|
355
|
+
|
|
356
|
+
This returns an Array which contains the response data, status code and headers.
|
|
357
|
+
|
|
358
|
+
> <Array(Object, Integer, Hash)> healthcheck_healthcheck_get_with_http_info
|
|
359
|
+
|
|
360
|
+
```ruby
|
|
361
|
+
begin
|
|
362
|
+
# Healthcheck
|
|
363
|
+
data, status_code, headers = api_instance.healthcheck_healthcheck_get_with_http_info
|
|
364
|
+
p status_code # => 2xx
|
|
365
|
+
p headers # => { ... }
|
|
366
|
+
p data # => Object
|
|
367
|
+
rescue MailSafePro::ApiError => e
|
|
368
|
+
puts "Error when calling HealthApi->healthcheck_healthcheck_get_with_http_info: #{e}"
|
|
369
|
+
end
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
### Parameters
|
|
373
|
+
|
|
374
|
+
This endpoint does not need any parameter.
|
|
375
|
+
|
|
376
|
+
### Return type
|
|
377
|
+
|
|
378
|
+
**Object**
|
|
379
|
+
|
|
380
|
+
### Authorization
|
|
381
|
+
|
|
382
|
+
No authorization required
|
|
383
|
+
|
|
384
|
+
### HTTP request headers
|
|
385
|
+
|
|
386
|
+
- **Content-Type**: Not defined
|
|
387
|
+
- **Accept**: application/json
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
## healthcheck_healthcheck_head
|
|
391
|
+
|
|
392
|
+
> Object healthcheck_healthcheck_head
|
|
393
|
+
|
|
394
|
+
Healthcheck
|
|
395
|
+
|
|
396
|
+
Basic health check endpoint (backward compatibility)
|
|
397
|
+
|
|
398
|
+
### Examples
|
|
399
|
+
|
|
400
|
+
```ruby
|
|
401
|
+
require 'time'
|
|
402
|
+
require 'mailsafepro'
|
|
403
|
+
|
|
404
|
+
api_instance = MailSafePro::HealthApi.new
|
|
405
|
+
|
|
406
|
+
begin
|
|
407
|
+
# Healthcheck
|
|
408
|
+
result = api_instance.healthcheck_healthcheck_head
|
|
409
|
+
p result
|
|
410
|
+
rescue MailSafePro::ApiError => e
|
|
411
|
+
puts "Error when calling HealthApi->healthcheck_healthcheck_head: #{e}"
|
|
412
|
+
end
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
#### Using the healthcheck_healthcheck_head_with_http_info variant
|
|
416
|
+
|
|
417
|
+
This returns an Array which contains the response data, status code and headers.
|
|
418
|
+
|
|
419
|
+
> <Array(Object, Integer, Hash)> healthcheck_healthcheck_head_with_http_info
|
|
420
|
+
|
|
421
|
+
```ruby
|
|
422
|
+
begin
|
|
423
|
+
# Healthcheck
|
|
424
|
+
data, status_code, headers = api_instance.healthcheck_healthcheck_head_with_http_info
|
|
425
|
+
p status_code # => 2xx
|
|
426
|
+
p headers # => { ... }
|
|
427
|
+
p data # => Object
|
|
428
|
+
rescue MailSafePro::ApiError => e
|
|
429
|
+
puts "Error when calling HealthApi->healthcheck_healthcheck_head_with_http_info: #{e}"
|
|
430
|
+
end
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
### Parameters
|
|
434
|
+
|
|
435
|
+
This endpoint does not need any parameter.
|
|
436
|
+
|
|
437
|
+
### Return type
|
|
438
|
+
|
|
439
|
+
**Object**
|
|
440
|
+
|
|
441
|
+
### Authorization
|
|
442
|
+
|
|
443
|
+
No authorization required
|
|
444
|
+
|
|
445
|
+
### HTTP request headers
|
|
446
|
+
|
|
447
|
+
- **Content-Type**: Not defined
|
|
448
|
+
- **Accept**: application/json
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
## liveness_check_health_liveness_get
|
|
452
|
+
|
|
453
|
+
> Object liveness_check_health_liveness_get
|
|
454
|
+
|
|
455
|
+
Liveness Check
|
|
456
|
+
|
|
457
|
+
✅ MEJORA: Kubernetes liveness probe Returns 200 if the application is alive (not deadlocked) Used by Kubernetes to restart the pod if unhealthy
|
|
458
|
+
|
|
459
|
+
### Examples
|
|
460
|
+
|
|
461
|
+
```ruby
|
|
462
|
+
require 'time'
|
|
463
|
+
require 'mailsafepro'
|
|
464
|
+
|
|
465
|
+
api_instance = MailSafePro::HealthApi.new
|
|
466
|
+
|
|
467
|
+
begin
|
|
468
|
+
# Liveness Check
|
|
469
|
+
result = api_instance.liveness_check_health_liveness_get
|
|
470
|
+
p result
|
|
471
|
+
rescue MailSafePro::ApiError => e
|
|
472
|
+
puts "Error when calling HealthApi->liveness_check_health_liveness_get: #{e}"
|
|
473
|
+
end
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
#### Using the liveness_check_health_liveness_get_with_http_info variant
|
|
477
|
+
|
|
478
|
+
This returns an Array which contains the response data, status code and headers.
|
|
479
|
+
|
|
480
|
+
> <Array(Object, Integer, Hash)> liveness_check_health_liveness_get_with_http_info
|
|
481
|
+
|
|
482
|
+
```ruby
|
|
483
|
+
begin
|
|
484
|
+
# Liveness Check
|
|
485
|
+
data, status_code, headers = api_instance.liveness_check_health_liveness_get_with_http_info
|
|
486
|
+
p status_code # => 2xx
|
|
487
|
+
p headers # => { ... }
|
|
488
|
+
p data # => Object
|
|
489
|
+
rescue MailSafePro::ApiError => e
|
|
490
|
+
puts "Error when calling HealthApi->liveness_check_health_liveness_get_with_http_info: #{e}"
|
|
491
|
+
end
|
|
492
|
+
```
|
|
493
|
+
|
|
494
|
+
### Parameters
|
|
495
|
+
|
|
496
|
+
This endpoint does not need any parameter.
|
|
497
|
+
|
|
498
|
+
### Return type
|
|
499
|
+
|
|
500
|
+
**Object**
|
|
501
|
+
|
|
502
|
+
### Authorization
|
|
503
|
+
|
|
504
|
+
No authorization required
|
|
505
|
+
|
|
506
|
+
### HTTP request headers
|
|
507
|
+
|
|
508
|
+
- **Content-Type**: Not defined
|
|
509
|
+
- **Accept**: application/json
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
## liveness_health_live_get
|
|
513
|
+
|
|
514
|
+
> Object liveness_health_live_get
|
|
515
|
+
|
|
516
|
+
Liveness probe (Kubernetes)
|
|
517
|
+
|
|
518
|
+
Kubernetes liveness probe. Returns 200 if the application is running. Should restart pod if this fails.
|
|
519
|
+
|
|
520
|
+
### Examples
|
|
521
|
+
|
|
522
|
+
```ruby
|
|
523
|
+
require 'time'
|
|
524
|
+
require 'mailsafepro'
|
|
525
|
+
|
|
526
|
+
api_instance = MailSafePro::HealthApi.new
|
|
527
|
+
|
|
528
|
+
begin
|
|
529
|
+
# Liveness probe (Kubernetes)
|
|
530
|
+
result = api_instance.liveness_health_live_get
|
|
531
|
+
p result
|
|
532
|
+
rescue MailSafePro::ApiError => e
|
|
533
|
+
puts "Error when calling HealthApi->liveness_health_live_get: #{e}"
|
|
534
|
+
end
|
|
535
|
+
```
|
|
536
|
+
|
|
537
|
+
#### Using the liveness_health_live_get_with_http_info variant
|
|
538
|
+
|
|
539
|
+
This returns an Array which contains the response data, status code and headers.
|
|
540
|
+
|
|
541
|
+
> <Array(Object, Integer, Hash)> liveness_health_live_get_with_http_info
|
|
542
|
+
|
|
543
|
+
```ruby
|
|
544
|
+
begin
|
|
545
|
+
# Liveness probe (Kubernetes)
|
|
546
|
+
data, status_code, headers = api_instance.liveness_health_live_get_with_http_info
|
|
547
|
+
p status_code # => 2xx
|
|
548
|
+
p headers # => { ... }
|
|
549
|
+
p data # => Object
|
|
550
|
+
rescue MailSafePro::ApiError => e
|
|
551
|
+
puts "Error when calling HealthApi->liveness_health_live_get_with_http_info: #{e}"
|
|
552
|
+
end
|
|
553
|
+
```
|
|
554
|
+
|
|
555
|
+
### Parameters
|
|
556
|
+
|
|
557
|
+
This endpoint does not need any parameter.
|
|
558
|
+
|
|
559
|
+
### Return type
|
|
560
|
+
|
|
561
|
+
**Object**
|
|
562
|
+
|
|
563
|
+
### Authorization
|
|
564
|
+
|
|
565
|
+
No authorization required
|
|
566
|
+
|
|
567
|
+
### HTTP request headers
|
|
568
|
+
|
|
569
|
+
- **Content-Type**: Not defined
|
|
570
|
+
- **Accept**: application/json
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
## liveness_health_live_get_0
|
|
574
|
+
|
|
575
|
+
> Object liveness_health_live_get_0
|
|
576
|
+
|
|
577
|
+
Liveness probe (Kubernetes)
|
|
578
|
+
|
|
579
|
+
Kubernetes liveness probe. Returns 200 if the application is running. Should restart pod if this fails.
|
|
580
|
+
|
|
581
|
+
### Examples
|
|
582
|
+
|
|
583
|
+
```ruby
|
|
584
|
+
require 'time'
|
|
585
|
+
require 'mailsafepro'
|
|
586
|
+
|
|
587
|
+
api_instance = MailSafePro::HealthApi.new
|
|
588
|
+
|
|
589
|
+
begin
|
|
590
|
+
# Liveness probe (Kubernetes)
|
|
591
|
+
result = api_instance.liveness_health_live_get_0
|
|
592
|
+
p result
|
|
593
|
+
rescue MailSafePro::ApiError => e
|
|
594
|
+
puts "Error when calling HealthApi->liveness_health_live_get_0: #{e}"
|
|
595
|
+
end
|
|
596
|
+
```
|
|
597
|
+
|
|
598
|
+
#### Using the liveness_health_live_get_0_with_http_info variant
|
|
599
|
+
|
|
600
|
+
This returns an Array which contains the response data, status code and headers.
|
|
601
|
+
|
|
602
|
+
> <Array(Object, Integer, Hash)> liveness_health_live_get_0_with_http_info
|
|
603
|
+
|
|
604
|
+
```ruby
|
|
605
|
+
begin
|
|
606
|
+
# Liveness probe (Kubernetes)
|
|
607
|
+
data, status_code, headers = api_instance.liveness_health_live_get_0_with_http_info
|
|
608
|
+
p status_code # => 2xx
|
|
609
|
+
p headers # => { ... }
|
|
610
|
+
p data # => Object
|
|
611
|
+
rescue MailSafePro::ApiError => e
|
|
612
|
+
puts "Error when calling HealthApi->liveness_health_live_get_0_with_http_info: #{e}"
|
|
613
|
+
end
|
|
614
|
+
```
|
|
615
|
+
|
|
616
|
+
### Parameters
|
|
617
|
+
|
|
618
|
+
This endpoint does not need any parameter.
|
|
619
|
+
|
|
620
|
+
### Return type
|
|
621
|
+
|
|
622
|
+
**Object**
|
|
623
|
+
|
|
624
|
+
### Authorization
|
|
625
|
+
|
|
626
|
+
No authorization required
|
|
627
|
+
|
|
628
|
+
### HTTP request headers
|
|
629
|
+
|
|
630
|
+
- **Content-Type**: Not defined
|
|
631
|
+
- **Accept**: application/json
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
## readiness_check_health_readiness_get
|
|
635
|
+
|
|
636
|
+
> Object readiness_check_health_readiness_get
|
|
637
|
+
|
|
638
|
+
Readiness Check
|
|
639
|
+
|
|
640
|
+
✅ MEJORA: Kubernetes readiness probe Returns 200 if the application is ready to serve traffic Checks all critical dependencies (PostgreSQL, Redis, ARQ)
|
|
641
|
+
|
|
642
|
+
### Examples
|
|
643
|
+
|
|
644
|
+
```ruby
|
|
645
|
+
require 'time'
|
|
646
|
+
require 'mailsafepro'
|
|
647
|
+
|
|
648
|
+
api_instance = MailSafePro::HealthApi.new
|
|
649
|
+
|
|
650
|
+
begin
|
|
651
|
+
# Readiness Check
|
|
652
|
+
result = api_instance.readiness_check_health_readiness_get
|
|
653
|
+
p result
|
|
654
|
+
rescue MailSafePro::ApiError => e
|
|
655
|
+
puts "Error when calling HealthApi->readiness_check_health_readiness_get: #{e}"
|
|
656
|
+
end
|
|
657
|
+
```
|
|
658
|
+
|
|
659
|
+
#### Using the readiness_check_health_readiness_get_with_http_info variant
|
|
660
|
+
|
|
661
|
+
This returns an Array which contains the response data, status code and headers.
|
|
662
|
+
|
|
663
|
+
> <Array(Object, Integer, Hash)> readiness_check_health_readiness_get_with_http_info
|
|
664
|
+
|
|
665
|
+
```ruby
|
|
666
|
+
begin
|
|
667
|
+
# Readiness Check
|
|
668
|
+
data, status_code, headers = api_instance.readiness_check_health_readiness_get_with_http_info
|
|
669
|
+
p status_code # => 2xx
|
|
670
|
+
p headers # => { ... }
|
|
671
|
+
p data # => Object
|
|
672
|
+
rescue MailSafePro::ApiError => e
|
|
673
|
+
puts "Error when calling HealthApi->readiness_check_health_readiness_get_with_http_info: #{e}"
|
|
674
|
+
end
|
|
675
|
+
```
|
|
676
|
+
|
|
677
|
+
### Parameters
|
|
678
|
+
|
|
679
|
+
This endpoint does not need any parameter.
|
|
680
|
+
|
|
681
|
+
### Return type
|
|
682
|
+
|
|
683
|
+
**Object**
|
|
684
|
+
|
|
685
|
+
### Authorization
|
|
686
|
+
|
|
687
|
+
No authorization required
|
|
688
|
+
|
|
689
|
+
### HTTP request headers
|
|
690
|
+
|
|
691
|
+
- **Content-Type**: Not defined
|
|
692
|
+
- **Accept**: application/json
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
## readiness_health_ready_get
|
|
696
|
+
|
|
697
|
+
> Object readiness_health_ready_get
|
|
698
|
+
|
|
699
|
+
Readiness probe (Kubernetes)
|
|
700
|
+
|
|
701
|
+
Kubernetes readiness probe. Returns 200 if service is ready to accept traffic. Checks critical dependencies (Redis).
|
|
702
|
+
|
|
703
|
+
### Examples
|
|
704
|
+
|
|
705
|
+
```ruby
|
|
706
|
+
require 'time'
|
|
707
|
+
require 'mailsafepro'
|
|
708
|
+
|
|
709
|
+
api_instance = MailSafePro::HealthApi.new
|
|
710
|
+
|
|
711
|
+
begin
|
|
712
|
+
# Readiness probe (Kubernetes)
|
|
713
|
+
result = api_instance.readiness_health_ready_get
|
|
714
|
+
p result
|
|
715
|
+
rescue MailSafePro::ApiError => e
|
|
716
|
+
puts "Error when calling HealthApi->readiness_health_ready_get: #{e}"
|
|
717
|
+
end
|
|
718
|
+
```
|
|
719
|
+
|
|
720
|
+
#### Using the readiness_health_ready_get_with_http_info variant
|
|
721
|
+
|
|
722
|
+
This returns an Array which contains the response data, status code and headers.
|
|
723
|
+
|
|
724
|
+
> <Array(Object, Integer, Hash)> readiness_health_ready_get_with_http_info
|
|
725
|
+
|
|
726
|
+
```ruby
|
|
727
|
+
begin
|
|
728
|
+
# Readiness probe (Kubernetes)
|
|
729
|
+
data, status_code, headers = api_instance.readiness_health_ready_get_with_http_info
|
|
730
|
+
p status_code # => 2xx
|
|
731
|
+
p headers # => { ... }
|
|
732
|
+
p data # => Object
|
|
733
|
+
rescue MailSafePro::ApiError => e
|
|
734
|
+
puts "Error when calling HealthApi->readiness_health_ready_get_with_http_info: #{e}"
|
|
735
|
+
end
|
|
736
|
+
```
|
|
737
|
+
|
|
738
|
+
### Parameters
|
|
739
|
+
|
|
740
|
+
This endpoint does not need any parameter.
|
|
741
|
+
|
|
742
|
+
### Return type
|
|
743
|
+
|
|
744
|
+
**Object**
|
|
745
|
+
|
|
746
|
+
### Authorization
|
|
747
|
+
|
|
748
|
+
No authorization required
|
|
749
|
+
|
|
750
|
+
### HTTP request headers
|
|
751
|
+
|
|
752
|
+
- **Content-Type**: Not defined
|
|
753
|
+
- **Accept**: application/json
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
## readiness_health_ready_get_0
|
|
757
|
+
|
|
758
|
+
> Object readiness_health_ready_get_0
|
|
759
|
+
|
|
760
|
+
Readiness probe (Kubernetes)
|
|
761
|
+
|
|
762
|
+
Kubernetes readiness probe. Returns 200 if service is ready to accept traffic. Checks critical dependencies (Redis).
|
|
763
|
+
|
|
764
|
+
### Examples
|
|
765
|
+
|
|
766
|
+
```ruby
|
|
767
|
+
require 'time'
|
|
768
|
+
require 'mailsafepro'
|
|
769
|
+
|
|
770
|
+
api_instance = MailSafePro::HealthApi.new
|
|
771
|
+
|
|
772
|
+
begin
|
|
773
|
+
# Readiness probe (Kubernetes)
|
|
774
|
+
result = api_instance.readiness_health_ready_get_0
|
|
775
|
+
p result
|
|
776
|
+
rescue MailSafePro::ApiError => e
|
|
777
|
+
puts "Error when calling HealthApi->readiness_health_ready_get_0: #{e}"
|
|
778
|
+
end
|
|
779
|
+
```
|
|
780
|
+
|
|
781
|
+
#### Using the readiness_health_ready_get_0_with_http_info variant
|
|
782
|
+
|
|
783
|
+
This returns an Array which contains the response data, status code and headers.
|
|
784
|
+
|
|
785
|
+
> <Array(Object, Integer, Hash)> readiness_health_ready_get_0_with_http_info
|
|
786
|
+
|
|
787
|
+
```ruby
|
|
788
|
+
begin
|
|
789
|
+
# Readiness probe (Kubernetes)
|
|
790
|
+
data, status_code, headers = api_instance.readiness_health_ready_get_0_with_http_info
|
|
791
|
+
p status_code # => 2xx
|
|
792
|
+
p headers # => { ... }
|
|
793
|
+
p data # => Object
|
|
794
|
+
rescue MailSafePro::ApiError => e
|
|
795
|
+
puts "Error when calling HealthApi->readiness_health_ready_get_0_with_http_info: #{e}"
|
|
796
|
+
end
|
|
797
|
+
```
|
|
798
|
+
|
|
799
|
+
### Parameters
|
|
800
|
+
|
|
801
|
+
This endpoint does not need any parameter.
|
|
802
|
+
|
|
803
|
+
### Return type
|
|
804
|
+
|
|
805
|
+
**Object**
|
|
806
|
+
|
|
807
|
+
### Authorization
|
|
808
|
+
|
|
809
|
+
No authorization required
|
|
810
|
+
|
|
811
|
+
### HTTP request headers
|
|
812
|
+
|
|
813
|
+
- **Content-Type**: Not defined
|
|
814
|
+
- **Accept**: application/json
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
## service_status_status_get
|
|
818
|
+
|
|
819
|
+
> Object service_status_status_get
|
|
820
|
+
|
|
821
|
+
Service Status
|
|
822
|
+
|
|
823
|
+
✅ MEJORA: Detailed service status with feature flags Shows which features are available and which are running in degraded mode
|
|
824
|
+
|
|
825
|
+
### Examples
|
|
826
|
+
|
|
827
|
+
```ruby
|
|
828
|
+
require 'time'
|
|
829
|
+
require 'mailsafepro'
|
|
830
|
+
|
|
831
|
+
api_instance = MailSafePro::HealthApi.new
|
|
832
|
+
|
|
833
|
+
begin
|
|
834
|
+
# Service Status
|
|
835
|
+
result = api_instance.service_status_status_get
|
|
836
|
+
p result
|
|
837
|
+
rescue MailSafePro::ApiError => e
|
|
838
|
+
puts "Error when calling HealthApi->service_status_status_get: #{e}"
|
|
839
|
+
end
|
|
840
|
+
```
|
|
841
|
+
|
|
842
|
+
#### Using the service_status_status_get_with_http_info variant
|
|
843
|
+
|
|
844
|
+
This returns an Array which contains the response data, status code and headers.
|
|
845
|
+
|
|
846
|
+
> <Array(Object, Integer, Hash)> service_status_status_get_with_http_info
|
|
847
|
+
|
|
848
|
+
```ruby
|
|
849
|
+
begin
|
|
850
|
+
# Service Status
|
|
851
|
+
data, status_code, headers = api_instance.service_status_status_get_with_http_info
|
|
852
|
+
p status_code # => 2xx
|
|
853
|
+
p headers # => { ... }
|
|
854
|
+
p data # => Object
|
|
855
|
+
rescue MailSafePro::ApiError => e
|
|
856
|
+
puts "Error when calling HealthApi->service_status_status_get_with_http_info: #{e}"
|
|
857
|
+
end
|
|
858
|
+
```
|
|
859
|
+
|
|
860
|
+
### Parameters
|
|
861
|
+
|
|
862
|
+
This endpoint does not need any parameter.
|
|
863
|
+
|
|
864
|
+
### Return type
|
|
865
|
+
|
|
866
|
+
**Object**
|
|
867
|
+
|
|
868
|
+
### Authorization
|
|
869
|
+
|
|
870
|
+
No authorization required
|
|
871
|
+
|
|
872
|
+
### HTTP request headers
|
|
873
|
+
|
|
874
|
+
- **Content-Type**: Not defined
|
|
875
|
+
- **Accept**: application/json
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
## startup_check_health_startup_get
|
|
879
|
+
|
|
880
|
+
> Object startup_check_health_startup_get
|
|
881
|
+
|
|
882
|
+
Startup Check
|
|
883
|
+
|
|
884
|
+
✅ MEJORA: Kubernetes startup probe Returns 200 once the application has completed startup Used to delay readiness checks until startup is complete
|
|
885
|
+
|
|
886
|
+
### Examples
|
|
887
|
+
|
|
888
|
+
```ruby
|
|
889
|
+
require 'time'
|
|
890
|
+
require 'mailsafepro'
|
|
891
|
+
|
|
892
|
+
api_instance = MailSafePro::HealthApi.new
|
|
893
|
+
|
|
894
|
+
begin
|
|
895
|
+
# Startup Check
|
|
896
|
+
result = api_instance.startup_check_health_startup_get
|
|
897
|
+
p result
|
|
898
|
+
rescue MailSafePro::ApiError => e
|
|
899
|
+
puts "Error when calling HealthApi->startup_check_health_startup_get: #{e}"
|
|
900
|
+
end
|
|
901
|
+
```
|
|
902
|
+
|
|
903
|
+
#### Using the startup_check_health_startup_get_with_http_info variant
|
|
904
|
+
|
|
905
|
+
This returns an Array which contains the response data, status code and headers.
|
|
906
|
+
|
|
907
|
+
> <Array(Object, Integer, Hash)> startup_check_health_startup_get_with_http_info
|
|
908
|
+
|
|
909
|
+
```ruby
|
|
910
|
+
begin
|
|
911
|
+
# Startup Check
|
|
912
|
+
data, status_code, headers = api_instance.startup_check_health_startup_get_with_http_info
|
|
913
|
+
p status_code # => 2xx
|
|
914
|
+
p headers # => { ... }
|
|
915
|
+
p data # => Object
|
|
916
|
+
rescue MailSafePro::ApiError => e
|
|
917
|
+
puts "Error when calling HealthApi->startup_check_health_startup_get_with_http_info: #{e}"
|
|
918
|
+
end
|
|
919
|
+
```
|
|
920
|
+
|
|
921
|
+
### Parameters
|
|
922
|
+
|
|
923
|
+
This endpoint does not need any parameter.
|
|
924
|
+
|
|
925
|
+
### Return type
|
|
926
|
+
|
|
927
|
+
**Object**
|
|
928
|
+
|
|
929
|
+
### Authorization
|
|
930
|
+
|
|
931
|
+
No authorization required
|
|
932
|
+
|
|
933
|
+
### HTTP request headers
|
|
934
|
+
|
|
935
|
+
- **Content-Type**: Not defined
|
|
936
|
+
- **Accept**: application/json
|
|
937
|
+
|