Example #1
0
        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();
        }
Example #2
0
 public void ProxyAs(VcapUser user)
 {
     proxyUser = user;
 }
Example #3
0
 public UserHelper(VcapUser proxyUser, VcapCredentialManager credMgr)
     : base(proxyUser, credMgr)
 {
 }
Example #4
0
 public BaseVmcHelper(VcapUser proxyUser, VcapCredentialManager credMgr)
 {
     this.proxyUser = proxyUser;
     this.credMgr = credMgr;
 }
Example #5
0
 public IEnumerable<Application> GetApplications(VcapUser user)
 {
     return base.GetApplications(user.Email);
 }