-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adds method to read test metrics #22
Conversation
client.go
Outdated
@@ -101,14 +102,14 @@ func NewClientAPI(apiURL string, accessToken string) ClientAPI { | |||
|
|||
func (client *Client) createResource( | |||
resource interface{}, resourceType string, resourceName string, endpoint string) (*response, error) { | |||
DebugF(1, "creating %s %s", resourceType, resourceName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to call DebugF
test.go
Outdated
environmentUUID = "all" | ||
} | ||
|
||
log.Printf("[DEBUG] reading %s %s", "metrics", test.ID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DebugF
region = "all" | ||
} | ||
if timeframe == "" { | ||
timeframe = "month" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sam-io out of interest why do we default to month, api default is day?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably because that is the value that I needed for the project I was working on, the default should be day though
No description provided.