|
| 1 | +kind: ConcernCardAdapter |
| 2 | +id: org.concern-card-adapter.main-website |
| 3 | +title: Website |
| 4 | +spec: |
| 5 | + type: Block |
| 6 | + title: Website Status |
| 7 | + elements: |
| 8 | + - type: Section |
| 9 | + width: 1 |
| 10 | + elements: |
| 11 | + - id::card-adapter.website.header |
| 12 | + - id::card-adapter.website.workload-dots |
| 13 | + - type: Section |
| 14 | + width: 1 |
| 15 | + elements: |
| 16 | + - id::card-adapter.website.memory |
| 17 | + - id::card-adapter.website.cpu |
| 18 | + - id::card-adapter.website.alerts |
| 19 | + |
| 20 | +--- |
| 21 | + |
| 22 | +kind: Provider |
| 23 | +id: card-adapter.website.header |
| 24 | +source: |
| 25 | + type: ThreePartHeader |
| 26 | + style: |
| 27 | + mb: 13px |
| 28 | + title: |
| 29 | + type: Line |
| 30 | + elements: |
| 31 | + - type: Text |
| 32 | + text: Ice-Cream Store |
| 33 | + style: [bold, calm] |
| 34 | + - type: ClearTag |
| 35 | + text: get::props concern=>status |
| 36 | + subtitle: |
| 37 | + type: Line |
| 38 | + elements: |
| 39 | + - type: Text |
| 40 | + text: "localhost:${get::props concern=>port_forward_spec.pod_port}" |
| 41 | + style: [hov_underline, hov_point] |
| 42 | + action: |
| 43 | + type: port_forward |
| 44 | + uri: |
| 45 | + kind: MergeSupplier |
| 46 | + source: |
| 47 | + - get::props concern=>port_forward_spec |
| 48 | + - logo_url: get::props concern=>logo |
| 49 | + - type: Icon |
| 50 | + name: open_in_new |
| 51 | + style: |
| 52 | + emotion: warning2 |
| 53 | + graphic: |
| 54 | + type: Image |
| 55 | + uri: get::props concern=>logo |
| 56 | + |
| 57 | + |
| 58 | +--- |
| 59 | + |
| 60 | +kind: Provider |
| 61 | +id: card-adapter.website.workload-dots |
| 62 | +source: |
| 63 | + type: Line |
| 64 | + elements: |
| 65 | + - Workloads |
| 66 | + - type: StatusDots |
| 67 | + data: get::props concern=>pod_statuses |
| 68 | + shape: square |
| 69 | + spacing: 1.5px |
| 70 | + |
| 71 | +--- |
| 72 | + |
| 73 | +kind: Provider |
| 74 | +id: card-adapter.website.memory |
| 75 | +source: |
| 76 | + type: SeriesSummary |
| 77 | + first: graph |
| 78 | + style: |
| 79 | + mt: -10px |
| 80 | + data: |
| 81 | + kind: SeriesSummarySupplier |
| 82 | + humanizer: kind::BytesHumanizer |
| 83 | + source: |
| 84 | + kind: PromMatrixToSeriesSupplier |
| 85 | + source: get::props concern=>mem_dump |
| 86 | + |
| 87 | +--- |
| 88 | + |
| 89 | +kind: Provider |
| 90 | +id: card-adapter.website.cpu |
| 91 | +source: |
| 92 | + type: SeriesSummary |
| 93 | + first: graph |
| 94 | + style: |
| 95 | + width: 100% |
| 96 | + data: |
| 97 | + kind: SeriesSummarySupplier |
| 98 | + humanizer: kind::CoresHumanizer |
| 99 | + source: |
| 100 | + kind: PromMatrixToSeriesSupplier |
| 101 | + source: get::props concern=>cpu_dump |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | +--- |
| 106 | + |
| 107 | +kind: Provider |
| 108 | +id: card-adapter.website.alerts |
| 109 | +source: |
| 110 | + type: SeriesSummary |
| 111 | + first: graph |
| 112 | + style: |
| 113 | + width: 100% |
| 114 | + data: |
| 115 | + kind: SeriesSummarySupplier |
| 116 | + humanizer: kind::CoresHumanizer |
| 117 | + source: |
| 118 | + kind: PromMatrixToSeriesSupplier |
| 119 | + source: get::props concern=>cpu_dump |
0 commit comments