mirror of https://github.com/jumpserver/jumpserver
15 lines
356 B
Python
15 lines
356 B
Python
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='')
|