Provides the WazuhAgentGcpPubsubConfiguration which allows to parse the gcp-pubsub section of the Wazuh local configuration (ossec.conf).

class WazuhAgentGcpPubsubConfiguration(**kwargs)#

Bases: object

Object representation of an agent’s gcp-pubsub configuration section.

Wazuh reference: https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/gcp-pubsub.html

credentials_file: str | None#

Path to the Google Cloud credentials file. Absolute or relative to WAZUH_HOME.

day: int | None#

Day of the month the module will be triggered at.

enabled: bool#

Indicates whether the module is enabled or not.

interval: int | None#

Frequency in seconds in which the module will be triggered.

max_messages: int | None#

Maximum number of messages pulled in each iteration.

num_threads: int | None#

Number of threads that pull logs in each iteration.

project_id: str | None#

Google Cloud project ID.

pull_on_start: bool = True#

Indicates whether logs will be pulled on Wazuh agent start.

subscription_name: str | None#

Name of the subscription.

time: str | None#

Time of the day (hh:mm) the module will be triggered at.

wday: str | None#

Day of the week the module will be triggered at.