SLA Checker
SLA Checker helps to check if an event is within the defined SLA.
Installation
pip3 install sla-checker
Usage
Input parameters:
event_start: when the event starts (e.g. when a trouble ticket is created)event_end: when the event ends (e.g. when the trouble ticket is solved)country_code(optional ifworking_on_holidays = True): the country code (e.g. IT)minutes_to_resolve: maximum time in minutes allowed betweenevent_startandevent_endopening_hours(optional if 7x24 service): define opening hours (e.g.09:00)closing_hours(optional if 7x24 service): define closing hours (e.g.18:00)working_on_sat(optional, default isFalse): define if Saturday is a working dayworking_on_holidays(optional, default isFalse): define if Sunday and Holidays are working days
Example (7x24 service with 2 hours SLA):
sla = sla_checker.SLAChecker()
sla.check(
event_start = datetime.datetime(2020, 12, 24, 17, 0, 0),
event_end = datetime.datetime(2020, 12, 28, 10, 0, 1),
country_code = "IT",
minutes_to_resolve = 120,
)
Example (5x9 service with 2 hours SLA):
sla = sla_checker.SLAChecker()
sla.check(
event_start = datetime.datetime(2020, 12, 24, 17, 0, 0),
event_end = datetime.datetime(2020, 12, 28, 10, 0, 1),
country_code = "IT",
minutes_to_resolve = 120,
opening_hours = "09:00",
closing_hours = "18:00",
working_on_sat = False,
working_on_holidays = False,
)
Example (7x9 service with 2 hours SLA):
sla = sla_checker.SLAChecker()
sla.check(
event_start = datetime.datetime(2020, 12, 24, 17, 0, 0),
event_end = datetime.datetime(2020, 12, 28, 10, 0, 1),
country_code = "IT",
minutes_to_resolve = 120,
opening_hours = "09:00",
closing_hours = "18:00",
working_on_sat = True,
working_on_holidays = True,
)
Metadata
Release files for sla-checker 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sla_checker-0.0.3.tar.gz | 16.4 kB | Without provenance | Details for sla_checker-0.0.3.tar.gz |
Release files / sla_checker-0.0.3.tar.gz
| Download URL | sla_checker-0.0.3.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c762be49ffcfb0a83255a9b1af5996a95d177e33377a0a3595d82eaa27174ec0
|
|
BLAKE2b-256 checksum How to use checksums |
5968bb1b273eb2cb8f31c2e6f6f4b4c6f1ef238e4be53ea3703431d7d8ead865
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for sla-checker 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.