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

CF API v2 Usage #3053

Merged
merged 2 commits into from
Sep 28, 2018
Merged

CF API v2 Usage #3053

merged 2 commits into from
Sep 28, 2018

Conversation

richard-cox
Copy link
Contributor

@cfdreddbot
Copy link

Hey richard-cox!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.

Copy link
Contributor

@nwmac nwmac left a comment

Choose a reason for hiding this comment

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

I'd replace references to "console" with Stratos

@codecov
Copy link

codecov bot commented Sep 24, 2018

Codecov Report

Merging #3053 into v2-master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##           v2-master    #3053      +/-   ##
=============================================
- Coverage      71.02%   71.01%   -0.02%     
=============================================
  Files            607      607              
  Lines          26250    26258       +8     
  Branches        5940     5940              
=============================================
+ Hits           18645    18648       +3     
- Misses          7605     7610       +5


### Current v2 Issues

- Most list fetch all entities up front to provide a reasonable level of sorting and filtering
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be "Most lists" - i.e. plural

- Filtering sometimes contains org, space and name, but not all
- Calculated numerical summary stats (number of applications in an organisation, cumulative total of memory from running apps in an
organisation, number of users etc) requires fetching all entities of a certain type. This can be quite a costly set of requests.
- Determining an informative application state requires an additional request to the `application/<guid>/stats` endpoint.
Copy link
Contributor

Choose a reason for hiding this comment

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

For each of these, I suggest we make a suggestion for what would help.

e.g. with this one-

It would massively improve Stratos performance if the APIs to list applications and retrieve a specific application could return the app stats for the application(s). If this is not possibly, an app stats call that can return stats for all running applications would help.

Copy link
Contributor

@nwmac nwmac left a comment

Choose a reason for hiding this comment

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

LGTM

@nwmac nwmac merged commit 04bfafc into v2-master Sep 28, 2018
@nwmac nwmac deleted the api-docs branch September 28, 2018 12:32
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.

Create basic analysis of v2 cf api feature usage
3 participants