public IEnumerable<StatInfo> GetStats(VcapUser user, Application app) { VcapRequest r = base.BuildVcapRequest(Constants.APPS_PATH, app.Name, "stats"); IRestResponse response = r.Execute(); var tmp = JsonConvert.DeserializeObject<SortedDictionary<int, StatInfo>>(response.Content); var rv = new List<StatInfo>(); foreach (KeyValuePair<int, StatInfo> kvp in tmp) { StatInfo si = kvp.Value; si.ID = kvp.Key; rv.Add(si); } return rv.ToArrayOrNull(); }
public void ProxyAs(VcapUser user) { proxyUser = user; }
public UserHelper(VcapUser proxyUser, VcapCredentialManager credMgr) : base(proxyUser, credMgr) { }
public BaseVmcHelper(VcapUser proxyUser, VcapCredentialManager credMgr) { this.proxyUser = proxyUser; this.credMgr = credMgr; }
public IEnumerable<Application> GetApplications(VcapUser user) { return base.GetApplications(user.Email); }