sifter.logsifter.logsieves.models

LogSieves model graph

Graph of models in the sifter.logsifter.logsieves app and related apps.

Defines LogSieve class and related classes.

class sifter.logsifter.logsieves.models.LogRule(*args, **kwargs)[source]

Bases: sifter.sieves.models.StringRule

A Rule subclass for examining log messages.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

get_operator_display(**morekwargs)
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <cyphon.models.GetByNameManager object>
protocol

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

child.parent is a ForwardManyToOneDescriptor instance.

class sifter.logsifter.logsieves.models.LogSieve(*args, **kwargs)[source]

Bases: sifter.sieves.models.Sieve

A RuleSet subclass for examining log messages.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

chutes

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 a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

get_logic_display(**morekwargs)
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

nodes

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 a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

objects = <sifter.sieves.models.SieveManager object>
class sifter.logsifter.logsieves.models.LogSieveNode(*args, **kwargs)[source]

Bases: sifter.sieves.models.SieveNode

A RuleSetNode subclass for examining log messages.

CONTENT_TYPES = <Q: (OR: (AND: ('model', 'logrule'), ('app_label', 'logsieves')), (AND: ('model', 'logsieve'), ('app_label', 'logsieves')))>
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

RULE = <Q: (AND: ('model', 'logrule'), ('app_label', 'logsieves'))>
RULESET = <Q: (AND: ('model', 'logsieve'), ('app_label', 'logsieves'))>
content_type

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

child.parent is a ForwardManyToOneDescriptor instance.

content_type_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

node_object

Provide a generic many-to-one relation through the content_type and object_id fields.

This class also doubles as an accessor to the related object (similar to ForwardManyToOneDescriptor) by adding itself as a model attribute.

objects = <django.db.models.manager.Manager object>
sieve

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

child.parent is a ForwardManyToOneDescriptor instance.

sieve_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.