Models¶
Account¶
- class dathost.models.account.AccountModel¶
Holds infomation around a account.
- account_id¶
- Type
str
- email¶
- Type
str
- gravatar_url¶
- Type
str
- credits¶
- Type
str
- seconds_left¶
- Type
int
- time_left¶
- Type
int
- roles¶
- Type
str
- trial¶
- Type
bool
- accepted_terms_of_service_version¶
- Type
int
- subscription_pay_with_credits¶
- Type
bool
- affiliate¶
- Type
bool
- first_month_discount_percentage¶
- Type
float
- confirmed_at¶
- Type
datetime
Backup¶
File¶
Match¶
- class dathost.models.match.MatchModel¶
Holds match details.
- match_id¶
- Type
str
- server_id¶
- Type
str
- connect_time¶
- Type
int
- round_end_webhook¶
- Type
str
- match_end_webhook¶
- Type
str
- finished¶
- Type
bool
- cancel_reason¶
- Type
str
- rounds_played¶
- Type
int
- spectators¶
- Type
list
- knife_round¶
- Type
bool
- playwin¶
- Type
bool
- playwin_webhook¶
- Type
str
- playwin_result¶
- Type
dict
- warmup_time¶
- Type
int
- wait_for_spectators¶
- Type
bool
- enable_pause¶
- Type
bool
- enable_ready¶
- Type
bool
- enable_tech_pause¶
- Type
bool
- team_1_coach¶
- Type
str
- team_2_coach¶
- Type
str
- wait_for_coaches¶
- Type
bool
- for ... in players() Generator[dathost.models.match.MatchPlayerModel, None, None] ¶
Used to list players.
- Yields
PlayerModel – Holds details on player.
Metric¶
- class dathost.models.metrics.MetricsModel¶
- for ... in all_time_players() Generator[dathost.models.metrics.PlayerModel, None, None] ¶
Used to list all time players.
- Yields
PlayerModel – Holds details on online players.
- for ... in maps() Generator[dathost.models.metrics.MapsModel, None, None] ¶
Used to list all maps what have been played.
- Yields
MapsModel – Holds details on maps.
- for ... in players_online() Generator[dathost.models.metrics.PlayerModel, None, None] ¶
Used to list all players online.
- Yields
PlayerModel – Holds details on online players.
- for ... in players_online_graph() Generator[dathost.models.metrics.PlayersOnlineGraphModel, None, None] ¶
Used to list all players online graph.
- Yields
PlayersOnlineGraphModel – Holds details on online player times.
Server¶
- class dathost.models.server.ServerModel¶
Holds details on server
- server_id¶
- Type
str
- name¶
- Type
str
- user_data¶
- Type
str
- match_id¶
- Type
str
- game¶
- Type
str
- location¶
- Type
str
- players_online¶
- Type
int
- status¶
- Type
list
- booting¶
- Type
bool
- server_error¶
- Type
str
- ip¶
- Type
str
- raw_ip¶
- Type
str
- on¶
- Type
bool
- ports¶
- Type
- confirmed¶
- Type
bool
- cost_per_hour¶
- Type
int
- max_cost_per_hour¶
- Type
int
- month_credits¶
- Type
float
- month_reset_at¶
- Type
datetime
- max_cost_per_month¶
- Type
float
- subscription_cycle_months¶
- Type
int
- subscription_renewal_failed_attempts¶
- Type
int
- mysql¶
- Type
bool
- autostop¶
- Type
bool
- autostop_minutes¶
- Type
int
- mysql_username¶
- Type
str
- mysql_password¶
- Type
str
- ftp_password¶
- Type
str
- disk_usage_bytes¶
- Type
int
- default_file_locations¶
- Type
list
- custom_domain¶
- Type
str
- added_voice_server¶
- Type
str
- duplicate_source_server¶
- Type
str
- teamspeak¶
- Type
- teamfortress¶
- Type
- valheim¶
- Type
- csgo¶
- Type
CsgoModel
- max_disk_usage_gb¶
- Type
int
- reboot_on_crash¶
- Type
bool
- core_dump¶
- Type
bool
- prefer_dedicated¶
- Type
bool
- for ... in scheduled_commands() Generator[dathost.models.server.ScheduledCommandsModel, None, None] ¶
Lists scheduled commands.
- Yields
ScheduledCommandsModel – Holds data on scheduled commands.
- class dathost.models.server.ScheduledCommandsModel¶
Holds details on scheduled commands
- name¶
- Type
str
- action¶
- Type
str
- command¶
- Type
str
- run_at¶
- Type
str
- repeat¶
- Type
bool
- class dathost.models.server.TeamspeakModel¶
Holds details on teamspeak server
- slots¶
- Type
int
- admin_token¶
- Type
str