code: func (instance *ApplicationInstanceStatus) UnmarshalJSON(data []byte) error {
  	var ccInstance struct {
  		State            string `json:"state"`
  		IsolationSegment string `json:"isolation_segment"`
  		Stats            struct {
  			Usage struct {
  				Disk   int64   `json:"disk"`
  				Memory int64   `json:"mem"`
  				CPU    float64 `json:"cpu"`
  			} `json:"usage"`
  			MemoryQuota int64 `json:"mem_quota"`
  			DiskQuota   int64 `json:"disk_quota"`
  			Uptime      int64 `json:"uptime"`
  		} `json:"stats"`
  	}
  	err := cloudcontroller.DecodeJSON(data, &ccInstance)
  	if err != nil {
  		return err
  	}
  
  	instance.CPU = ccInstance.Stats.Usage.CPU
  	instance.Disk = ccInstance.Stats.Usage.Disk
  	instance.DiskQuota = ccInstance.Stats.DiskQuota
  	instance.IsolationSegment = ccInstance.IsolationSegment
  	instance.Memory = ccInstance.Stats.Usage.Memory
  	instance.MemoryQuota = ccInstance.Stats.MemoryQuota
  	instance.State = constant.ApplicationInstanceState(ccInstance.State)
  	instance.Uptime = ccInstance.Stats.Uptime
  
  	return nil
  }
docs: // UnmarshalJSON helps unmarshal a Cloud Controller application instance
  // response.