Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
centreon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
centreon
Commits
a0ab25e9
Commit
a0ab25e9
authored
Jan 27, 2017
by
Kev
Committed by
GitHub
Jan 27, 2017
Browse files
Options
Downloads
Plain Diff
Merge pull request #4916 from s-duret/patch-5
Bad object name
parents
446e334a
5822cac2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/en/api/clapi/objects/time_periods.rst
+7
-7
7 additions, 7 deletions
doc/en/api/clapi/objects/time_periods.rst
with
7 additions
and
7 deletions
doc/en/api/clapi/objects/time_periods.rst
+
7
−
7
View file @
a0ab25e9
...
...
@@ -12,7 +12,7 @@ Show
In order to list available time periods, use the **SHOW** action::
[root@centreon ~]# ./centreon -u admin -p centreon -o T
IMEPERIOD
-a show
[root@centreon ~]# ./centreon -u admin -p centreon -o T
P
-a show
id;name;alias;sunday;monday;tuesday;wednesday;thursday;friday,saturday
1;24x7;24_Hours_A_Day,_7_Days_A_Week;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00
2;none;No Time Is A Good Time;;;;;;;
...
...
@@ -25,7 +25,7 @@ Add
In order to add a Time Period, use the **ADD** action::
[root@centreon ~]# ./centreon -u admin -p centreon -o T
IMEPERIOD
-a add -v "Timeperiod_Test;Timeperiod_Test"
[root@centreon ~]# ./centreon -u admin -p centreon -o T
P
-a add -v "Timeperiod_Test;Timeperiod_Test"
Required fields are:
...
...
@@ -43,7 +43,7 @@ Del
If you want to remove a Time Period, use the **DEL** action. The Name is used for identifying the Time Period to delete::
[root@centreon ~]# ./centreon -u admin -p centreon -o T
IMEPERIOD
-a del -v "Timeperiod_Test"
[root@centreon ~]# ./centreon -u admin -p centreon -o T
P
-a del -v "Timeperiod_Test"
Setparam
...
...
@@ -51,7 +51,7 @@ Setparam
If you want to change a specific parameter of a time period, use the **SETPARAM** action. The Name is used for identifying the Time Period to update::
[root@centreon ~]# ./centreon -u admin -p centreon -o T
IMEPERIOD
-a setparam -v "Timeperiod_Test;monday;00:00-24:00"
[root@centreon ~]# ./centreon -u admin -p centreon -o T
P
-a setparam -v "Timeperiod_Test;monday;00:00-24:00"
Arguments are composed of the following columns:
...
...
@@ -103,7 +103,7 @@ Getexception
In order to view the exception list of a time period, use the **GETEXCEPTION** action::
[root@centreon ~]# ./centreon -u admin -p centreon -o T
IMEPERIOD
-a getexception -v "mytimeperiod"
[root@centreon ~]# ./centreon -u admin -p centreon -o T
P
-a getexception -v "mytimeperiod"
days;timerange
january 1;00:00-00:00
december 25;00:00-00:00
...
...
@@ -114,7 +114,7 @@ Setexception
In order to set an exception on a timeperiod, use the **SETEXCEPTION** action::
[root@centreon ~]# ./centreon -u admin -p centreon -o T
IMEPERIOD
-a setexception -v "mytimeperiod;january 1;00:00-24:00"
[root@centreon ~]# ./centreon -u admin -p centreon -o T
P
-a setexception -v "mytimeperiod;january 1;00:00-24:00"
.. note::
If exception does not exist, it will be created, otherwise it will be overwritten.
...
...
@@ -125,7 +125,7 @@ Delexception
In order to delete an exception, use the **DELEXCEPTION** action::
[root@centreon ~]# ./centreon -u admin -p centreon -o T
IMEPERIOD
-a delexception -v "mytimeperiod;january 1"
[root@centreon ~]# ./centreon -u admin -p centreon -o T
P
-a delexception -v "mytimeperiod;january 1"
Arguments are composed of the following columns:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment