Skip to main content

Input

This class contains all available information about a task's execution that a log plugin can use to construct task's log links. It provides details such as host and pod names, container information, log names, and various timestamps related to the pod's lifecycle. The class also includes task execution identifiers and extra template variables for flexible log link generation.

Attributes

AttributeTypeDescription
HostNamestringStores the hostname where the task execution occurred, used for identifying the machine associated with the logs.
PodNamestringStores the name of the Kubernetes pod where the task execution ran, used for locating pod-specific logs.
NamespacestringStores the Kubernetes namespace of the pod, used for scoping log queries to a specific environment.
ContainerNamestringStores the name of the container within the pod, used for pinpointing logs from a specific process.
ContainerIDstringStores the unique identifier of the container, used for direct access to container-specific log streams.
LogNamestringStores the name of the log stream or file, used for distinguishing different log outputs from a single container.
PodRFC3339StartTimestringStores the start time of the pod in RFC3339 format, used for time-based filtering of logs.
PodRFC3339FinishTimestringStores the finish time of the pod in RFC3339 format, used for defining the end boundary for log retrieval.
PodUnixStartTimeint64Stores the start time of the pod as a Unix timestamp, used for time-based filtering of logs.
PodUnixFinishTimeint64Stores the finish time of the pod as a Unix timestamp, used for defining the end boundary for log retrieval.
PodUIDstringStores the unique identifier of the pod, used for unambiguous identification of the pod across systems.
TaskExecutionIDpluginsCore.TaskExecutionIDStores the identifier for the task execution, used to link logs to a specific task instance.
ExtraTemplateVars[][TemplateVar](templatevar.md?sid=flyteplugins_go_tasks_pluginmachinery_tasklog_templatevar)Stores additional variables that can be used in log link templates, allowing for flexible log URL construction.
TaskTemplate*core.TaskTemplateStores the template definition for the task, providing structural information that might be relevant for log generation or linking.
EnableVscodeboolIndicates whether VS Code integration is enabled, which might affect the generation of log links or access methods.
AgentIDstringStores the identifier of the agent responsible for the task execution, used for routing or identifying the source of logs.
ConnectorIDstringStores the identifier of the connector used, which can influence how logs are accessed or where they are stored.

Constructor

Signature

def Input(
HostName: string = null,
PodName: string = null,
Namespace: string = null,
ContainerName: string = null,
ContainerID: string = null,
LogName: string = null,
PodRFC3339StartTime: string = null,
PodRFC3339FinishTime: string = null,
PodUnixStartTime: int64 = null,
PodUnixFinishTime: int64 = null,
PodUID: string = null,
TaskExecutionID: pluginsCore.TaskExecutionID = null,
ExtraTemplateVars: [][TemplateVar](templatevar.md?sid=flyteplugins_go_tasks_pluginmachinery_tasklog_templatevar) = null,
TaskTemplate: *core.TaskTemplate = null,
EnableVscode: boolean = null,
AgentID: string = null,
ConnectorID: string = null
) - > null

Parameters

NameTypeDescription
HostNamestring = nullThe hostname where the task is executed.
PodNamestring = nullThe name of the Kubernetes pod.
Namespacestring = nullThe Kubernetes namespace of the pod.
ContainerNamestring = nullThe name of the container within the pod.
ContainerIDstring = nullThe ID of the container.
LogNamestring = nullThe name of the log.
PodRFC3339StartTimestring = nullThe start time of the pod in RFC3339 format.
PodRFC3339FinishTimestring = nullThe finish time of the pod in RFC3339 format.
PodUnixStartTimeint64 = nullThe start time of the pod in Unix timestamp format.
PodUnixFinishTimeint64 = nullThe finish time of the pod in Unix timestamp format.
PodUIDstring = nullThe unique identifier of the pod.
TaskExecutionIDpluginsCore.TaskExecutionID = nullThe ID of the task execution.
ExtraTemplateVars[][TemplateVar](templatevar.md?sid=flyteplugins_go_tasks_pluginmachinery_tasklog_templatevar) = nullAdditional template variables.
TaskTemplate*core.TaskTemplate = nullThe task template.
EnableVscodeboolean = nullIndicates if VSCode is enabled.
AgentIDstring = nullThe ID of the agent.
ConnectorIDstring = nullThe ID of the connector.

Methods


templateVars()

@classmethod
def templateVars() - > [][TemplateVar](templatevar.md?sid=flyteplugins_go_tasks_pluginmachinery_tasklog_templatevar)

Retrieves a list of template variables that can be used to construct log links. This method provides access to dynamic values relevant to the task's execution.

Returns

TypeDescription
[][TemplateVar](templatevar.md?sid=flyteplugins_go_tasks_pluginmachinery_tasklog_templatevar)A list of TemplateVar objects, each containing a key-value pair for template substitution.