Skip to content

Commit 6c335ad

Browse files
authored
Merge pull request #2641 from Dorthu/feature/longview-subscription
Documents Longview Subscription management
2 parents 15c7762 + ce0ea1d commit 6c335ad

File tree

4 files changed

+79
-1
lines changed

4 files changed

+79
-1
lines changed

docs/src/data/endpoints/account.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ endpoints:
3939
"network_helper": true,
4040
"phone": "555-555-1212",
4141
"state": "PA",
42-
"zip": 19102
42+
"zip": 19102,
43+
"longview_subscription": "longview-10"
4344
}
4445
}' \
4546
https://$api_root/$version/account/settings

docs/src/data/endpoints/longview.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ description: >
44
Longview endpoints provide a means of managing Longview client objects on your account.
55
endpoints:
66
/longview/clients:
7+
group: Clients
78
authenticated: true
89
description: >
910
Manage the collection of Longview client objects your account may access.
@@ -37,7 +38,10 @@ endpoints:
3738
"label": "newlabel",
3839
}' \
3940
https://$api_root/$version/longview/clients
41+
python: |
42+
# coming soon
4043
/longview/clients/$id:
44+
group: Clients
4145
type: resource
4246
authenticated: true
4347
description: >
@@ -64,6 +68,8 @@ endpoints:
6468
"label": "awesome_new_label",
6569
}' \
6670
https://$api_root/$version/longview/clients/$longviewclient_id
71+
python: |
72+
# coming soon
6773
DELETE:
6874
oauth: longviewclients:delete
6975
dangerous: true
@@ -74,3 +80,39 @@ endpoints:
7480
curl -H "Authorization: Bearer $TOKEN" \
7581
-X DELETE \
7682
https://$api_root/$version/longview/clients/$longviewclient_id
83+
python: |
84+
# coming soon
85+
/longview/subscriptions:
86+
group: Subscription
87+
type: collection
88+
authenticated: false
89+
description: >
90+
View available longview subscriptions.
91+
methods:
92+
GET:
93+
response: LongviewSubscription
94+
description: >
95+
View a list of available Longview subscription levels.
96+
examples:
97+
curl: |
98+
curl -H "Authorization: Bearer $TOKEN" \
99+
https://$api_root/$version/longview/subscriptions
100+
python: |
101+
# coming soon
102+
/longview/subscriptions/:id:
103+
group: Subscription
104+
type: resource
105+
authenticated: false
106+
description: >
107+
View information on a single Longview subscription level.
108+
methods:
109+
GET:
110+
response: LongviewSubscription
111+
description: >
112+
View information on a single Longview subscription level.
113+
examples:
114+
curl: |
115+
curl -H "Authorization: Bearer $TOKEN" \
116+
https://$api_root/$version/longview/subscriptions/longview-10
117+
python: |
118+
# coming soon

docs/src/data/objects/account.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@ schema:
4343
balance:
4444
value: 0.00
4545
type: float
46+
longview_subscription:
47+
value: null
48+
type: string
49+
description: The Longview Pro tier you are currently subscribed to.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: LongviewSubscription
2+
description: >
3+
A Longview Subscription represents one level of consuming the Longview service.
4+
Longview's free tier offers limited clients, data retention, and data resolution,
5+
and subscribing to a higher tier allows more information to be gathered and
6+
stored perpetually.
7+
schema:
8+
id:
9+
type: String
10+
value: longview-10
11+
clients:
12+
type: Integer
13+
value: 10
14+
description: The number of Longview Clients included in this subscription.
15+
label:
16+
type: String
17+
value: Longview Pro 10 pack
18+
description: A description of this subscription tier.
19+
price:
20+
type: Object
21+
description: Cost (in US dollars) for this subscription.
22+
hourly:
23+
type: Float
24+
value: 0.06
25+
description: Cost (in cents) per hour.
26+
filterable: true
27+
monthly:
28+
type: Integer
29+
value: 40
30+
description: Cost (in US dollars) per month.
31+
filterable: true

0 commit comments

Comments
 (0)