Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
Noah
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Noah
Commits
0bf8f2da
Commit
0bf8f2da
authored
Jan 17, 2011
by
John E. Vincent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sometimes markdown makes me cry
parent
5747589c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
README.md
README.md
+15
-11
No files found.
README.md
View file @
0bf8f2da
...
@@ -94,10 +94,11 @@ _curl http://localhost:9292/a/_
...
@@ -94,10 +94,11 @@ _curl http://localhost:9292/a/_
Most other combinations of endpoints work as well:
Most other combinations of endpoints work as well:
*
`http://localhost:9292/h/<hostname>/s/`
- All service for
<hostname>
*
`http://localhost:9292/h/<hostname>/s/`
- All service for
`<hostname>`
*
`http://localhost:9292/h/<hostname>/s/<servicename>`
-
<servicename>
on
<hostname>
*
`http://localhost:9292/h/<hostname>/s/<servicename>`
-
`<servicename>`
on
`<hostname>`
*
`http://localhost:9292/a/<appname>/<configname>`
- Configuration for
<appname>
*
`http://localhost:9292/a/<appname>/<configname>`
- Configuration for
`<appname>`
*
`http://localhost:9292/c/<appname>/<element>`
- Specific configuration element for
<appname>
*
`http://localhost:9292/c/<appname>/<element>`
- Specific configuration element for
`<appname>`
{
{
"id":"1",
"id":"1",
"name":"db",
"name":"db",
...
@@ -106,6 +107,7 @@ Most other combinations of endpoints work as well:
...
@@ -106,6 +107,7 @@ Most other combinations of endpoints work as well:
"update_at":"2011-01-17 14:12:43 UTC",
"update_at":"2011-01-17 14:12:43 UTC",
"application":"noah"
"application":"noah"
}
}
# Adding new entries
# Adding new entries
I've not yet flushed out the put support for each route yet. I've been doing additions via
`irb`
for now:
I've not yet flushed out the put support for each route yet. I've been doing additions via
`irb`
for now:
...
@@ -146,10 +148,12 @@ I'm still noodling out some things around Hosts and Services. There's a field ca
...
@@ -146,10 +148,12 @@ I'm still noodling out some things around Hosts and Services. There's a field ca
# Constraints
# Constraints
You can view all the constraints inside
`models.rb`
but here they are for now:
You can view all the constraints inside
`models.rb`
but here they are for now:
-
A new host must have at least
`name`
and
`state`
set.
-
A new service must have at least
`name`
and
`state`
set.
*
A new host must have at least
`name`
and
`state`
set.
-
Each Host
`name`
must be unique
*
A new service must have at least
`name`
and
`state`
set.
-
Each Service
`name`
per Host must be unique
*
Each Host
`name`
must be unique
-
Each Application
`name`
must exist and be unique
*
Each Service
`name`
per Host must be unique
-
Each Configuration name per Application must be unique.
*
Each Application
`name`
must exist and be unique
-
Each Configuration must have
`name`
,
`format`
and
`body`
*
Each Configuration name per Application must be unique.
*
Each Configuration must have
`name`
,
`format`
and
`body`
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment