github.com/sleungcy-sap/cli@v7.1.0+incompatible/plugin/models/get_app.go (about)

     1  package plugin_models
     2  
     3  import "time"
     4  
     5  type GetAppModel struct {
     6  	Guid                 string
     7  	Name                 string
     8  	BuildpackUrl         string
     9  	Command              string
    10  	DetectedStartCommand string
    11  	DiskQuota            int64 // in Megabytes
    12  	EnvironmentVars      map[string]interface{}
    13  	InstanceCount        int
    14  	Memory               int64 // in Megabytes
    15  	RunningInstances     int
    16  	HealthCheckTimeout   int
    17  	State                string
    18  	SpaceGuid            string
    19  	PackageUpdatedAt     *time.Time
    20  	PackageState         string
    21  	StagingFailedReason  string
    22  	Stack                *GetApp_Stack
    23  	Instances            []GetApp_AppInstanceFields
    24  	Routes               []GetApp_RouteSummary
    25  	Services             []GetApp_ServiceSummary
    26  }
    27  
    28  type GetApp_AppInstanceFields struct {
    29  	State     string
    30  	Details   string
    31  	Since     time.Time
    32  	CpuUsage  float64 // percentage
    33  	DiskQuota int64   // in bytes
    34  	DiskUsage int64
    35  	MemQuota  int64
    36  	MemUsage  int64
    37  }
    38  
    39  type GetApp_Stack struct {
    40  	Guid        string
    41  	Name        string
    42  	Description string
    43  }
    44  
    45  type GetApp_RouteSummary struct {
    46  	Guid   string
    47  	Host   string
    48  	Domain GetApp_DomainFields
    49  	Path   string
    50  	Port   int
    51  }
    52  
    53  type GetApp_DomainFields struct {
    54  	Guid string
    55  	Name string
    56  }
    57  
    58  type GetApp_ServiceSummary struct {
    59  	Guid string
    60  	Name string
    61  }