Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 17d14a5

Browse files
committed
Add marker and query fields
1 parent 4d9f5d7 commit 17d14a5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

openstack/telemetry/v2/meters/requests.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ type ListOptsBuilder interface {
1414
// the API. Filtering is achieved by passing in struct field values that map to
1515
// the server attributes you want to see returned.
1616
type ListOpts struct {
17+
QueryField string `q:"q.field"`
18+
QueryOp string `q:"q.op"`
19+
QueryValue string `q:"q.value"`
20+
21+
// ID of the last-seen item from the previous response
22+
Marker string `q:"marker"`
23+
24+
// Optional, maximum number of results to return
25+
Limit int `q:"limit"`
1726
}
1827

1928
// ToMeterListQuery formats a ListOpts into a query string.
@@ -57,6 +66,9 @@ type ShowOpts struct {
5766
QueryOp string `q:"q.op"`
5867
QueryValue string `q:"q.value"`
5968

69+
// ID of the last-seen item from the previous response
70+
Marker string `q:"marker"`
71+
6072
// Optional, maximum number of results to return
6173
Limit int `q:"limit"`
6274
}

0 commit comments

Comments
 (0)