| Server IP : 3.138.164.131 / Your IP : 216.73.216.136 Web Server : Apache System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64 User : injazaat ( 1471) PHP Version : 8.1.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/opt/alt/python37/lib/python3.7/site-packages/ssa/__pycache__/ |
Upload File : |
B
g��dZ
� @ s� d dl Z d dlZd dlZd dlmZmZ d dlmZmZmZm Z m
Z
mZmZm
Z
d dlmZ d dlmZ d dlmZ dZdZe� ZG d d
� d
e�Zdd� Zd
d� Zdd� Zdd� Zdd� Zddd�Zejed�dd��ZdS )� N)�datetime� timedelta)�Column�Boolean�DateTime�Integer�String�
create_engine�event�func)�declarative_base)� Inspector)�Sessionz/var/lve/ssa.db� c @ s� e Zd ZdZdZeedd�Zeeddd�Z eeddd�Z
eedd�Zeedd�Zee
dd�Zee
dd�Zeedd�Zeedd�Zee
dd�Zeedd�e�� d �Zeedd�e�� e�� d
�ZdS )�
RequestResultay
Describes processed request stored in database file.
E.g.
{
"timestamp": "1650008727",
"url": "http://mydomain.com/index.php",
"duration": 162077,
"hitting_limits": false,
"throttled_time": 0,
"io_throttled_time": 0,
"wordpress": true
}
Note: created_at, updated_at is saved in local TZ format
Z
scrape_resultT)Zprimary_keyF)�index�nullable)r )�timezone)�server_default)Zonupdater N)�__name__�
__module__�__qualname__�__doc__Z
__tablename__r r �idr �domain�path� timestamp�durationr Zis_slow_requestZhitting_limitsZthrottled_timeZio_throttled_timeZ wordpressr r �now�
created_atZ
updated_at� r r �7/opt/alt/python37/lib/python3.7/site-packages/ssa/db.pyr "