Skip to content
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

feat(maas_api): list agent connections #528

Merged
merged 1 commit into from
Feb 11, 2016

Conversation

ksheedlo
Copy link
Contributor

This PR adds a new API call that recently landed in MaaS and
Intelligence is starting to use. It's likely to become our new preferred
way to test if an agent is connected, since the real API has superior
performance when testing many agent connections at once.

This PR adds a new API call that recently landed in MaaS and
Intelligence is starting to use. It's likely to become our new preferred
way to test if an agent is connected, since the real API has superior
performance when testing many agent connections at once.
@codecov-io
Copy link

Current coverage is 99.47%

Merging #528 into master will increase coverage by +0.01% as of 7b1f6bb

@@            master    #528   diff @@
======================================
  Files           74      74       
  Stmts         4507    4530    +23
  Branches       622     628     +6
  Methods          0       0       
======================================
+ Hit           4483    4506    +23
  Partial         14      14       
  Missed          10      10       

Review entire Coverage Diff as of 7b1f6bb

Powered by Codecov. Updated on successful CI builds.

for dc in ('dfw1', 'ord1', 'lon3')]


@attributes([Attribute('id', instance_of=text_type),
Copy link
Contributor

Choose a reason for hiding this comment

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

In the future, we should be moving to attrs, rather than characteristic. There's nothing wrong with Characteristic, and it is still maintained, but attrs has a few subtle advantages and eventually we'd like to be on just one utility library of this type. (You can really think of attrs as characteristic NG, it's a newer library by the same author for the same purpose.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm actually working on a PR upstream to redo this module in terms of attrs, but wanted to get the feature out first.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep. Not a blocking comment.

@glyph
Copy link
Contributor

glyph commented Feb 11, 2016

Whoops. See immediately preceding referenced comment.

ksheedlo added a commit that referenced this pull request Feb 11, 2016
feat(maas_api): list agent connections
@ksheedlo ksheedlo merged commit 8ee5089 into rackerlabs:master Feb 11, 2016
@ksheedlo ksheedlo deleted the maas-views-connections branch February 11, 2016 23:07
@ksheedlo
Copy link
Contributor Author

Filed #531 .

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

Successfully merging this pull request may close these issues.

3 participants