From 907aa07a767af85115d56df6bfd88e3b49e86cd9 Mon Sep 17 00:00:00 2001 From: Loic Laurent Date: Thu, 14 Feb 2019 15:52:00 +0100 Subject: [PATCH] doc --- .../objects/realtime_acknowledgement.rst | 30 +++++++++---------- .../objects/realtime_acknowledgement.rst | 30 +++++++++---------- .../Acknowledgement/RtAcknowledgement.php | 4 +-- 3 files changed, 32 insertions(+), 32 deletions(-) diff --git a/doc/en/api/clapi/objects/realtime_acknowledgement.rst b/doc/en/api/clapi/objects/realtime_acknowledgement.rst index c1fe363e7be..4e62a6a9feb 100644 --- a/doc/en/api/clapi/objects/realtime_acknowledgement.rst +++ b/doc/en/api/clapi/objects/realtime_acknowledgement.rst @@ -15,24 +15,24 @@ You can use the value "HOST" to display all the acknowledgement:: [root@centreon ~]# ./centreon -u admin -p centreon -o RTACKNOWLEDGEMENT -a show -v "HOST;generic-host" id;host_name;entry_time;author;comment_data;sticky;notify_contacts;persistent_comment - 6;generic-host;2017/09/28 14:21;admin;'generic-comment';1;0;1 + 6;generic-host;2017/09/28 14:21;admin;'generic-comment';2;0;1 Columns are the following : ================================= ================================================================================== Column Description ================================= ================================================================================== -Id Id of the acknowledgement +Id Id of the acknowledgement -Host_name Name of the host +Host_name Name of the host Entry_time Beginning of acknowledgement -Author Name of the author +Author Name of the author Comment_data Short description of the acknowledgement -Sticky Acknowledgement will be maintained in case of a change of Not-OK status (0/1) +Sticky Acknowledgement will be maintained in case of a change of Not-OK status (0/2) Notify_contacts Notification send to the contacts linked to the object (0/1) @@ -48,26 +48,26 @@ You can use the value "SVC" to display all the acknowledgement:: [root@centreon ~]# ./centreon -u admin -p centreon -o RTACKNOWLEDGEMENT -a show -v "SVC;generic-host,generic-service" id;host_name;service_name;entry_time;author;comment_data;sticky;notify_contacts;persistent_comment - 42;generic-host;generic-service;2017/09/28 14:21;admin;'generic-comment';1;0;1 + 42;generic-host;generic-service;2017/09/28 14:21;admin;'generic-comment';2;0;1 Columns are the following : ================================= =========================================================================== Column Description ================================= =========================================================================== -Id Id of the acknowledgement +Id Id of the acknowledgement -Host_name Name of the host +Host_name Name of the host -Service_name Name of the service +Service_name Name of the service Entry_time Beginning of acknowledgement -Author Name of the author +Author Name of the author Comment_data Short description of the acknowledgement -Sticky Acknowledgement will be maintained in case of a change of Not-OK status (0/1) +Sticky Acknowledgement will be maintained in case of a change of Not-OK status (0/2) Notify_contacts Notification send to the contacts linked to the object (0/1) @@ -80,7 +80,7 @@ Real time Acknowledgement for : Addhost If you want to associate a host to a real time acknowledgement, use the **ADD** action:: - [root@centreon ~]# ./centreon -u admin -p centreon -o RTACKNOWLEDGEMENT -a add -v "HOST;central;my comments;1;0;1" + [root@centreon ~]# ./centreon -u admin -p centreon -o RTACKNOWLEDGEMENT -a add -v "HOST;central;my comments;2;0;1" The required parameters are the following : @@ -93,7 +93,7 @@ Order Description 3 Short description of the real time acknowledgement -4 Acknowledgement maintained in case of a change of status (Sticky use 0 or 1) +4 Acknowledgement maintained in case of a change of status (Sticky use 0 or 2) 5 Notification send to the contacts linked to the object (Notify use 0 or 1) @@ -107,7 +107,7 @@ Real time Acknowledgement for : addservice If you want to associate a service or service group to a real time acknowledgement, use the **ADD** action:: - [root@centreon ~]# ./centreon -u admin -p centreon -o RTACKNOWLEDGEMENT -a add -v "SVC;central,ping|central,memory;my comments;1;0;1" + [root@centreon ~]# ./centreon -u admin -p centreon -o RTACKNOWLEDGEMENT -a add -v "SVC;central,ping|central,memory;my comments;2;0;1" The required parameters are the following : @@ -120,7 +120,7 @@ Order Description 3 Short description of the real time acknowledgement -4 Acknowledgement maintained in case of a change of status (Sticky use 0 or 1) +4 Acknowledgement maintained in case of a change of status (Sticky use 0 or 2) 5 Notification send to the contacts linked to the object (Notify use 0 or 1) diff --git a/doc/fr/api/clapi/objects/realtime_acknowledgement.rst b/doc/fr/api/clapi/objects/realtime_acknowledgement.rst index c1fe363e7be..4e62a6a9feb 100644 --- a/doc/fr/api/clapi/objects/realtime_acknowledgement.rst +++ b/doc/fr/api/clapi/objects/realtime_acknowledgement.rst @@ -15,24 +15,24 @@ You can use the value "HOST" to display all the acknowledgement:: [root@centreon ~]# ./centreon -u admin -p centreon -o RTACKNOWLEDGEMENT -a show -v "HOST;generic-host" id;host_name;entry_time;author;comment_data;sticky;notify_contacts;persistent_comment - 6;generic-host;2017/09/28 14:21;admin;'generic-comment';1;0;1 + 6;generic-host;2017/09/28 14:21;admin;'generic-comment';2;0;1 Columns are the following : ================================= ================================================================================== Column Description ================================= ================================================================================== -Id Id of the acknowledgement +Id Id of the acknowledgement -Host_name Name of the host +Host_name Name of the host Entry_time Beginning of acknowledgement -Author Name of the author +Author Name of the author Comment_data Short description of the acknowledgement -Sticky Acknowledgement will be maintained in case of a change of Not-OK status (0/1) +Sticky Acknowledgement will be maintained in case of a change of Not-OK status (0/2) Notify_contacts Notification send to the contacts linked to the object (0/1) @@ -48,26 +48,26 @@ You can use the value "SVC" to display all the acknowledgement:: [root@centreon ~]# ./centreon -u admin -p centreon -o RTACKNOWLEDGEMENT -a show -v "SVC;generic-host,generic-service" id;host_name;service_name;entry_time;author;comment_data;sticky;notify_contacts;persistent_comment - 42;generic-host;generic-service;2017/09/28 14:21;admin;'generic-comment';1;0;1 + 42;generic-host;generic-service;2017/09/28 14:21;admin;'generic-comment';2;0;1 Columns are the following : ================================= =========================================================================== Column Description ================================= =========================================================================== -Id Id of the acknowledgement +Id Id of the acknowledgement -Host_name Name of the host +Host_name Name of the host -Service_name Name of the service +Service_name Name of the service Entry_time Beginning of acknowledgement -Author Name of the author +Author Name of the author Comment_data Short description of the acknowledgement -Sticky Acknowledgement will be maintained in case of a change of Not-OK status (0/1) +Sticky Acknowledgement will be maintained in case of a change of Not-OK status (0/2) Notify_contacts Notification send to the contacts linked to the object (0/1) @@ -80,7 +80,7 @@ Real time Acknowledgement for : Addhost If you want to associate a host to a real time acknowledgement, use the **ADD** action:: - [root@centreon ~]# ./centreon -u admin -p centreon -o RTACKNOWLEDGEMENT -a add -v "HOST;central;my comments;1;0;1" + [root@centreon ~]# ./centreon -u admin -p centreon -o RTACKNOWLEDGEMENT -a add -v "HOST;central;my comments;2;0;1" The required parameters are the following : @@ -93,7 +93,7 @@ Order Description 3 Short description of the real time acknowledgement -4 Acknowledgement maintained in case of a change of status (Sticky use 0 or 1) +4 Acknowledgement maintained in case of a change of status (Sticky use 0 or 2) 5 Notification send to the contacts linked to the object (Notify use 0 or 1) @@ -107,7 +107,7 @@ Real time Acknowledgement for : addservice If you want to associate a service or service group to a real time acknowledgement, use the **ADD** action:: - [root@centreon ~]# ./centreon -u admin -p centreon -o RTACKNOWLEDGEMENT -a add -v "SVC;central,ping|central,memory;my comments;1;0;1" + [root@centreon ~]# ./centreon -u admin -p centreon -o RTACKNOWLEDGEMENT -a add -v "SVC;central,ping|central,memory;my comments;2;0;1" The required parameters are the following : @@ -120,7 +120,7 @@ Order Description 3 Short description of the real time acknowledgement -4 Acknowledgement maintained in case of a change of status (Sticky use 0 or 1) +4 Acknowledgement maintained in case of a change of status (Sticky use 0 or 2) 5 Notification send to the contacts linked to the object (Notify use 0 or 1) diff --git a/lib/Centreon/Object/Acknowledgement/RtAcknowledgement.php b/lib/Centreon/Object/Acknowledgement/RtAcknowledgement.php index f1c41c4036e..5ce48add96a 100644 --- a/lib/Centreon/Object/Acknowledgement/RtAcknowledgement.php +++ b/lib/Centreon/Object/Acknowledgement/RtAcknowledgement.php @@ -1,7 +1,7 @@