MCPcopy Create free account
hub / github.com/cortexproject/cortex / Size

Method Size

pkg/ruler/ruler.pb.go:1709–1730  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1707}
1708
1709func (m *GroupStateDesc) Size() (n int) {
1710 if m == nil {
1711 return 0
1712 }
1713 var l int
1714 _ = l
1715 if m.Group != nil {
1716 l = m.Group.Size()
1717 n += 1 + l + sovRuler(uint64(l))
1718 }
1719 if len(m.ActiveRules) > 0 {
1720 for _, e := range m.ActiveRules {
1721 l = e.Size()
1722 n += 1 + l + sovRuler(uint64(l))
1723 }
1724 }
1725 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.EvaluationTimestamp)
1726 n += 1 + l + sovRuler(uint64(l))
1727 l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.EvaluationDuration)
1728 n += 1 + l + sovRuler(uint64(l))
1729 return n
1730}
1731
1732func (m *RuleStateDesc) Size() (n int) {
1733 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 2

sovRulerFunction · 0.85
SizeMethod · 0.65

Tested by

no test coverage detected