public VM_metrics(string uuid, long memory_actual, long VCPUs_number, Dictionary <long, double> VCPUs_utilisation, Dictionary <long, long> VCPUs_CPU, Dictionary <string, string> VCPUs_params, Dictionary <long, string[]> VCPUs_flags, string[] state, DateTime start_time, DateTime install_time, DateTime last_updated, Dictionary <string, string> other_config, bool hvm, bool nested_virt, bool nomigrate, domain_type current_domain_type) { this.uuid = uuid; this.memory_actual = memory_actual; this.VCPUs_number = VCPUs_number; this.VCPUs_utilisation = VCPUs_utilisation; this.VCPUs_CPU = VCPUs_CPU; this.VCPUs_params = VCPUs_params; this.VCPUs_flags = VCPUs_flags; this.state = state; this.start_time = start_time; this.install_time = install_time; this.last_updated = last_updated; this.other_config = other_config; this.hvm = hvm; this.nested_virt = nested_virt; this.nomigrate = nomigrate; this.current_domain_type = current_domain_type; }
private void ProcessRecordCurrentDomainType(string vm_metrics) { RunApiCall(() => { domain_type obj = XenAPI.VM_metrics.get_current_domain_type(session, vm_metrics); WriteObject(obj, true); }); }
public static string StringOf(this domain_type x) { switch (x) { case domain_type.hvm: return("hvm"); case domain_type.pv: return("pv"); case domain_type.pv_in_pvh: return("pv_in_pvh"); case domain_type.unspecified: return("unspecified"); default: return("unknown"); } }
public static string ToString(domain_type x) { return(x.StringOf()); }