Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Command-line utility for interfacing with OpsDuty.
The opsduty-python
library is built with two core features in mind:
See the documentation for more details.
The opsduty-python
package contains a CLI that can be used to interact with
OpsDuty.
The preferred way to install the CLI is to use pipx install opsduty-python
.
$ opsduty
Usage: opsduty [OPTIONS] COMMAND [ARGS]...
Options:
--log-format [json|logfmt|console]
[default: console]
--log-level [error|warning|info|debug]
[default: info]
--base-url TEXT Base URL for API requests to OpsDuty.
--timeout INTEGER API request timeout to OpsDuty. [required]
--access-token TEXT Set the bearer token used to communicate
with OpsDuty. [env var:
OPSDUTY_ACCESS_TOKEN]
--version Show the version and exit.
-h, --help Show this message and exit.
Commands:
heartbeats Commands for managing and monitoring heartbeats.
schedules Commands for accesing schedules.
Command-line utility for interfacing with OpsDuty.
Send periodic heartbeats to OpsDuty using opsduty-python
. The heartbeat needs
to be configured in OpsDuty before check-ins can be observed. Head over to
https://opsduty.io to configure your heartbeats.
Install using pip install -U opsduty-python
.
from opsduty_python.heartbeats.heartbeats import (
heartbeat_checkin,
)
@heartbeat_checkin(heartbeat="HBXXXX", environment="prod", enabled=True)
def periodic_job():
pass
from opsduty_python.heartbeats.heartbeats import (
send_heartbeat_checkin,
)
def periodic_job():
try:
pass
except Exception:
print("Job failed.")
else:
send_heartbeat_checkin(heartbeat="HBXXXX", environment="prod")
FAQs
Command-line utility for interfacing with OpsDuty.
We found that opsduty-python demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.