Platform api
dadosfera.services.platform_api.pipeline_last_status
pipeline_last_status(platform_api_base_url, pipeline_id)
Get the last status of a pipeline.
PARAMETER | DESCRIPTION |
---|---|
platform_api_base_url
|
The base URL of the platform API.
TYPE:
|
pipeline_id
|
The ID of the pipeline.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
The last status of the pipeline.
TYPE:
|
Source code in dadosfera/services/platform_api.py
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
|
dadosfera.services.platform_api.poll_for_terminal_state
poll_for_terminal_state(platform_api_base_url, pipeline_id, poll_interval=10)
Polls the pipeline_last_status until it reaches a terminal state (FAILED, SUCCESS).
PARAMETER | DESCRIPTION |
---|---|
platform_api_base_url
|
Base URL of the platform API.
TYPE:
|
pipeline_id
|
The ID of the pipeline to check.
TYPE:
|
poll_interval
|
Time in seconds between each poll. Default is 10 seconds.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
The terminal state of the pipeline.
TYPE:
|
Source code in dadosfera/services/platform_api.py
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
|
dadosfera.services.platform_api.delete_pipeline
delete_pipeline(platform_api_base_url, pipeline_id, customer_name)
Delete a pipeline.
PARAMETER | DESCRIPTION |
---|---|
platform_api_base_url
|
The base URL of the platform API.
TYPE:
|
pipeline_id
|
The ID of the pipeline to delete.
TYPE:
|
customer_name
|
The name of the customer.
TYPE:
|
Source code in dadosfera/services/platform_api.py
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
|
dadosfera.services.platform_api.update_jdbc_dataset_asset
update_jdbc_dataset_asset(platform_api_base_url, job_id, payload)
Update a JDBC dataset asset.
PARAMETER | DESCRIPTION |
---|---|
platform_api_base_url
|
The base URL of the platform API.
TYPE:
|
job_id
|
The ID of the job to update.
TYPE:
|
payload
|
The data payload for the update.
TYPE:
|
Source code in dadosfera/services/platform_api.py
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
|
dadosfera.services.platform_api.jdbc_reset_job_state
jdbc_reset_job_state(platform_api_base_url, job_id)
Reset the state of a JDBC job.
PARAMETER | DESCRIPTION |
---|---|
platform_api_base_url
|
The base URL of the platform API.
TYPE:
|
job_id
|
The ID of the job to reset.
TYPE:
|
Source code in dadosfera/services/platform_api.py
219 220 221 222 223 224 225 226 227 228 229 230 231 |
|
dadosfera.services.platform_api.jdbc_update_from_incremental_to_full_table
jdbc_update_from_incremental_to_full_table(platform_api_base_url, job_id)
Update a JDBC job from incremental to full table loading.
PARAMETER | DESCRIPTION |
---|---|
platform_api_base_url
|
The base URL of the platform API.
TYPE:
|
job_id
|
The ID of the job to update.
TYPE:
|
Source code in dadosfera/services/platform_api.py
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 |
|
dadosfera.services.platform_api.jdbc_update_from_full_table_to_incremental
jdbc_update_from_full_table_to_incremental(platform_api_base_url, incremental_column_name, job_id)
Update a JDBC job from full table to incremental loading.
PARAMETER | DESCRIPTION |
---|---|
platform_api_base_url
|
The base URL of the platform API.
TYPE:
|
incremental_column_name
|
The name of the incremental column.
TYPE:
|
job_id
|
The ID of the job to update.
TYPE:
|
Source code in dadosfera/services/platform_api.py
257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
|
dadosfera.services.platform_api.update_job_memory
update_job_memory(platform_api_base_url, job_id, memory_allocation_mb)
Update the memory allocation for a specific job in the platform.
PARAMETER | DESCRIPTION |
---|---|
platform_api_base_url
|
The base URL for the platform API.
TYPE:
|
job_id
|
The unique identifier for the job to be updated.
TYPE:
|
memory_allocation_mb
|
The amount of memory (in megabytes) to allocate for the job.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
None
|
None |
RAISES | DESCRIPTION |
---|---|
HTTPError
|
If the request to the platform API returns a status code other than 200. |
Source code in dadosfera/services/platform_api.py
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 |
|
dadosfera.services.platform_api.update_pipeline_memory
update_pipeline_memory(platform_api_base_url, pipeline_id, memory_allocation_mb)
Update the memory allocation for a specific pipeline in the platform.
PARAMETER | DESCRIPTION |
---|---|
platform_api_base_url
|
The base URL for the platform API.
TYPE:
|
pipeline_id
|
The unique identifier for the pipeline to be updated.
TYPE:
|
memory_allocation_mb
|
The amount of memory (in megabytes) to allocate for the pipeline.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
None
|
None |
RAISES | DESCRIPTION |
---|---|
HTTPError
|
If the request to the platform API returns a status code other than 200. |
Source code in dadosfera/services/platform_api.py
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 |
|