jumpserver/apps/terminal/serializers/command.py

12 lines
353 B
Python
Raw Normal View History

# ~*~ coding: utf-8 ~*~
from rest_framework import serializers
class InsecureCommandAlertSerializer(serializers.Serializer):
input = serializers.CharField()
asset = serializers.CharField()
user = serializers.CharField()
risk_level = serializers.IntegerField()
session = serializers.UUIDField()
2021-10-26 03:48:49 +00:00
org_id = serializers.CharField()