mirror of
https://github.com/FlipsideCrypto/flip-rpc-client-go.git
synced 2026-02-06 10:56:45 +00:00
Add the ability to retrieve datasets for fields and groupby.
This commit is contained in:
parent
c40d001588
commit
f7feeff01e
8
dynamicquery/dataset.go
Normal file
8
dynamicquery/dataset.go
Normal file
@ -0,0 +1,8 @@
|
||||
package dynamicquery
|
||||
|
||||
// Dataset is segment building block
|
||||
type Dataset struct {
|
||||
ID string `json:"id"`
|
||||
EntityID string `json:"entity_id"`
|
||||
Owner string `json:"owner"`
|
||||
}
|
||||
@ -2,8 +2,9 @@ package dynamicquery
|
||||
|
||||
// Field selects a field to return
|
||||
type Field struct {
|
||||
Field string `json:"field"`
|
||||
Label string `json:"label"`
|
||||
DecimalAdjustment int `json:"decimal_adjustment"`
|
||||
ToNegative bool `json:"to_negative"`
|
||||
Field string `json:"field"`
|
||||
Label string `json:"label"`
|
||||
DecimalAdjustment int `json:"decimal_adjustment"`
|
||||
ToNegative bool `json:"to_negative"`
|
||||
Datasets []Dataset `json:"datasets"`
|
||||
}
|
||||
|
||||
@ -2,7 +2,8 @@ package dynamicquery
|
||||
|
||||
// GroupBy a set of fields
|
||||
type GroupBy struct {
|
||||
Field string `json:"field"`
|
||||
Label string `json:"label"`
|
||||
Timebucket string `json:"timebucket"`
|
||||
Field string `json:"field"`
|
||||
Label string `json:"label"`
|
||||
Timebucket string `json:"timebucket"`
|
||||
Datasets []Dataset `json:"datasets"`
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user