Skip to content

Conversation

deliahu
Copy link
Member

@deliahu deliahu commented Feb 14, 2020

closes #573


checklist:

  • run make test and make lint
  • test manually (i.e. build/push all images, restart operator, and re-deploy APIs)
  • update examples
  • update docs and add any new files to summary.md (view in gitbook after merging)
@deliahu deliahu requested a review from vishalbollu February 14, 2020 20:52
}

if len(output.MetricDataResults[0].Timestamps) == 0 {
return nil, nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe return error here instead of nil, like metrics are not available yet?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is the message that is shown when nil is returned, is that ok? Or did you intend to explicitly return an error?

}

if timestampCounter == -1 {
return nil, nil // no metrics were available in the last 2 tick intervals
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe return err here indicating metrics were not found?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants