mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
356 B
15 lines
356 B
7 months ago
|
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='')
|