diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2013-08-23 14:44:02 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2013-10-15 15:23:49 +0200 |
commit | 144dcfc5a924ecba7f615064156f6a40247c39b2 (patch) | |
tree | e877b70f634e42603b5755213f6b2bac99bdd4fa /mof | |
parent | 7584e2fb80a74b7e4db3b653937a2c6ee64a7400 (diff) | |
download | openlmi-providers-144dcfc5a924ecba7f615064156f6a40247c39b2.tar.gz openlmi-providers-144dcfc5a924ecba7f615064156f6a40247c39b2.tar.xz openlmi-providers-144dcfc5a924ecba7f615064156f6a40247c39b2.zip |
journald: Basic provider implementation
This is a fully functional basic implementation of the provider.
Maximum number of enumerated instances is limited, see the code.
TODO list: https://fedorahosted.org/openlmi/ticket/142
Diffstat (limited to 'mof')
-rw-r--r-- | mof/60_LMI_Journald.mof | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/mof/60_LMI_Journald.mof b/mof/60_LMI_Journald.mof new file mode 100644 index 0000000..85dad2b --- /dev/null +++ b/mof/60_LMI_Journald.mof @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2013 Red Hat, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Authors: Tomas Bzatek <tbzatek@redhat.com> + */ + +[ Version("0.2.0"), Provider("cmpi:cmpiLMI_Journald") ] +class LMI_JournalMessageLog: CIM_MessageLog +{ + [ Override("CreationClassName"), Key ] + String CreationClassName; + + [ Override("Name"), Key] + String Name; +}; + +[ Version("0.2.0"), Provider("cmpi:cmpiLMI_Journald") ] +class LMI_JournalLogRecord: CIM_LogRecord +{ + [ Override("LogCreationClassName"), Key ] + String LogCreationClassName; + + [ Override("LogName"), Key ] + String LogName; + + [ Override("CreationClassName"), Key ] + String CreationClassName; + + [ Override("RecordID"), Key ] + String RecordID; + + [ Override("MessageTimestamp"), Key ] + datetime MessageTimestamp; + + String HostName; + + [ Override("DataFormat") ] + String DataFormat; +}; + +[ Version("0.2.0"), Provider("cmpi:cmpiLMI_Journald"), + Association ] +class LMI_JournalRecordInLog: CIM_RecordInLog +{ + [ Override("MessageLog"), Key ] + LMI_JournalMessageLog REF MessageLog; + + [ Override("LogRecord"), Key ] + LMI_JournalLogRecord REF LogRecord; +}; |