capacity report in terms of offers and tasks

This commit is contained in:
nhatle 2022-07-26 10:51:47 -07:00
parent 7ccb38f5e6
commit b184c4c0d2
5 changed files with 912 additions and 1 deletions

View file

@ -147,6 +147,8 @@ func NewClient(options ...ClientOption) (*Client, error) {
return nil, errors.New("incomplete Options -- url, cluster.json, or Zookeeper address required")
}
config.url = url
url, err = validateAuroraAddress(url)
if err != nil {
return nil, errors.Wrap(err, "unable to create realis object, invalid url")
@ -841,3 +843,7 @@ func (c *Client) RollbackJobUpdate(key aurora.JobUpdateKey, message string) erro
}
return nil
}
func (c *Client) GetSchedulerURL() string {
return c.config.url
}