(scope memcontract.Scope, tier memcontract.AgentTier)
| 1898 | } |
| 1899 | |
| 1900 | func memoryScopeLabel(scope memcontract.Scope, tier memcontract.AgentTier) string { |
| 1901 | normalized := scope.Normalize() |
| 1902 | if normalized == memcontract.ScopeAgent && tier.Normalize() != "" { |
| 1903 | return string(normalized) + ":" + string(tier.Normalize()) |
| 1904 | } |
| 1905 | return string(normalized) |
| 1906 | } |
| 1907 | |
| 1908 | func formatMemoryOptionalTime(value *time.Time) string { |
| 1909 | if value == nil { |