Skip to main content

Methods

Get Events for Pod, Job Run, Application. The events are sourced from Kubernetes as well as events captured by truefoundry. Optional query parameters include startTs, endTs for filtering.

Parameters

start_ts
typing.Optional[str]
Start timestamp (ISO format) for querying events
end_ts
typing.Optional[str]
End timestamp (ISO format) for querying events
application_id
typing.Optional[str]
Application ID
application_fqn
typing.Optional[str]
Application FQN
pod_names
typing.Optional[typing.Union[str, typing.Sequence[str]]]
Name of the pods
job_run_name
typing.Optional[str]
Job run name

Returns

GetEventsResponse
GetEventsResponse
🔗 GetEventsResponseReturns a list of events matching the query parameters.

Usage

from truefoundry import TrueFoundry

client = TrueFoundry(
    api_key="YOUR_API_KEY",
    base_url="https://yourhost.com/path/to/api",
)

client.events.get(
    start_ts="value",
    end_ts="value",
    application_id="application_id_value",
    application_fqn="value",
    pod_names="value",
    job_run_name="value",
)