HistoryNamespace¶
pymoonraker.api.HistoryNamespace
¶
Print history.
Auto-generated from schema/moonraker_api.yaml.
Source code in src/pymoonraker/api/_generated.py
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 | |
delete_job
async
¶
delete_job(uid: str) -> HistoryDeleteResponse
Delete a history entry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
uid
|
str
|
Job ID to delete |
required |
Source code in src/pymoonraker/api/_generated.py
456 457 458 459 460 461 462 463 464 465 466 | |
get_job
async
¶
get_job(uid: str) -> HistoryJobResponse
Get details of a single history job.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
uid
|
str
|
Job ID |
required |
Source code in src/pymoonraker/api/_generated.py
444 445 446 447 448 449 450 451 452 453 454 | |
list
async
¶
list(limit: int | None = None, start: int | None = None, since: float | None = None, before: float | None = None, order: str | None = None) -> HistoryListResponse
List job history entries.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
limit
|
int | None
|
Maximum number of entries to return |
None
|
start
|
int | None
|
Starting index |
None
|
since
|
float | None
|
Unix timestamp; only return jobs after this time |
None
|
before
|
float | None
|
Unix timestamp; only return jobs before this time |
None
|
order
|
str | None
|
Sort order: asc or desc |
None
|
Source code in src/pymoonraker/api/_generated.py
407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 | |
totals
async
¶
totals() -> HistoryTotals
Get aggregate print statistics.
Source code in src/pymoonraker/api/_generated.py
439 440 441 442 | |