github.com/manicqin/nomad@v0.9.5/ui/app/components/freestyle/sg-json-viewer.js (about) 1 import Component from '@ember/component'; 2 3 export default Component.extend({ 4 jsonSmall: { 5 foo: 'bar', 6 number: 123456789, 7 products: ['Consul', 'Nomad', 'Packer', 'Terraform', 'Vagrant', 'Vault'], 8 currentTime: new Date().toISOString(), 9 nested: { 10 obj: 'ject', 11 }, 12 nonexistent: null, 13 huh: undefined, 14 isTrue: false, 15 }, 16 17 jsonLarge: { 18 Stop: false, 19 Region: 'global', 20 Namespace: 'default', 21 ID: 'syslog', 22 ParentID: '', 23 Name: 'syslog', 24 Type: 'system', 25 Priority: 50, 26 AllAtOnce: false, 27 Datacenters: ['dc1', 'dc2'], 28 Constraints: null, 29 TaskGroups: [ 30 { 31 Name: 'syslog', 32 Count: 1, 33 Update: { 34 Stagger: 10000000000, 35 MaxParallel: 1, 36 HealthCheck: 'checks', 37 MinHealthyTime: 10000000000, 38 HealthyDeadline: 300000000000, 39 ProgressDeadline: 600000000000, 40 AutoRevert: false, 41 Canary: 0, 42 }, 43 Migrate: null, 44 Constraints: [ 45 { 46 LTarget: '', 47 RTarget: '', 48 Operand: 'distinct_hosts', 49 }, 50 ], 51 RestartPolicy: { 52 Attempts: 10, 53 Interval: 300000000000, 54 Delay: 25000000000, 55 Mode: 'delay', 56 }, 57 Tasks: [ 58 { 59 Name: 'syslog', 60 Driver: 'docker', 61 User: '', 62 Config: { 63 port_map: [ 64 { 65 tcp: 601.0, 66 udp: 514.0, 67 }, 68 ], 69 image: 'balabit/syslog-ng:latest', 70 }, 71 Env: null, 72 Services: null, 73 Vault: null, 74 Templates: null, 75 Constraints: null, 76 Resources: { 77 CPU: 500, 78 MemoryMB: 256, 79 DiskMB: 0, 80 IOPS: 0, 81 Networks: [ 82 { 83 Device: '', 84 CIDR: '', 85 IP: '', 86 MBits: 10, 87 ReservedPorts: [ 88 { 89 Label: 'udp', 90 Value: 514, 91 }, 92 { 93 Label: 'tcp', 94 Value: 601, 95 }, 96 ], 97 DynamicPorts: null, 98 }, 99 ], 100 }, 101 DispatchPayload: null, 102 Meta: null, 103 KillTimeout: 5000000000, 104 LogConfig: { 105 MaxFiles: 10, 106 MaxFileSizeMB: 10, 107 }, 108 Artifacts: null, 109 Leader: false, 110 ShutdownDelay: 0, 111 KillSignal: '', 112 }, 113 ], 114 EphemeralDisk: { 115 Sticky: false, 116 SizeMB: 300, 117 Migrate: false, 118 }, 119 Meta: null, 120 ReschedulePolicy: null, 121 }, 122 ], 123 Update: { 124 Stagger: 10000000000, 125 MaxParallel: 1, 126 HealthCheck: '', 127 MinHealthyTime: 0, 128 HealthyDeadline: 0, 129 ProgressDeadline: 0, 130 AutoRevert: false, 131 Canary: 0, 132 }, 133 Periodic: null, 134 ParameterizedJob: null, 135 Dispatched: false, 136 Payload: null, 137 Meta: null, 138 VaultToken: '', 139 Status: 'running', 140 StatusDescription: '', 141 Stable: false, 142 Version: 0, 143 SubmitTime: 1530052201331477665, 144 CreateIndex: 27, 145 ModifyIndex: 27, 146 JobModifyIndex: 27, 147 }, 148 });