관리-도구
편집 파일: v1_db_migrator.cpython-311.pyc
� �CgLQ � � � d dl Z d dlZd dlZd dlmZmZ d dlZd dlmZmZmZm Z m Z mZ d dlm Z mZ d dlmZ d dlmZ d dlmZmZ d dlmZ d d lmZ d d lmZ d dlmZmZ d dlm Z m!Z! d d l"m#Z# dZ$g d�Z%g d�Z& e� � Z' G d� de'� � Z( G d� de'� � Z) G d� de*� � Z+ G d� de,� � Z- G d� de� � Z.dS )� N)�datetime� timedelta)�Column�Float�Integer�String�func�insert)� DatabaseError�SQLAlchemyError)�declarative_base)�sessionmaker)�LveStatsPlugin�LveStatsPluginTerminated)�uidconverter)�gm_datetime_to_unixtimestamp)� get_chunks)�fix_lost_keep_alive�validate_database)�history�history_x60)�history_govz/var/lve/v1_migration_last.ts)�id�mem� mem_limit� mem_fault�memphy�lmemphy�memphy_fault�mep� mep_limit� mep_fault�nproc�lnproc�nproc_fault�iops�liops)�username�sum_cpu� sum_write�sum_read�limit_cpu_on_period_end�limit_read_on_period_end�limit_write_on_period_end�cause_of_restrictc �N � e Zd ZdZdZ eded�� � Z ed ed� � d�� � Z ede � � Z ed e � � Z ed e � � Z ede� � Z ede� � Z ed e� � Z ede� � Z ed ed� � d�� � Z ede� � ZdS )�V1HistoryGovz* Mapping out v1 gov history table r �tsT��primary_keyr( �@ r) r* r+ r, r- r. r/ � server_id� �weightN)�__name__� __module__�__qualname__�__doc__� __tablename__r r r2 r r( r r) r* r+ r, r- r. r/ r6 r8 � � ��/builddir/build/BUILDROOT/lve-stats-4.2.10-1.el8.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/lvestats/plugins/other/v1_db_migrator.pyr1 r1 <