Skip to content

Logs

genjishimada_sdk.logs

LogCreateRequest

Bases: Struct

Payload for recording a command usage log entry.

Attributes:

Name Type Description
command_name str

Name of the executed command.

user_id int

Identifier of the user who ran the command.

created_at datetime

Timestamp when the command was executed.

namespace dict

Arbitrary namespace metadata to store with the log.

command_name: str instance-attribute

created_at: dt.datetime instance-attribute

namespace: dict instance-attribute

user_id: int instance-attribute

MapClickCreateRequest

Bases: Struct

Payload for recording a click on a map banner or link.

Attributes:

Name Type Description
code OverwatchCode

Workshop code for the clicked map.

ip_address str

IP address of the user who clicked.

user_id int | None

Optional identifier of the clicking user.

source Literal['web', 'bot']

Origin of the click, such as web or bot.

code: OverwatchCode instance-attribute

ip_address: str instance-attribute

source: Literal['web', 'bot'] = 'web' class-attribute instance-attribute

user_id: int | None instance-attribute

__all__ = ('LogCreateRequest', 'MapClickCreateRequest') module-attribute