src.logs package¶
Subpackages¶
Submodules¶
src.logs.admin module¶
src.logs.apps module¶
src.logs.log_service module¶
-
src.logs.log_service.
create_log
(log, name, folder='cache/log_cache/')¶
-
src.logs.log_service.
create_properties
(log)¶ Create read-only dict with methods in this class
Return type: dict
src.logs.models module¶
-
class
src.logs.models.
Log
(*args, **kwargs)¶ Bases:
src.common.models.CommonModel
A XES log file on disk
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
log
¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
name
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects
= <django.db.models.manager.Manager object>¶
-
original_log
¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
path
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
properties
¶ A placeholder class that provides a way to set the attribute on the model.
-
real_log
¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
test_log
¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
to_dict
()¶
-
training_log
¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
exception
src.logs.serializers module¶
-
class
src.logs.serializers.
LogSerializer
(instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)¶ Bases:
rest_framework.serializers.ModelSerializer
-
class
Meta
¶ Bases:
object
-
fields
= ('id', 'name', 'properties')¶
-
model
¶ alias of
src.logs.models.Log
-
-
class
src.logs.urls module¶
src.logs.views module¶
-
class
src.logs.views.
LogDetail
(**kwargs)¶ Bases:
rest_framework.mixins.RetrieveModelMixin
,rest_framework.generics.GenericAPIView
-
get
(request, *args, **kwargs)¶
-
queryset
¶
-
serializer_class
¶ alias of
src.logs.serializers.LogSerializer
-
-
class
src.logs.views.
LogList
(**kwargs)¶ Bases:
rest_framework.mixins.ListModelMixin
,rest_framework.generics.GenericAPIView
-
get
(request, *args, **kwargs)¶
-
post
(request)¶
-
queryset
¶
-
serializer_class
¶ alias of
src.logs.serializers.LogSerializer
-
-
class
src.logs.views.
SplitDetail
(**kwargs)¶ Bases:
rest_framework.mixins.RetrieveModelMixin
,rest_framework.generics.GenericAPIView
-
get
(request, *args, **kwargs)¶
-
queryset
¶
-
serializer_class
¶
-
-
src.logs.views.
get_log_stats
(self, request, *args, **kwargs)¶ Get log statistics
DEPRECATED ENDPOINT. LOGS HAVE PROPERTIES.
End URL with * events for event_by_date * resources for resources_by_date * executions for event_executions * traceAttributes for trace_attributes * eventsInTrace for events_in_trace * newTraces for new_trace_start
-
src.logs.views.
upload_multiple
(self, request, *args, **kwargs)¶