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