summaryrefslogtreecommitdiff
path: root/rrdformat/marshal_xml.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2020-02-01 09:50:23 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2020-02-01 09:50:23 -0500
commita14b9983db45f7b20a654d85ca580bc729e20874 (patch)
treee92b7f76d879965c25f01b34b9b23c5a8fd5c872 /rrdformat/marshal_xml.go
parent65a401ccf7dd37474868e122393db8bee7ce3c4d (diff)
wip xml
Diffstat (limited to 'rrdformat/marshal_xml.go')
-rw-r--r--rrdformat/marshal_xml.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/rrdformat/marshal_xml.go b/rrdformat/marshal_xml.go
index d81c6cc..fb6c9e1 100644
--- a/rrdformat/marshal_xml.go
+++ b/rrdformat/marshal_xml.go
@@ -50,6 +50,13 @@ func (rrd RRDv0005) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
}
}
+ // 4. Round Robin Archives
+ for _, rra := range rrd.RRADefs {
+ if err := e.EncodeElement(rra, xmlStart("rra")); err != nil {
+ return err
+ }
+ }
+
if err := e.EncodeToken(start.End()); err != nil {
return err
}