NAME

XAS::Model::Database::Messaging::Result::Alert - A Table for XAS Model

DESCRIPTION

The definition for the log table.

FIELDS

id

An automatic incremental index.

data type - bigint
is nullable - no

hostname

The name of the host that the entry is from.

data type - varchar
size - 254
is nullable - no

datetime

The date and time when the record was created.

data type - timestamp with time zone
timezone - local
is nullable - no

level

The level of the alert.

data type - varchar
size - 32
is nullable - no

facility

The facility of the alert.

data type - varchar
size - 32
is nullable - no

process

The name of the process that generated the alert.

data type - varchar
size - 32
is nullable - no

message

The message.

data type - varchar
size - 256
is nullable - no

pid

The process id of process that generated the alert.

data type - varchar
size - 16
is nullable - no

tid

The id for the thread of the process that generated the alert.

data type - varchar
size - 32
is nullable - no

msgnum

The message number of the message for the alert.

data type - varchar
size - 16
is nullable - no

cleared

Wither the alert has been cleared.

data type - boolean
default value - false
is nullable - yes

cleartime

The date and time that it was cleared.

data type - timestamp with time zone
timezone - local
is nullable - yes

revision

Used by DBIx::Class::OptimisticLocking to manage changes for this record.

data type - integer
is nullable - yes

METHODS

sqlt_deploy_hook($sqlt_table)

This method is used when a database schema is being generated. It can be used to add additional features.

$sqlt_table

The DBIx::Class class for this table.

table_name

Used by the helper functions mixed in from XAS::Model::DBM.

SEE ALSO

XAS::Collector
XAS

AUTHOR

Kevin L. Esteb, <kevin@kesteb.us>

COPYRIGHT AND LICENSE

Copyright (c) 2015 Kevin L. Esteb

This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.