jumpserver/apps/terminal/serializers/loki.py

15 lines
356 B
Python
Raw Normal View History

2024-05-07 11:33:12 +00:00
import time
from rest_framework import serializers
__all__ = [
'LokiLogSerializer',
]
class LokiLogSerializer(serializers.Serializer):
components = serializers.CharField(required=False, )
start = serializers.IntegerField()
end = serializers.IntegerField(default=time.time)
search = serializers.CharField(required=False, default='')