MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / get_logs

Method get_logs

python/ct_monitor/ct_monitor.py:34–38  ·  view source on GitHub ↗

Fetch recent certificate transparency log entries.

(self, count: int = 100)

Source from the content-addressed store, hash-verified

32 self.last_checked = None
33
34 def get_logs(self, count: int = 100):
35 """Fetch recent certificate transparency log entries."""
36 url = f"{BASE_URL}/?q={self.domain}&output=json&limit={count}"
37 response = requests.get(url)
38 return response.json()
39
40 def check_one_log(self, log: object):
41 """Fetch and inspect a single certificate log entry."""

Callers 1

check_new_logsMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected