Skip to content

Commit e9ab37c

Browse files
authored
Merge pull request #2634 from yoshizzle/longview
Longview
2 parents 4a69f5d + e293928 commit e9ab37c

File tree

3 files changed

+87
-0
lines changed

3 files changed

+87
-0
lines changed

docs/prebuild.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,12 @@ const endpointMap = {
317317
routePath: `${ROUTE_BASE_PATH}/domains`,
318318
groups: {},
319319
},
320+
longview: {
321+
name: 'Longview',
322+
path: '/longview',
323+
routePath: `${ROUTE_BASE_PATH}/longview`,
324+
groups: {},
325+
},
320326
nodebalancers: {
321327
name: 'NodeBalancers',
322328
path: '/nodebalancers',

docs/src/data/endpoints/longview.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# vim: set et ts=2 sw=2 tw=80 :
2+
name: Longview
3+
description: >
4+
Longview endpoints provide a means of managing Longview client objects on your account.
5+
endpoints:
6+
/longview/clients:
7+
authenticated: true
8+
description: >
9+
Manage the collection of Longview client objects your account may access.
10+
methods:
11+
GET:
12+
response: longviewclient
13+
paginationKey: longviewclients
14+
oauth: longviewclients:view
15+
description: >
16+
Returns a list of Longview clients.
17+
examples:
18+
curl: |
19+
curl -H "Authorization: Bearer $TOKEN" \
20+
https://$api_root/$version/longview/clients
21+
/longview/clients/$id:
22+
type: resource
23+
authenticated: true
24+
description: >
25+
Manage a particular Longview client your account may access.
26+
methods:
27+
GET:
28+
response: longviewclient
29+
oauth: longviewclients:view
30+
description: >
31+
Returns information about this Longview client.
32+
examples:
33+
curl: |
34+
curl -H "Authorization: Bearer $TOKEN" \
35+
https://$api_root/$version/longview/clients/$longviewclient_id
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# vim: set et ts=2 sw=2 tw=80 :
2+
name: LongviewClient
3+
description: >
4+
Longview objects describe a single Longview client on your account.
5+
schema:
6+
id:
7+
type: Integer
8+
value: 123456
9+
description: An integer.
10+
label:
11+
editable: true
12+
type: String
13+
value: 'longview12345'
14+
description: The Longview client's display label. Must be 3-32 ASCII characters limited to letters, numbers, underscores, and dashes, starting and ending with a letter, and without two dashes or underscores in a row.
15+
api_key:
16+
editable: false
17+
type: String
18+
value: 'D09E9730-CF01-E0AB-7763FBAFD4000000'
19+
description: The api key required to install the Longview Agent on a Linode.
20+
apps:
21+
type: Object
22+
description: >
23+
A collection of applications the Longview client is configured to monitor. Currently reports on nginx, apache, and mysql
24+
nginx:
25+
type: Boolean
26+
value: true
27+
description: Whether or not nginx is monitored by the Longview client.
28+
apache:
29+
type: Boolean
30+
value: false
31+
description: Whether or not apache is monitored by the Longview client.
32+
mysql:
33+
type: Boolean
34+
value: true
35+
description: Whether or not mysql is monitored by the Longview client.
36+
created:
37+
editable: false
38+
type: String
39+
value: '2017-10-01T14:00:00'
40+
description: The date the Longview client was created.
41+
updated:
42+
editable: false
43+
type: String
44+
value: '2017-10-01T14:02:33'
45+
description: The date the Longview client was updated.
46+

0 commit comments

Comments
 (0)