You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2692 lines
87 KiB

8 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta name="theme-color" content="#375EAB">
  7. <title>model - The Go Programming Language</title>
  8. <link type="text/css" rel="stylesheet" href="../../../../../lib/godoc/style.css">
  9. <link rel="stylesheet" href="../../../../../lib/godoc/jquery.treeview.css">
  10. <script type="text/javascript">window.initFuncs = [];</script>
  11. </head>
  12. <body>
  13. <div id='lowframe' style="position: fixed; bottom: 0; left: 0; height: 0; width: 100%; border-top: thin solid grey; background-color: white; overflow: auto;">
  14. ...
  15. </div><!-- #lowframe -->
  16. <div id="topbar" class="wide"><div class="container">
  17. <div class="top-heading" id="heading-wide"><a href="http://localhost:6060/">The Go Programming Language</a></div>
  18. <div class="top-heading" id="heading-narrow"><a href="http://localhost:6060/">Go</a></div>
  19. <a href="index.html#" id="menu-button"><span id="menu-button-arrow">&#9661;</span></a>
  20. <form method="GET" action="http://localhost:6060/search">
  21. <div id="menu">
  22. <a href="http://localhost:6060/doc/">Documents</a>
  23. <a href="http://localhost:6060/pkg/">Packages</a>
  24. <a href="http://localhost:6060/project/">The Project</a>
  25. <a href="http://localhost:6060/help/">Help</a>
  26. <a href="http://localhost:6060/blog/">Blog</a>
  27. <input type="text" id="search" name="q" class="inactive" value="Search" placeholder="Search">
  28. </div>
  29. </form>
  30. </div></div>
  31. <div id="page" class="wide">
  32. <div class="container">
  33. <h1>Package model</h1>
  34. <div id="nav"></div>
  35. <!--
  36. Copyright 2009 The Go Authors. All rights reserved.
  37. Use of this source code is governed by a BSD-style
  38. license that can be found in the LICENSE file.
  39. -->
  40. <!--
  41. Note: Static (i.e., not template-generated) href and id
  42. attributes start with "pkg-" to make it impossible for
  43. them to conflict with generated attributes (some of which
  44. correspond to Go identifiers).
  45. -->
  46. <script type='text/javascript'>
  47. document.ANALYSIS_DATA = null;
  48. document.CALLGRAPH = null;
  49. </script>
  50. <div id="short-nav">
  51. <dl>
  52. <dd><code>import "github.com/prometheus/common/model"</code></dd>
  53. </dl>
  54. <dl>
  55. <dd><a href="index.html#pkg-overview" class="overviewLink">Overview</a></dd>
  56. <dd><a href="index.html#pkg-index" class="indexLink">Index</a></dd>
  57. </dl>
  58. </div>
  59. <!-- The package's Name is printed as title by the top-level template -->
  60. <div id="pkg-overview" class="toggleVisible">
  61. <div class="collapsed">
  62. <h2 class="toggleButton" title="Click to show Overview section">Overview ▹</h2>
  63. </div>
  64. <div class="expanded">
  65. <h2 class="toggleButton" title="Click to hide Overview section">Overview ▾</h2>
  66. <p>
  67. Package model contains common data structures that are shared across
  68. Prometheus components and libraries.
  69. </p>
  70. </div>
  71. </div>
  72. <div id="pkg-index" class="toggleVisible">
  73. <div class="collapsed">
  74. <h2 class="toggleButton" title="Click to show Index section">Index ▹</h2>
  75. </div>
  76. <div class="expanded">
  77. <h2 class="toggleButton" title="Click to hide Index section">Index ▾</h2>
  78. <!-- Table of contents for API; must be named manual-nav to turn off auto nav. -->
  79. <div id="manual-nav">
  80. <dl>
  81. <dd><a href="index.html#pkg-constants">Constants</a></dd>
  82. <dd><a href="index.html#pkg-variables">Variables</a></dd>
  83. <dd><a href="index.html#IsValidMetricName">func IsValidMetricName(n LabelValue) bool</a></dd>
  84. <dd><a href="index.html#LabelsToSignature">func LabelsToSignature(labels map[string]string) uint64</a></dd>
  85. <dd><a href="index.html#SignatureForLabels">func SignatureForLabels(m Metric, labels ...LabelName) uint64</a></dd>
  86. <dd><a href="index.html#SignatureWithoutLabels">func SignatureWithoutLabels(m Metric, labels map[LabelName]struct{}) uint64</a></dd>
  87. <dd><a href="index.html#Alert">type Alert</a></dd>
  88. <dd>&nbsp; &nbsp; <a href="index.html#Alert.Fingerprint">func (a *Alert) Fingerprint() Fingerprint</a></dd>
  89. <dd>&nbsp; &nbsp; <a href="index.html#Alert.Name">func (a *Alert) Name() string</a></dd>
  90. <dd>&nbsp; &nbsp; <a href="index.html#Alert.Resolved">func (a *Alert) Resolved() bool</a></dd>
  91. <dd>&nbsp; &nbsp; <a href="index.html#Alert.ResolvedAt">func (a *Alert) ResolvedAt(ts time.Time) bool</a></dd>
  92. <dd>&nbsp; &nbsp; <a href="index.html#Alert.Status">func (a *Alert) Status() AlertStatus</a></dd>
  93. <dd>&nbsp; &nbsp; <a href="index.html#Alert.String">func (a *Alert) String() string</a></dd>
  94. <dd>&nbsp; &nbsp; <a href="index.html#Alert.Validate">func (a *Alert) Validate() error</a></dd>
  95. <dd><a href="index.html#AlertStatus">type AlertStatus</a></dd>
  96. <dd><a href="index.html#Alerts">type Alerts</a></dd>
  97. <dd>&nbsp; &nbsp; <a href="index.html#Alerts.HasFiring">func (as Alerts) HasFiring() bool</a></dd>
  98. <dd>&nbsp; &nbsp; <a href="index.html#Alerts.Len">func (as Alerts) Len() int</a></dd>
  99. <dd>&nbsp; &nbsp; <a href="index.html#Alerts.Less">func (as Alerts) Less(i, j int) bool</a></dd>
  100. <dd>&nbsp; &nbsp; <a href="index.html#Alerts.Status">func (as Alerts) Status() AlertStatus</a></dd>
  101. <dd>&nbsp; &nbsp; <a href="index.html#Alerts.Swap">func (as Alerts) Swap(i, j int)</a></dd>
  102. <dd><a href="index.html#Duration">type Duration</a></dd>
  103. <dd>&nbsp; &nbsp; <a href="index.html#ParseDuration">func ParseDuration(durationStr string) (Duration, error)</a></dd>
  104. <dd>&nbsp; &nbsp; <a href="index.html#Duration.MarshalYAML">func (d Duration) MarshalYAML() (interface{}, error)</a></dd>
  105. <dd>&nbsp; &nbsp; <a href="index.html#Duration.String">func (d Duration) String() string</a></dd>
  106. <dd>&nbsp; &nbsp; <a href="index.html#Duration.UnmarshalYAML">func (d *Duration) UnmarshalYAML(unmarshal func(interface{}) error) error</a></dd>
  107. <dd><a href="index.html#Fingerprint">type Fingerprint</a></dd>
  108. <dd>&nbsp; &nbsp; <a href="index.html#FingerprintFromString">func FingerprintFromString(s string) (Fingerprint, error)</a></dd>
  109. <dd>&nbsp; &nbsp; <a href="index.html#ParseFingerprint">func ParseFingerprint(s string) (Fingerprint, error)</a></dd>
  110. <dd>&nbsp; &nbsp; <a href="index.html#Fingerprint.String">func (f Fingerprint) String() string</a></dd>
  111. <dd><a href="index.html#FingerprintSet">type FingerprintSet</a></dd>
  112. <dd>&nbsp; &nbsp; <a href="index.html#FingerprintSet.Equal">func (s FingerprintSet) Equal(o FingerprintSet) bool</a></dd>
  113. <dd>&nbsp; &nbsp; <a href="index.html#FingerprintSet.Intersection">func (s FingerprintSet) Intersection(o FingerprintSet) FingerprintSet</a></dd>
  114. <dd><a href="index.html#Fingerprints">type Fingerprints</a></dd>
  115. <dd>&nbsp; &nbsp; <a href="index.html#Fingerprints.Len">func (f Fingerprints) Len() int</a></dd>
  116. <dd>&nbsp; &nbsp; <a href="index.html#Fingerprints.Less">func (f Fingerprints) Less(i, j int) bool</a></dd>
  117. <dd>&nbsp; &nbsp; <a href="index.html#Fingerprints.Swap">func (f Fingerprints) Swap(i, j int)</a></dd>
  118. <dd><a href="index.html#Interval">type Interval</a></dd>
  119. <dd><a href="index.html#LabelName">type LabelName</a></dd>
  120. <dd>&nbsp; &nbsp; <a href="index.html#LabelName.IsValid">func (ln LabelName) IsValid() bool</a></dd>
  121. <dd>&nbsp; &nbsp; <a href="index.html#LabelName.UnmarshalJSON">func (ln *LabelName) UnmarshalJSON(b []byte) error</a></dd>
  122. <dd>&nbsp; &nbsp; <a href="index.html#LabelName.UnmarshalYAML">func (ln *LabelName) UnmarshalYAML(unmarshal func(interface{}) error) error</a></dd>
  123. <dd><a href="index.html#LabelNames">type LabelNames</a></dd>
  124. <dd>&nbsp; &nbsp; <a href="index.html#LabelNames.Len">func (l LabelNames) Len() int</a></dd>
  125. <dd>&nbsp; &nbsp; <a href="index.html#LabelNames.Less">func (l LabelNames) Less(i, j int) bool</a></dd>
  126. <dd>&nbsp; &nbsp; <a href="index.html#LabelNames.String">func (l LabelNames) String() string</a></dd>
  127. <dd>&nbsp; &nbsp; <a href="index.html#LabelNames.Swap">func (l LabelNames) Swap(i, j int)</a></dd>
  128. <dd><a href="index.html#LabelPair">type LabelPair</a></dd>
  129. <dd><a href="index.html#LabelPairs">type LabelPairs</a></dd>
  130. <dd>&nbsp; &nbsp; <a href="index.html#LabelPairs.Len">func (l LabelPairs) Len() int</a></dd>
  131. <dd>&nbsp; &nbsp; <a href="index.html#LabelPairs.Less">func (l LabelPairs) Less(i, j int) bool</a></dd>
  132. <dd>&nbsp; &nbsp; <a href="index.html#LabelPairs.Swap">func (l LabelPairs) Swap(i, j int)</a></dd>
  133. <dd><a href="index.html#LabelSet">type LabelSet</a></dd>
  134. <dd>&nbsp; &nbsp; <a href="index.html#LabelSet.Before">func (ls LabelSet) Before(o LabelSet) bool</a></dd>
  135. <dd>&nbsp; &nbsp; <a href="index.html#LabelSet.Clone">func (ls LabelSet) Clone() LabelSet</a></dd>
  136. <dd>&nbsp; &nbsp; <a href="index.html#LabelSet.Equal">func (ls LabelSet) Equal(o LabelSet) bool</a></dd>
  137. <dd>&nbsp; &nbsp; <a href="index.html#LabelSet.FastFingerprint">func (ls LabelSet) FastFingerprint() Fingerprint</a></dd>
  138. <dd>&nbsp; &nbsp; <a href="index.html#LabelSet.Fingerprint">func (ls LabelSet) Fingerprint() Fingerprint</a></dd>
  139. <dd>&nbsp; &nbsp; <a href="index.html#LabelSet.Merge">func (l LabelSet) Merge(other LabelSet) LabelSet</a></dd>
  140. <dd>&nbsp; &nbsp; <a href="index.html#LabelSet.String">func (l LabelSet) String() string</a></dd>
  141. <dd>&nbsp; &nbsp; <a href="index.html#LabelSet.UnmarshalJSON">func (l *LabelSet) UnmarshalJSON(b []byte) error</a></dd>
  142. <dd>&nbsp; &nbsp; <a href="index.html#LabelSet.Validate">func (ls LabelSet) Validate() error</a></dd>
  143. <dd><a href="index.html#LabelValue">type LabelValue</a></dd>
  144. <dd>&nbsp; &nbsp; <a href="index.html#LabelValue.IsValid">func (lv LabelValue) IsValid() bool</a></dd>
  145. <dd><a href="index.html#LabelValues">type LabelValues</a></dd>
  146. <dd>&nbsp; &nbsp; <a href="index.html#LabelValues.Len">func (l LabelValues) Len() int</a></dd>
  147. <dd>&nbsp; &nbsp; <a href="index.html#LabelValues.Less">func (l LabelValues) Less(i, j int) bool</a></dd>
  148. <dd>&nbsp; &nbsp; <a href="index.html#LabelValues.Swap">func (l LabelValues) Swap(i, j int)</a></dd>
  149. <dd><a href="index.html#Matcher">type Matcher</a></dd>
  150. <dd>&nbsp; &nbsp; <a href="index.html#Matcher.UnmarshalJSON">func (m *Matcher) UnmarshalJSON(b []byte) error</a></dd>
  151. <dd>&nbsp; &nbsp; <a href="index.html#Matcher.Validate">func (m *Matcher) Validate() error</a></dd>
  152. <dd><a href="index.html#Matrix">type Matrix</a></dd>
  153. <dd>&nbsp; &nbsp; <a href="index.html#Matrix.Len">func (m Matrix) Len() int</a></dd>
  154. <dd>&nbsp; &nbsp; <a href="index.html#Matrix.Less">func (m Matrix) Less(i, j int) bool</a></dd>
  155. <dd>&nbsp; &nbsp; <a href="index.html#Matrix.String">func (mat Matrix) String() string</a></dd>
  156. <dd>&nbsp; &nbsp; <a href="index.html#Matrix.Swap">func (m Matrix) Swap(i, j int)</a></dd>
  157. <dd>&nbsp; &nbsp; <a href="index.html#Matrix.Type">func (Matrix) Type() ValueType</a></dd>
  158. <dd><a href="index.html#Metric">type Metric</a></dd>
  159. <dd>&nbsp; &nbsp; <a href="index.html#Metric.Before">func (m Metric) Before(o Metric) bool</a></dd>
  160. <dd>&nbsp; &nbsp; <a href="index.html#Metric.Clone">func (m Metric) Clone() Metric</a></dd>
  161. <dd>&nbsp; &nbsp; <a href="index.html#Metric.Equal">func (m Metric) Equal(o Metric) bool</a></dd>
  162. <dd>&nbsp; &nbsp; <a href="index.html#Metric.FastFingerprint">func (m Metric) FastFingerprint() Fingerprint</a></dd>
  163. <dd>&nbsp; &nbsp; <a href="index.html#Metric.Fingerprint">func (m Metric) Fingerprint() Fingerprint</a></dd>
  164. <dd>&nbsp; &nbsp; <a href="index.html#Metric.String">func (m Metric) String() string</a></dd>
  165. <dd><a href="index.html#Sample">type Sample</a></dd>
  166. <dd>&nbsp; &nbsp; <a href="index.html#Sample.Equal">func (s *Sample) Equal(o *Sample) bool</a></dd>
  167. <dd>&nbsp; &nbsp; <a href="index.html#Sample.MarshalJSON">func (s Sample) MarshalJSON() ([]byte, error)</a></dd>
  168. <dd>&nbsp; &nbsp; <a href="index.html#Sample.String">func (s Sample) String() string</a></dd>
  169. <dd>&nbsp; &nbsp; <a href="index.html#Sample.UnmarshalJSON">func (s *Sample) UnmarshalJSON(b []byte) error</a></dd>
  170. <dd><a href="index.html#SamplePair">type SamplePair</a></dd>
  171. <dd>&nbsp; &nbsp; <a href="index.html#SamplePair.Equal">func (s *SamplePair) Equal(o *SamplePair) bool</a></dd>
  172. <dd>&nbsp; &nbsp; <a href="index.html#SamplePair.MarshalJSON">func (s SamplePair) MarshalJSON() ([]byte, error)</a></dd>
  173. <dd>&nbsp; &nbsp; <a href="index.html#SamplePair.String">func (s SamplePair) String() string</a></dd>
  174. <dd>&nbsp; &nbsp; <a href="index.html#SamplePair.UnmarshalJSON">func (s *SamplePair) UnmarshalJSON(b []byte) error</a></dd>
  175. <dd><a href="index.html#SampleStream">type SampleStream</a></dd>
  176. <dd>&nbsp; &nbsp; <a href="index.html#SampleStream.String">func (ss SampleStream) String() string</a></dd>
  177. <dd><a href="index.html#SampleValue">type SampleValue</a></dd>
  178. <dd>&nbsp; &nbsp; <a href="index.html#SampleValue.Equal">func (v SampleValue) Equal(o SampleValue) bool</a></dd>
  179. <dd>&nbsp; &nbsp; <a href="index.html#SampleValue.MarshalJSON">func (v SampleValue) MarshalJSON() ([]byte, error)</a></dd>
  180. <dd>&nbsp; &nbsp; <a href="index.html#SampleValue.String">func (v SampleValue) String() string</a></dd>
  181. <dd>&nbsp; &nbsp; <a href="index.html#SampleValue.UnmarshalJSON">func (v *SampleValue) UnmarshalJSON(b []byte) error</a></dd>
  182. <dd><a href="index.html#Samples">type Samples</a></dd>
  183. <dd>&nbsp; &nbsp; <a href="index.html#Samples.Equal">func (s Samples) Equal(o Samples) bool</a></dd>
  184. <dd>&nbsp; &nbsp; <a href="index.html#Samples.Len">func (s Samples) Len() int</a></dd>
  185. <dd>&nbsp; &nbsp; <a href="index.html#Samples.Less">func (s Samples) Less(i, j int) bool</a></dd>
  186. <dd>&nbsp; &nbsp; <a href="index.html#Samples.Swap">func (s Samples) Swap(i, j int)</a></dd>
  187. <dd><a href="index.html#Scalar">type Scalar</a></dd>
  188. <dd>&nbsp; &nbsp; <a href="index.html#Scalar.MarshalJSON">func (s Scalar) MarshalJSON() ([]byte, error)</a></dd>
  189. <dd>&nbsp; &nbsp; <a href="index.html#Scalar.String">func (s Scalar) String() string</a></dd>
  190. <dd>&nbsp; &nbsp; <a href="index.html#Scalar.Type">func (*Scalar) Type() ValueType</a></dd>
  191. <dd>&nbsp; &nbsp; <a href="index.html#Scalar.UnmarshalJSON">func (s *Scalar) UnmarshalJSON(b []byte) error</a></dd>
  192. <dd><a href="index.html#Silence">type Silence</a></dd>
  193. <dd>&nbsp; &nbsp; <a href="index.html#Silence.Validate">func (s *Silence) Validate() error</a></dd>
  194. <dd><a href="index.html#String">type String</a></dd>
  195. <dd>&nbsp; &nbsp; <a href="index.html#String.MarshalJSON">func (s String) MarshalJSON() ([]byte, error)</a></dd>
  196. <dd>&nbsp; &nbsp; <a href="index.html#String.String">func (s *String) String() string</a></dd>
  197. <dd>&nbsp; &nbsp; <a href="index.html#String.Type">func (*String) Type() ValueType</a></dd>
  198. <dd>&nbsp; &nbsp; <a href="index.html#String.UnmarshalJSON">func (s *String) UnmarshalJSON(b []byte) error</a></dd>
  199. <dd><a href="index.html#Time">type Time</a></dd>
  200. <dd>&nbsp; &nbsp; <a href="index.html#Now">func Now() Time</a></dd>
  201. <dd>&nbsp; &nbsp; <a href="index.html#TimeFromUnix">func TimeFromUnix(t int64) Time</a></dd>
  202. <dd>&nbsp; &nbsp; <a href="index.html#TimeFromUnixNano">func TimeFromUnixNano(t int64) Time</a></dd>
  203. <dd>&nbsp; &nbsp; <a href="index.html#Time.Add">func (t Time) Add(d time.Duration) Time</a></dd>
  204. <dd>&nbsp; &nbsp; <a href="index.html#Time.After">func (t Time) After(o Time) bool</a></dd>
  205. <dd>&nbsp; &nbsp; <a href="index.html#Time.Before">func (t Time) Before(o Time) bool</a></dd>
  206. <dd>&nbsp; &nbsp; <a href="index.html#Time.Equal">func (t Time) Equal(o Time) bool</a></dd>
  207. <dd>&nbsp; &nbsp; <a href="index.html#Time.MarshalJSON">func (t Time) MarshalJSON() ([]byte, error)</a></dd>
  208. <dd>&nbsp; &nbsp; <a href="index.html#Time.String">func (t Time) String() string</a></dd>
  209. <dd>&nbsp; &nbsp; <a href="index.html#Time.Sub">func (t Time) Sub(o Time) time.Duration</a></dd>
  210. <dd>&nbsp; &nbsp; <a href="index.html#Time.Time">func (t Time) Time() time.Time</a></dd>
  211. <dd>&nbsp; &nbsp; <a href="index.html#Time.Unix">func (t Time) Unix() int64</a></dd>
  212. <dd>&nbsp; &nbsp; <a href="index.html#Time.UnixNano">func (t Time) UnixNano() int64</a></dd>
  213. <dd>&nbsp; &nbsp; <a href="index.html#Time.UnmarshalJSON">func (t *Time) UnmarshalJSON(b []byte) error</a></dd>
  214. <dd><a href="index.html#Value">type Value</a></dd>
  215. <dd><a href="index.html#ValueType">type ValueType</a></dd>
  216. <dd>&nbsp; &nbsp; <a href="index.html#ValueType.MarshalJSON">func (et ValueType) MarshalJSON() ([]byte, error)</a></dd>
  217. <dd>&nbsp; &nbsp; <a href="index.html#ValueType.String">func (e ValueType) String() string</a></dd>
  218. <dd>&nbsp; &nbsp; <a href="index.html#ValueType.UnmarshalJSON">func (et *ValueType) UnmarshalJSON(b []byte) error</a></dd>
  219. <dd><a href="index.html#Vector">type Vector</a></dd>
  220. <dd>&nbsp; &nbsp; <a href="index.html#Vector.Equal">func (vec Vector) Equal(o Vector) bool</a></dd>
  221. <dd>&nbsp; &nbsp; <a href="index.html#Vector.Len">func (vec Vector) Len() int</a></dd>
  222. <dd>&nbsp; &nbsp; <a href="index.html#Vector.Less">func (vec Vector) Less(i, j int) bool</a></dd>
  223. <dd>&nbsp; &nbsp; <a href="index.html#Vector.String">func (vec Vector) String() string</a></dd>
  224. <dd>&nbsp; &nbsp; <a href="index.html#Vector.Swap">func (vec Vector) Swap(i, j int)</a></dd>
  225. <dd>&nbsp; &nbsp; <a href="index.html#Vector.Type">func (Vector) Type() ValueType</a></dd>
  226. </dl>
  227. </div><!-- #manual-nav -->
  228. <h4>Package files</h4>
  229. <p>
  230. <span style="font-size:90%">
  231. <a href="http://localhost:6060/src/github.com/prometheus/common/model/alert.go">alert.go</a>
  232. <a href="http://localhost:6060/src/github.com/prometheus/common/model/fingerprinting.go">fingerprinting.go</a>
  233. <a href="http://localhost:6060/src/github.com/prometheus/common/model/fnv.go">fnv.go</a>
  234. <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go">labels.go</a>
  235. <a href="http://localhost:6060/src/github.com/prometheus/common/model/labelset.go">labelset.go</a>
  236. <a href="http://localhost:6060/src/github.com/prometheus/common/model/metric.go">metric.go</a>
  237. <a href="http://localhost:6060/src/github.com/prometheus/common/model/model.go">model.go</a>
  238. <a href="http://localhost:6060/src/github.com/prometheus/common/model/signature.go">signature.go</a>
  239. <a href="http://localhost:6060/src/github.com/prometheus/common/model/silence.go">silence.go</a>
  240. <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go">time.go</a>
  241. <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go">value.go</a>
  242. </span>
  243. </p>
  244. </div><!-- .expanded -->
  245. </div><!-- #pkg-index -->
  246. <div id="pkg-callgraph" class="toggle" style="display: none">
  247. <div class="collapsed">
  248. <h2 class="toggleButton" title="Click to show Internal Call Graph section">Internal call graph ▹</h2>
  249. </div> <!-- .expanded -->
  250. <div class="expanded">
  251. <h2 class="toggleButton" title="Click to hide Internal Call Graph section">Internal call graph ▾</h2>
  252. <p>
  253. In the call graph viewer below, each node
  254. is a function belonging to this package
  255. and its children are the functions it
  256. calls&mdash;perhaps dynamically.
  257. </p>
  258. <p>
  259. The root nodes are the entry points of the
  260. package: functions that may be called from
  261. outside the package.
  262. There may be non-exported or anonymous
  263. functions among them if they are called
  264. dynamically from another package.
  265. </p>
  266. <p>
  267. Click a node to visit that function's source code.
  268. From there you can visit its callers by
  269. clicking its declaring <code>func</code>
  270. token.
  271. </p>
  272. <p>
  273. Functions may be omitted if they were
  274. determined to be unreachable in the
  275. particular programs or tests that were
  276. analyzed.
  277. </p>
  278. <!-- Zero means show all package entry points. -->
  279. <ul style="margin-left: 0.5in" id="callgraph-0" class="treeview"></ul>
  280. </div>
  281. </div> <!-- #pkg-callgraph -->
  282. <h2 id="pkg-constants">Constants</h2>
  283. <pre>const (
  284. <span class="comment">// AlertNameLabel is the name of the label containing the an alert&#39;s name.</span>
  285. <span id="AlertNameLabel">AlertNameLabel</span> = &#34;alertname&#34;
  286. <span class="comment">// ExportedLabelPrefix is the prefix to prepend to the label names present in</span>
  287. <span class="comment">// exported metrics if a label of the same name is added by the server.</span>
  288. <span id="ExportedLabelPrefix">ExportedLabelPrefix</span> = &#34;exported_&#34;
  289. <span class="comment">// MetricNameLabel is the label name indicating the metric name of a</span>
  290. <span class="comment">// timeseries.</span>
  291. <span id="MetricNameLabel">MetricNameLabel</span> = &#34;__name__&#34;
  292. <span class="comment">// SchemeLabel is the name of the label that holds the scheme on which to</span>
  293. <span class="comment">// scrape a target.</span>
  294. <span id="SchemeLabel">SchemeLabel</span> = &#34;__scheme__&#34;
  295. <span class="comment">// AddressLabel is the name of the label that holds the address of</span>
  296. <span class="comment">// a scrape target.</span>
  297. <span id="AddressLabel">AddressLabel</span> = &#34;__address__&#34;
  298. <span class="comment">// MetricsPathLabel is the name of the label that holds the path on which to</span>
  299. <span class="comment">// scrape a target.</span>
  300. <span id="MetricsPathLabel">MetricsPathLabel</span> = &#34;__metrics_path__&#34;
  301. <span class="comment">// ReservedLabelPrefix is a prefix which is not legal in user-supplied</span>
  302. <span class="comment">// label names.</span>
  303. <span id="ReservedLabelPrefix">ReservedLabelPrefix</span> = &#34;__&#34;
  304. <span class="comment">// MetaLabelPrefix is a prefix for labels that provide meta information.</span>
  305. <span class="comment">// Labels with this prefix are used for intermediate label processing and</span>
  306. <span class="comment">// will not be attached to time series.</span>
  307. <span id="MetaLabelPrefix">MetaLabelPrefix</span> = &#34;__meta_&#34;
  308. <span class="comment">// TmpLabelPrefix is a prefix for temporary labels as part of relabelling.</span>
  309. <span class="comment">// Labels with this prefix are used for intermediate label processing and</span>
  310. <span class="comment">// will not be attached to time series. This is reserved for use in</span>
  311. <span class="comment">// Prometheus configuration files by users.</span>
  312. <span id="TmpLabelPrefix">TmpLabelPrefix</span> = &#34;__tmp_&#34;
  313. <span class="comment">// ParamLabelPrefix is a prefix for labels that provide URL parameters</span>
  314. <span class="comment">// used to scrape a target.</span>
  315. <span id="ParamLabelPrefix">ParamLabelPrefix</span> = &#34;__param_&#34;
  316. <span class="comment">// JobLabel is the label name indicating the job from which a timeseries</span>
  317. <span class="comment">// was scraped.</span>
  318. <span id="JobLabel">JobLabel</span> = &#34;job&#34;
  319. <span class="comment">// InstanceLabel is the label name used for the instance label.</span>
  320. <span id="InstanceLabel">InstanceLabel</span> = &#34;instance&#34;
  321. <span class="comment">// BucketLabel is used for the label that defines the upper bound of a</span>
  322. <span class="comment">// bucket of a histogram (&#34;le&#34; -&gt; &#34;less or equal&#34;).</span>
  323. <span id="BucketLabel">BucketLabel</span> = &#34;le&#34;
  324. <span class="comment">// QuantileLabel is used for the label that defines the quantile in a</span>
  325. <span class="comment">// summary.</span>
  326. <span id="QuantileLabel">QuantileLabel</span> = &#34;quantile&#34;
  327. )</pre>
  328. <pre>const (
  329. <span class="comment">// Earliest is the earliest Time representable. Handy for</span>
  330. <span class="comment">// initializing a high watermark.</span>
  331. <span id="Earliest">Earliest</span> = <a href="index.html#Time">Time</a>(<a href="../../../../math/index.html">math</a>.<a href="../../../../math/index.html#MinInt64">MinInt64</a>)
  332. <span class="comment">// Latest is the latest Time representable. Handy for initializing</span>
  333. <span class="comment">// a low watermark.</span>
  334. <span id="Latest">Latest</span> = <a href="index.html#Time">Time</a>(<a href="../../../../math/index.html">math</a>.<a href="../../../../math/index.html#MaxInt64">MaxInt64</a>)
  335. )</pre>
  336. <pre>const <span id="SeparatorByte">SeparatorByte</span> <a href="../../../../builtin/index.html#byte">byte</a> = 255</pre>
  337. <p>
  338. SeparatorByte is a byte that cannot occur in valid UTF-8 sequences and is
  339. used to separate label names, label values, and other strings from each other
  340. when calculating their combined hash value (aka signature aka fingerprint).
  341. </p>
  342. <h2 id="pkg-variables">Variables</h2>
  343. <pre>var (
  344. <span class="comment">// ZeroSamplePair is the pseudo zero-value of SamplePair used to signal a</span>
  345. <span class="comment">// non-existing sample pair. It is a SamplePair with timestamp Earliest and</span>
  346. <span class="comment">// value 0.0. Note that the natural zero value of SamplePair has a timestamp</span>
  347. <span class="comment">// of 0, which is possible to appear in a real SamplePair and thus not</span>
  348. <span class="comment">// suitable to signal a non-existing SamplePair.</span>
  349. <span id="ZeroSamplePair">ZeroSamplePair</span> = <a href="index.html#SamplePair">SamplePair</a>{<a href="index.html#Timestamp">Timestamp</a>: <a href="index.html#Earliest">Earliest</a>}
  350. <span class="comment">// ZeroSample is the pseudo zero-value of Sample used to signal a</span>
  351. <span class="comment">// non-existing sample. It is a Sample with timestamp Earliest, value 0.0,</span>
  352. <span class="comment">// and metric nil. Note that the natural zero value of Sample has a timestamp</span>
  353. <span class="comment">// of 0, which is possible to appear in a real Sample and thus not suitable</span>
  354. <span class="comment">// to signal a non-existing Sample.</span>
  355. <span id="ZeroSample">ZeroSample</span> = <a href="index.html#Sample">Sample</a>{<a href="index.html#Timestamp">Timestamp</a>: <a href="index.html#Earliest">Earliest</a>}
  356. )</pre>
  357. <pre>var <span id="LabelNameRE">LabelNameRE</span> = <a href="../../../../regexp/index.html">regexp</a>.<a href="../../../../regexp/index.html#MustCompile">MustCompile</a>(&#34;^[a-zA-Z_][a-zA-Z0-9_]*$&#34;)</pre>
  358. <p>
  359. LabelNameRE is a regular expression matching valid label names.
  360. </p>
  361. <pre>var (
  362. <span id="MetricNameRE">MetricNameRE</span> = <a href="../../../../regexp/index.html">regexp</a>.<a href="../../../../regexp/index.html#MustCompile">MustCompile</a>(`^[a-zA-Z_][a-zA-Z0-9_:]*$`)
  363. )</pre>
  364. <h2 id="IsValidMetricName">func <a href="http://localhost:6060/src/github.com/prometheus/common/model/metric.go?s=2316:2357#L78">IsValidMetricName</a></h2>
  365. <pre>func IsValidMetricName(n <a href="index.html#LabelValue">LabelValue</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  366. <p>
  367. IsValidMetricName returns true iff name matches the pattern of MetricNameRE.
  368. </p>
  369. <h2 id="LabelsToSignature">func <a href="http://localhost:6060/src/github.com/prometheus/common/model/signature.go?s=1193:1248#L23">LabelsToSignature</a></h2>
  370. <pre>func LabelsToSignature(labels map[<a href="../../../../builtin/index.html#string">string</a>]<a href="../../../../builtin/index.html#string">string</a>) <a href="../../../../builtin/index.html#uint64">uint64</a></pre>
  371. <p>
  372. LabelsToSignature returns a quasi-unique signature (i.e., fingerprint) for a
  373. given label set. (Collisions are possible but unlikely if the number of label
  374. sets the function is applied to is small.)
  375. </p>
  376. <h2 id="SignatureForLabels">func <a href="http://localhost:6060/src/github.com/prometheus/common/model/signature.go?s=3228:3289#L90">SignatureForLabels</a></h2>
  377. <pre>func SignatureForLabels(m <a href="index.html#Metric">Metric</a>, labels ...<a href="index.html#LabelName">LabelName</a>) <a href="../../../../builtin/index.html#uint64">uint64</a></pre>
  378. <p>
  379. SignatureForLabels works like LabelsToSignature but takes a Metric as
  380. parameter (rather than a label map) and only includes the labels with the
  381. specified LabelNames into the signature calculation. The labels passed in
  382. will be sorted by this function.
  383. </p>
  384. <h2 id="SignatureWithoutLabels">func <a href="http://localhost:6060/src/github.com/prometheus/common/model/signature.go?s=3815:3890#L110">SignatureWithoutLabels</a></h2>
  385. <pre>func SignatureWithoutLabels(m <a href="index.html#Metric">Metric</a>, labels map[<a href="index.html#LabelName">LabelName</a>]struct{}) <a href="../../../../builtin/index.html#uint64">uint64</a></pre>
  386. <p>
  387. SignatureWithoutLabels works like LabelsToSignature but takes a Metric as
  388. parameter (rather than a label map) and excludes the labels with any of the
  389. specified LabelNames from the signature calculation.
  390. </p>
  391. <h2 id="Alert">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/alert.go?s=828:1353#L19">Alert</a></h2>
  392. <pre>type Alert struct {
  393. <span class="comment">// Label value pairs for purpose of aggregation, matching, and disposition</span>
  394. <span class="comment">// dispatching. This must minimally include an &#34;alertname&#34; label.</span>
  395. Labels <a href="index.html#LabelSet">LabelSet</a> `json:&#34;labels&#34;`
  396. <span class="comment">// Extra key/value information which does not define alert identity.</span>
  397. Annotations <a href="index.html#LabelSet">LabelSet</a> `json:&#34;annotations&#34;`
  398. <span class="comment">// The known time range for this alert. Both ends are optional.</span>
  399. StartsAt <a href="../../../../time/index.html">time</a>.<a href="../../../../time/index.html#Time">Time</a> `json:&#34;startsAt,omitempty&#34;`
  400. EndsAt <a href="../../../../time/index.html">time</a>.<a href="../../../../time/index.html#Time">Time</a> `json:&#34;endsAt,omitempty&#34;`
  401. GeneratorURL <a href="../../../../builtin/index.html#string">string</a> `json:&#34;generatorURL&#34;`
  402. }</pre>
  403. <p>
  404. Alert is a generic representation of an alert in the Prometheus eco-system.
  405. </p>
  406. <h3 id="Alert.Fingerprint">func (*Alert) <a href="http://localhost:6060/src/github.com/prometheus/common/model/alert.go?s=1630:1671#L40">Fingerprint</a></h3>
  407. <pre>func (a *<a href="index.html#Alert">Alert</a>) Fingerprint() <a href="index.html#Fingerprint">Fingerprint</a></pre>
  408. <p>
  409. Fingerprint returns a unique hash for the alert. It is equivalent to
  410. the fingerprint of the alert&#39;s label set.
  411. </p>
  412. <h3 id="Alert.Name">func (*Alert) <a href="http://localhost:6060/src/github.com/prometheus/common/model/alert.go?s=1437:1466#L34">Name</a></h3>
  413. <pre>func (a *<a href="index.html#Alert">Alert</a>) Name() <a href="../../../../builtin/index.html#string">string</a></pre>
  414. <p>
  415. Name returns the name of the alert. It is equivalent to the &#34;alertname&#34; label.
  416. </p>
  417. <h3 id="Alert.Resolved">func (*Alert) <a href="http://localhost:6060/src/github.com/prometheus/common/model/alert.go?s=1954:1985#L53">Resolved</a></h3>
  418. <pre>func (a *<a href="index.html#Alert">Alert</a>) Resolved() <a href="../../../../builtin/index.html#bool">bool</a></pre>
  419. <p>
  420. Resolved returns true iff the activity interval ended in the past.
  421. </p>
  422. <h3 id="Alert.ResolvedAt">func (*Alert) <a href="http://localhost:6060/src/github.com/prometheus/common/model/alert.go?s=2114:2159#L59">ResolvedAt</a></h3>
  423. <pre>func (a *<a href="index.html#Alert">Alert</a>) ResolvedAt(ts <a href="../../../../time/index.html">time</a>.<a href="../../../../time/index.html#Time">Time</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  424. <p>
  425. ResolvedAt returns true off the activity interval ended before
  426. the given timestamp.
  427. </p>
  428. <h3 id="Alert.Status">func (*Alert) <a href="http://localhost:6060/src/github.com/prometheus/common/model/alert.go?s=2278:2314#L67">Status</a></h3>
  429. <pre>func (a *<a href="index.html#Alert">Alert</a>) Status() <a href="index.html#AlertStatus">AlertStatus</a></pre>
  430. <p>
  431. Status returns the status of the alert.
  432. </p>
  433. <h3 id="Alert.String">func (*Alert) <a href="http://localhost:6060/src/github.com/prometheus/common/model/alert.go?s=1708:1739#L44">String</a></h3>
  434. <pre>func (a *<a href="index.html#Alert">Alert</a>) String() <a href="../../../../builtin/index.html#string">string</a></pre>
  435. <h3 id="Alert.Validate">func (*Alert) <a href="http://localhost:6060/src/github.com/prometheus/common/model/alert.go?s=2444:2476#L75">Validate</a></h3>
  436. <pre>func (a *<a href="index.html#Alert">Alert</a>) Validate() <a href="../../../../builtin/index.html#error">error</a></pre>
  437. <p>
  438. Validate checks whether the alert data is inconsistent.
  439. </p>
  440. <h2 id="AlertStatus">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/alert.go?s=635:658#L11">AlertStatus</a></h2>
  441. <pre>type AlertStatus <a href="../../../../builtin/index.html#string">string</a></pre>
  442. <pre>const (
  443. <span id="AlertFiring">AlertFiring</span> <a href="index.html#AlertStatus">AlertStatus</a> = &#34;firing&#34;
  444. <span id="AlertResolved">AlertResolved</span> <a href="index.html#AlertStatus">AlertStatus</a> = &#34;resolved&#34;
  445. )</pre>
  446. <h2 id="Alerts">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/alert.go?s=3041:3061#L95">Alerts</a></h2>
  447. <pre>type Alerts []*<a href="index.html#Alert">Alert</a></pre>
  448. <p>
  449. Alert is a list of alerts that can be sorted in chronological order.
  450. </p>
  451. <h3 id="Alerts.HasFiring">func (Alerts) <a href="http://localhost:6060/src/github.com/prometheus/common/model/alert.go?s=3454:3487#L111">HasFiring</a></h3>
  452. <pre>func (as <a href="index.html#Alerts">Alerts</a>) HasFiring() <a href="../../../../builtin/index.html#bool">bool</a></pre>
  453. <p>
  454. HasFiring returns true iff one of the alerts is not resolved.
  455. </p>
  456. <h3 id="Alerts.Len">func (Alerts) <a href="http://localhost:6060/src/github.com/prometheus/common/model/alert.go?s=3063:3089#L97">Len</a></h3>
  457. <pre>func (as <a href="index.html#Alerts">Alerts</a>) Len() <a href="../../../../builtin/index.html#int">int</a></pre>
  458. <h3 id="Alerts.Less">func (Alerts) <a href="http://localhost:6060/src/github.com/prometheus/common/model/alert.go?s=3179:3215#L100">Less</a></h3>
  459. <pre>func (as <a href="index.html#Alerts">Alerts</a>) Less(i, j <a href="../../../../builtin/index.html#int">int</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  460. <h3 id="Alerts.Status">func (Alerts) <a href="http://localhost:6060/src/github.com/prometheus/common/model/alert.go?s=3647:3684#L121">Status</a></h3>
  461. <pre>func (as <a href="index.html#Alerts">Alerts</a>) Status() <a href="index.html#AlertStatus">AlertStatus</a></pre>
  462. <p>
  463. Status returns StatusFiring iff at least one of the alerts is firing.
  464. </p>
  465. <h3 id="Alerts.Swap">func (Alerts) <a href="http://localhost:6060/src/github.com/prometheus/common/model/alert.go?s=3114:3145#L98">Swap</a></h3>
  466. <pre>func (as <a href="index.html#Alerts">Alerts</a>) Swap(i, j <a href="../../../../builtin/index.html#int">int</a>)</pre>
  467. <h2 id="Duration">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=4261:4288#L154">Duration</a></h2>
  468. <pre>type Duration <a href="../../../../time/index.html">time</a>.<a href="../../../../time/index.html#Duration">Duration</a></pre>
  469. <p>
  470. Duration wraps time.Duration. It is used to parse the custom duration format
  471. from YAML.
  472. This type should not propagate beyond the scope of input/output processing.
  473. </p>
  474. <h3 id="ParseDuration">func <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=4504:4560#L160">ParseDuration</a></h3>
  475. <pre>func ParseDuration(durationStr <a href="../../../../builtin/index.html#string">string</a>) (<a href="index.html#Duration">Duration</a>, <a href="../../../../builtin/index.html#error">error</a>)</pre>
  476. <p>
  477. StringToDuration parses a string into a time.Duration, assuming that a year
  478. always has 365d, a week always has 7d, and a day always has 24h.
  479. </p>
  480. <h3 id="Duration.MarshalYAML">func (Duration) <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=5887:5939#L223">MarshalYAML</a></h3>
  481. <pre>func (d <a href="index.html#Duration">Duration</a>) MarshalYAML() (interface{}, <a href="../../../../builtin/index.html#error">error</a>)</pre>
  482. <p>
  483. MarshalYAML implements the yaml.Marshaler interface.
  484. </p>
  485. <h3 id="Duration.String">func (Duration) <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=5215:5248#L190">String</a></h3>
  486. <pre>func (d <a href="index.html#Duration">Duration</a>) String() <a href="../../../../builtin/index.html#string">string</a></pre>
  487. <h3 id="Duration.UnmarshalYAML">func (*Duration) <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=6029:6102#L228">UnmarshalYAML</a></h3>
  488. <pre>func (d *<a href="index.html#Duration">Duration</a>) UnmarshalYAML(unmarshal func(interface{}) <a href="../../../../builtin/index.html#error">error</a>) <a href="../../../../builtin/index.html#error">error</a></pre>
  489. <p>
  490. UnmarshalYAML implements the yaml.Unmarshaler interface.
  491. </p>
  492. <h2 id="Fingerprint">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/fingerprinting.go?s=749:772#L13">Fingerprint</a></h2>
  493. <pre>type Fingerprint <a href="../../../../builtin/index.html#uint64">uint64</a></pre>
  494. <p>
  495. Fingerprint provides a hash-capable representation of a Metric.
  496. For our purposes, FNV-1A 64-bit is used.
  497. </p>
  498. <h3 id="FingerprintFromString">func <a href="http://localhost:6060/src/github.com/prometheus/common/model/fingerprinting.go?s=854:911#L16">FingerprintFromString</a></h3>
  499. <pre>func FingerprintFromString(s <a href="../../../../builtin/index.html#string">string</a>) (<a href="index.html#Fingerprint">Fingerprint</a>, <a href="../../../../builtin/index.html#error">error</a>)</pre>
  500. <p>
  501. FingerprintFromString transforms a string representation into a Fingerprint.
  502. </p>
  503. <h3 id="ParseFingerprint">func <a href="http://localhost:6060/src/github.com/prometheus/common/model/fingerprinting.go?s=1053:1105#L22">ParseFingerprint</a></h3>
  504. <pre>func ParseFingerprint(s <a href="../../../../builtin/index.html#string">string</a>) (<a href="index.html#Fingerprint">Fingerprint</a>, <a href="../../../../builtin/index.html#error">error</a>)</pre>
  505. <p>
  506. ParseFingerprint parses the input string into a fingerprint.
  507. </p>
  508. <h3 id="Fingerprint.String">func (Fingerprint) <a href="http://localhost:6060/src/github.com/prometheus/common/model/fingerprinting.go?s=1219:1255#L30">String</a></h3>
  509. <pre>func (f <a href="index.html#Fingerprint">Fingerprint</a>) String() <a href="../../../../builtin/index.html#string">string</a></pre>
  510. <h2 id="FingerprintSet">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/fingerprinting.go?s=1799:1843#L54">FingerprintSet</a></h2>
  511. <pre>type FingerprintSet map[<a href="index.html#Fingerprint">Fingerprint</a>]struct{}</pre>
  512. <p>
  513. FingerprintSet is a set of Fingerprints.
  514. </p>
  515. <h3 id="FingerprintSet.Equal">func (FingerprintSet) <a href="http://localhost:6060/src/github.com/prometheus/common/model/fingerprinting.go?s=1922:1974#L57">Equal</a></h3>
  516. <pre>func (s <a href="index.html#FingerprintSet">FingerprintSet</a>) Equal(o <a href="index.html#FingerprintSet">FingerprintSet</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  517. <p>
  518. Equal returns true if both sets contain the same elements (and not more).
  519. </p>
  520. <h3 id="FingerprintSet.Intersection">func (FingerprintSet) <a href="http://localhost:6060/src/github.com/prometheus/common/model/fingerprinting.go?s=2166:2235#L72">Intersection</a></h3>
  521. <pre>func (s <a href="index.html#FingerprintSet">FingerprintSet</a>) Intersection(o <a href="index.html#FingerprintSet">FingerprintSet</a>) <a href="index.html#FingerprintSet">FingerprintSet</a></pre>
  522. <p>
  523. Intersection returns the elements contained in both sets.
  524. </p>
  525. <h2 id="Fingerprints">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/fingerprinting.go?s=1432:1463#L36">Fingerprints</a></h2>
  526. <pre>type Fingerprints []<a href="index.html#Fingerprint">Fingerprint</a></pre>
  527. <p>
  528. Fingerprints represents a collection of Fingerprint subject to a given
  529. natural sorting scheme. It implements sort.Interface.
  530. </p>
  531. <h3 id="Fingerprints.Len">func (Fingerprints) <a href="http://localhost:6060/src/github.com/prometheus/common/model/fingerprinting.go?s=1499:1530#L39">Len</a></h3>
  532. <pre>func (f <a href="index.html#Fingerprints">Fingerprints</a>) Len() <a href="../../../../builtin/index.html#int">int</a></pre>
  533. <p>
  534. Len implements sort.Interface.
  535. </p>
  536. <h3 id="Fingerprints.Less">func (Fingerprints) <a href="http://localhost:6060/src/github.com/prometheus/common/model/fingerprinting.go?s=1586:1627#L44">Less</a></h3>
  537. <pre>func (f <a href="index.html#Fingerprints">Fingerprints</a>) Less(i, j <a href="../../../../builtin/index.html#int">int</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  538. <p>
  539. Less implements sort.Interface.
  540. </p>
  541. <h3 id="Fingerprints.Swap">func (Fingerprints) <a href="http://localhost:6060/src/github.com/prometheus/common/model/fingerprinting.go?s=1688:1724#L49">Swap</a></h3>
  542. <pre>func (f <a href="index.html#Fingerprints">Fingerprints</a>) Swap(i, j <a href="../../../../builtin/index.html#int">int</a>)</pre>
  543. <p>
  544. Swap implements sort.Interface.
  545. </p>
  546. <h2 id="Interval">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=1481:1522#L37">Interval</a></h2>
  547. <pre>type Interval struct {
  548. Start, End <a href="index.html#Time">Time</a>
  549. }</pre>
  550. <p>
  551. Interval describes and interval between two timestamps.
  552. </p>
  553. <h2 id="LabelName">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=2938:2959#L78">LabelName</a></h2>
  554. <pre>type LabelName <a href="../../../../builtin/index.html#string">string</a></pre>
  555. <p>
  556. A LabelName is a key for a LabelSet or Metric. It has a value associated
  557. therewith.
  558. </p>
  559. <h3 id="LabelName.IsValid">func (LabelName) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=3035:3069#L81">IsValid</a></h3>
  560. <pre>func (ln <a href="index.html#LabelName">LabelName</a>) IsValid() <a href="../../../../builtin/index.html#bool">bool</a></pre>
  561. <p>
  562. IsValid is true iff the label name matches the pattern of LabelNameRE.
  563. </p>
  564. <h3 id="LabelName.UnmarshalJSON">func (*LabelName) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=3672:3722#L107">UnmarshalJSON</a></h3>
  565. <pre>func (ln *<a href="index.html#LabelName">LabelName</a>) UnmarshalJSON(b []<a href="../../../../builtin/index.html#byte">byte</a>) <a href="../../../../builtin/index.html#error">error</a></pre>
  566. <p>
  567. UnmarshalJSON implements the json.Unmarshaler interface.
  568. </p>
  569. <h3 id="LabelName.UnmarshalYAML">func (*LabelName) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=3338:3413#L94">UnmarshalYAML</a></h3>
  570. <pre>func (ln *<a href="index.html#LabelName">LabelName</a>) UnmarshalYAML(unmarshal func(interface{}) <a href="../../../../builtin/index.html#error">error</a>) <a href="../../../../builtin/index.html#error">error</a></pre>
  571. <p>
  572. UnmarshalYAML implements the yaml.Unmarshaler interface.
  573. </p>
  574. <h2 id="LabelNames">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=4004:4031#L120">LabelNames</a></h2>
  575. <pre>type LabelNames []<a href="index.html#LabelName">LabelName</a></pre>
  576. <p>
  577. LabelNames is a sortable LabelName slice. In implements sort.Interface.
  578. </p>
  579. <h3 id="LabelNames.Len">func (LabelNames) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=4033:4062#L122">Len</a></h3>
  580. <pre>func (l <a href="index.html#LabelNames">LabelNames</a>) Len() <a href="../../../../builtin/index.html#int">int</a></pre>
  581. <h3 id="LabelNames.Less">func (LabelNames) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=4083:4122#L126">Less</a></h3>
  582. <pre>func (l <a href="index.html#LabelNames">LabelNames</a>) Less(i, j <a href="../../../../builtin/index.html#int">int</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  583. <h3 id="LabelNames.String">func (LabelNames) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=4213:4248#L134">String</a></h3>
  584. <pre>func (l <a href="index.html#LabelNames">LabelNames</a>) String() <a href="../../../../builtin/index.html#string">string</a></pre>
  585. <h3 id="LabelNames.Swap">func (LabelNames) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=4148:4182#L130">Swap</a></h3>
  586. <pre>func (l <a href="index.html#LabelNames">LabelNames</a>) Swap(i, j <a href="../../../../builtin/index.html#int">int</a>)</pre>
  587. <h2 id="LabelPair">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=4982:5042#L166">LabelPair</a></h2>
  588. <pre>type LabelPair struct {
  589. Name <a href="index.html#LabelName">LabelName</a>
  590. Value <a href="index.html#LabelValue">LabelValue</a>
  591. }</pre>
  592. <p>
  593. LabelPair pairs a name with a value.
  594. </p>
  595. <h2 id="LabelPairs">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=5134:5162#L173">LabelPairs</a></h2>
  596. <pre>type LabelPairs []*<a href="index.html#LabelPair">LabelPair</a></pre>
  597. <p>
  598. LabelPairs is a sortable slice of LabelPair pointers. It implements
  599. sort.Interface.
  600. </p>
  601. <h3 id="LabelPairs.Len">func (LabelPairs) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=5164:5193#L175">Len</a></h3>
  602. <pre>func (l <a href="index.html#LabelPairs">LabelPairs</a>) Len() <a href="../../../../builtin/index.html#int">int</a></pre>
  603. <h3 id="LabelPairs.Less">func (LabelPairs) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=5214:5253#L179">Less</a></h3>
  604. <pre>func (l <a href="index.html#LabelPairs">LabelPairs</a>) Less(i, j <a href="../../../../builtin/index.html#int">int</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  605. <h3 id="LabelPairs.Swap">func (LabelPairs) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=5475:5509#L194">Swap</a></h3>
  606. <pre>func (l <a href="index.html#LabelPairs">LabelPairs</a>) Swap(i, j <a href="../../../../builtin/index.html#int">int</a>)</pre>
  607. <h2 id="LabelSet">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/labelset.go?s=989:1027#L18">LabelSet</a></h2>
  608. <pre>type LabelSet map[<a href="index.html#LabelName">LabelName</a>]<a href="index.html#LabelValue">LabelValue</a></pre>
  609. <p>
  610. A LabelSet is a collection of LabelName and LabelValue pairs. The LabelSet
  611. may be fully-qualified down to the point where it may resolve to a single
  612. Metric in the data store or not. All operations that occur within the realm
  613. of a LabelSet can emit a vector of Metric entities to which the LabelSet may
  614. match.
  615. </p>
  616. <h3 id="LabelSet.Before">func (LabelSet) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labelset.go?s=2146:2188#L62">Before</a></h3>
  617. <pre>func (ls <a href="index.html#LabelSet">LabelSet</a>) Before(o <a href="index.html#LabelSet">LabelSet</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  618. <p>
  619. Before compares the metrics, using the following criteria:
  620. </p>
  621. <p>
  622. If m has fewer labels than o, it is before o. If it has more, it is not.
  623. </p>
  624. <p>
  625. If the number of labels is the same, the superset of all label names is
  626. sorted alphanumerically. The first differing label pair found in that order
  627. determines the outcome: If the label does not exist at all in m, then m is
  628. before o, and vice versa. Otherwise the label value is compared
  629. alphanumerically.
  630. </p>
  631. <p>
  632. If m and o are equal, the method returns false.
  633. </p>
  634. <h3 id="LabelSet.Clone">func (LabelSet) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labelset.go?s=2737:2772#L99">Clone</a></h3>
  635. <pre>func (ls <a href="index.html#LabelSet">LabelSet</a>) Clone() <a href="index.html#LabelSet">LabelSet</a></pre>
  636. <p>
  637. Clone returns a copy of the label set.
  638. </p>
  639. <h3 id="LabelSet.Equal">func (LabelSet) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labelset.go?s=1410:1451#L35">Equal</a></h3>
  640. <pre>func (ls <a href="index.html#LabelSet">LabelSet</a>) Equal(o <a href="index.html#LabelSet">LabelSet</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  641. <p>
  642. Equal returns true iff both label sets have exactly the same key/value pairs.
  643. </p>
  644. <h3 id="LabelSet.FastFingerprint">func (LabelSet) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labelset.go?s=3653:3701#L139">FastFingerprint</a></h3>
  645. <pre>func (ls <a href="index.html#LabelSet">LabelSet</a>) FastFingerprint() <a href="index.html#Fingerprint">Fingerprint</a></pre>
  646. <p>
  647. FastFingerprint returns the LabelSet&#39;s Fingerprint calculated by a faster hashing
  648. algorithm, which is, however, more susceptible to hash collisions.
  649. </p>
  650. <h3 id="LabelSet.Fingerprint">func (LabelSet) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labelset.go?s=3414:3458#L133">Fingerprint</a></h3>
  651. <pre>func (ls <a href="index.html#LabelSet">LabelSet</a>) Fingerprint() <a href="index.html#Fingerprint">Fingerprint</a></pre>
  652. <p>
  653. Fingerprint returns the LabelSet&#39;s fingerprint.
  654. </p>
  655. <h3 id="LabelSet.Merge">func (LabelSet) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labelset.go?s=2939:2987#L108">Merge</a></h3>
  656. <pre>func (l <a href="index.html#LabelSet">LabelSet</a>) Merge(other <a href="index.html#LabelSet">LabelSet</a>) <a href="index.html#LabelSet">LabelSet</a></pre>
  657. <p>
  658. Merge is a helper function to non-destructively merge two label sets.
  659. </p>
  660. <h3 id="LabelSet.String">func (LabelSet) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labelset.go?s=3133:3166#L122">String</a></h3>
  661. <pre>func (l <a href="index.html#LabelSet">LabelSet</a>) String() <a href="../../../../builtin/index.html#string">string</a></pre>
  662. <h3 id="LabelSet.UnmarshalJSON">func (*LabelSet) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labelset.go?s=3805:3853#L144">UnmarshalJSON</a></h3>
  663. <pre>func (l *<a href="index.html#LabelSet">LabelSet</a>) UnmarshalJSON(b []<a href="../../../../builtin/index.html#byte">byte</a>) <a href="../../../../builtin/index.html#error">error</a></pre>
  664. <p>
  665. UnmarshalJSON implements the json.Unmarshaler interface.
  666. </p>
  667. <h3 id="LabelSet.Validate">func (LabelSet) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labelset.go?s=1108:1143#L22">Validate</a></h3>
  668. <pre>func (ls <a href="index.html#LabelSet">LabelSet</a>) Validate() <a href="../../../../builtin/index.html#error">error</a></pre>
  669. <p>
  670. Validate checks whether all names and values in the label set
  671. are valid.
  672. </p>
  673. <h2 id="LabelValue">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=4477:4499#L143">LabelValue</a></h2>
  674. <pre>type LabelValue <a href="../../../../builtin/index.html#string">string</a></pre>
  675. <p>
  676. A LabelValue is an associated value for a LabelName.
  677. </p>
  678. <h3 id="LabelValue.IsValid">func (LabelValue) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=4557:4592#L146">IsValid</a></h3>
  679. <pre>func (lv <a href="index.html#LabelValue">LabelValue</a>) IsValid() <a href="../../../../builtin/index.html#bool">bool</a></pre>
  680. <p>
  681. IsValid returns true iff the string is a valid UTF8.
  682. </p>
  683. <h2 id="LabelValues">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=4712:4741#L151">LabelValues</a></h2>
  684. <pre>type LabelValues []<a href="index.html#LabelValue">LabelValue</a></pre>
  685. <p>
  686. LabelValues is a sortable LabelValue slice. It implements sort.Interface.
  687. </p>
  688. <h3 id="LabelValues.Len">func (LabelValues) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=4743:4773#L153">Len</a></h3>
  689. <pre>func (l <a href="index.html#LabelValues">LabelValues</a>) Len() <a href="../../../../builtin/index.html#int">int</a></pre>
  690. <h3 id="LabelValues.Less">func (LabelValues) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=4794:4834#L157">Less</a></h3>
  691. <pre>func (l <a href="index.html#LabelValues">LabelValues</a>) Less(i, j <a href="../../../../builtin/index.html#int">int</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  692. <h3 id="LabelValues.Swap">func (LabelValues) <a href="http://localhost:6060/src/github.com/prometheus/common/model/labels.go?s=4876:4911#L161">Swap</a></h3>
  693. <pre>func (l <a href="index.html#LabelValues">LabelValues</a>) Swap(i, j <a href="../../../../builtin/index.html#int">int</a>)</pre>
  694. <h2 id="Matcher">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/silence.go?s=721:847#L14">Matcher</a></h2>
  695. <pre>type Matcher struct {
  696. Name <a href="index.html#LabelName">LabelName</a> `json:&#34;name&#34;`
  697. Value <a href="../../../../builtin/index.html#string">string</a> `json:&#34;value&#34;`
  698. IsRegex <a href="../../../../builtin/index.html#bool">bool</a> `json:&#34;isRegex&#34;`
  699. }</pre>
  700. <p>
  701. Matcher describes a matches the value of a given label.
  702. </p>
  703. <h3 id="Matcher.UnmarshalJSON">func (*Matcher) <a href="http://localhost:6060/src/github.com/prometheus/common/model/silence.go?s=849:896#L20">UnmarshalJSON</a></h3>
  704. <pre>func (m *<a href="index.html#Matcher">Matcher</a>) UnmarshalJSON(b []<a href="../../../../builtin/index.html#byte">byte</a>) <a href="../../../../builtin/index.html#error">error</a></pre>
  705. <h3 id="Matcher.Validate">func (*Matcher) <a href="http://localhost:6060/src/github.com/prometheus/common/model/silence.go?s=1260:1294#L38">Validate</a></h3>
  706. <pre>func (m *<a href="index.html#Matcher">Matcher</a>) Validate() <a href="../../../../builtin/index.html#error">error</a></pre>
  707. <p>
  708. Validate returns true iff all fields of the matcher have valid values.
  709. </p>
  710. <h2 id="Matrix">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=9776:9803#L391">Matrix</a></h2>
  711. <pre>type Matrix []*<a href="index.html#SampleStream">SampleStream</a></pre>
  712. <p>
  713. Matrix is a list of time series.
  714. </p>
  715. <h3 id="Matrix.Len">func (Matrix) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=9805:9830#L393">Len</a></h3>
  716. <pre>func (m <a href="index.html#Matrix">Matrix</a>) Len() <a href="../../../../builtin/index.html#int">int</a></pre>
  717. <h3 id="Matrix.Less">func (Matrix) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=9859:9894#L394">Less</a></h3>
  718. <pre>func (m <a href="index.html#Matrix">Matrix</a>) Less(i, j <a href="../../../../builtin/index.html#int">int</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  719. <h3 id="Matrix.String">func (Matrix) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=10003:10036#L397">String</a></h3>
  720. <pre>func (mat <a href="index.html#Matrix">Matrix</a>) String() <a href="../../../../builtin/index.html#string">string</a></pre>
  721. <h3 id="Matrix.Swap">func (Matrix) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=9938:9968#L395">Swap</a></h3>
  722. <pre>func (m <a href="index.html#Matrix">Matrix</a>) Swap(i, j <a href="../../../../builtin/index.html#int">int</a>)</pre>
  723. <h3 id="Matrix.Type">func (Matrix) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=6226:6256#L235">Type</a></h3>
  724. <pre>func (<a href="index.html#Matrix">Matrix</a>) Type() <a href="index.html#ValueType">ValueType</a></pre>
  725. <h2 id="Metric">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/metric.go?s=901:921#L20">Metric</a></h2>
  726. <pre>type Metric <a href="index.html#LabelSet">LabelSet</a></pre>
  727. <p>
  728. A Metric is similar to a LabelSet, but the key difference is that a Metric is
  729. a singleton and refers to one and only one stream of samples.
  730. </p>
  731. <h3 id="Metric.Before">func (Metric) <a href="http://localhost:6060/src/github.com/prometheus/common/model/metric.go?s=1090:1127#L28">Before</a></h3>
  732. <pre>func (m <a href="index.html#Metric">Metric</a>) Before(o <a href="index.html#Metric">Metric</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  733. <p>
  734. Before compares the metrics&#39; underlying label sets.
  735. </p>
  736. <h3 id="Metric.Clone">func (Metric) <a href="http://localhost:6060/src/github.com/prometheus/common/model/metric.go?s=1212:1242#L33">Clone</a></h3>
  737. <pre>func (m <a href="index.html#Metric">Metric</a>) Clone() <a href="index.html#Metric">Metric</a></pre>
  738. <p>
  739. Clone returns a copy of the Metric.
  740. </p>
  741. <h3 id="Metric.Equal">func (Metric) <a href="http://localhost:6060/src/github.com/prometheus/common/model/metric.go?s=954:990#L23">Equal</a></h3>
  742. <pre>func (m <a href="index.html#Metric">Metric</a>) Equal(o <a href="index.html#Metric">Metric</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  743. <p>
  744. Equal compares the metrics.
  745. </p>
  746. <h3 id="Metric.FastFingerprint">func (Metric) <a href="http://localhost:6060/src/github.com/prometheus/common/model/metric.go?s=2147:2192#L73">FastFingerprint</a></h3>
  747. <pre>func (m <a href="index.html#Metric">Metric</a>) FastFingerprint() <a href="index.html#Fingerprint">Fingerprint</a></pre>
  748. <p>
  749. FastFingerprint returns a Metric&#39;s Fingerprint calculated by a faster hashing
  750. algorithm, which is, however, more susceptible to hash collisions.
  751. </p>
  752. <h3 id="Metric.Fingerprint">func (Metric) <a href="http://localhost:6060/src/github.com/prometheus/common/model/metric.go?s=1915:1956#L67">Fingerprint</a></h3>
  753. <pre>func (m <a href="index.html#Metric">Metric</a>) Fingerprint() <a href="index.html#Fingerprint">Fingerprint</a></pre>
  754. <p>
  755. Fingerprint returns a Metric&#39;s Fingerprint.
  756. </p>
  757. <h3 id="Metric.String">func (Metric) <a href="http://localhost:6060/src/github.com/prometheus/common/model/metric.go?s=1322:1353#L41">String</a></h3>
  758. <pre>func (m <a href="index.html#Metric">Metric</a>) String() <a href="../../../../builtin/index.html#string">string</a></pre>
  759. <h2 id="Sample">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=3523:3664#L103">Sample</a></h2>
  760. <pre>type Sample struct {
  761. Metric <a href="index.html#Metric">Metric</a> `json:&#34;metric&#34;`
  762. Value <a href="index.html#SampleValue">SampleValue</a> `json:&#34;value&#34;`
  763. Timestamp <a href="index.html#Time">Time</a> `json:&#34;timestamp&#34;`
  764. }</pre>
  765. <p>
  766. Sample is a sample pair associated with a metric.
  767. </p>
  768. <h3 id="Sample.Equal">func (*Sample) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=3806:3844#L111">Equal</a></h3>
  769. <pre>func (s *<a href="index.html#Sample">Sample</a>) Equal(o *<a href="index.html#Sample">Sample</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  770. <p>
  771. Equal compares first the metrics, then the timestamp, then the value. The
  772. sematics of value equality is defined by SampleValue.Equal.
  773. </p>
  774. <h3 id="Sample.MarshalJSON">func (Sample) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=4233:4278#L137">MarshalJSON</a></h3>
  775. <pre>func (s <a href="index.html#Sample">Sample</a>) MarshalJSON() ([]<a href="../../../../builtin/index.html#byte">byte</a>, <a href="../../../../builtin/index.html#error">error</a>)</pre>
  776. <p>
  777. MarshalJSON implements json.Marshaler.
  778. </p>
  779. <h3 id="Sample.String">func (Sample) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=4048:4079#L129">String</a></h3>
  780. <pre>func (s <a href="index.html#Sample">Sample</a>) String() <a href="../../../../builtin/index.html#string">string</a></pre>
  781. <h3 id="Sample.UnmarshalJSON">func (*Sample) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=4545:4591#L153">UnmarshalJSON</a></h3>
  782. <pre>func (s *<a href="index.html#Sample">Sample</a>) UnmarshalJSON(b []<a href="../../../../builtin/index.html#byte">byte</a>) <a href="../../../../builtin/index.html#error">error</a></pre>
  783. <p>
  784. UnmarshalJSON implements json.Unmarshaler.
  785. </p>
  786. <h2 id="SamplePair">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=2548:2613#L68">SamplePair</a></h2>
  787. <pre>type SamplePair struct {
  788. Timestamp <a href="index.html#Time">Time</a>
  789. Value <a href="index.html#SampleValue">SampleValue</a>
  790. }</pre>
  791. <p>
  792. SamplePair pairs a SampleValue with a Timestamp.
  793. </p>
  794. <h3 id="SamplePair.Equal">func (*SamplePair) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=3246:3292#L94">Equal</a></h3>
  795. <pre>func (s *<a href="index.html#SamplePair">SamplePair</a>) Equal(o *<a href="index.html#SamplePair">SamplePair</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  796. <p>
  797. Equal returns true if this SamplePair and o have equal Values and equal
  798. Timestamps. The sematics of Value equality is defined by SampleValue.Equal.
  799. </p>
  800. <h3 id="SamplePair.MarshalJSON">func (SamplePair) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=2657:2706#L74">MarshalJSON</a></h3>
  801. <pre>func (s <a href="index.html#SamplePair">SamplePair</a>) MarshalJSON() ([]<a href="../../../../builtin/index.html#byte">byte</a>, <a href="../../../../builtin/index.html#error">error</a>)</pre>
  802. <p>
  803. MarshalJSON implements json.Marshaler.
  804. </p>
  805. <h3 id="SamplePair.String">func (SamplePair) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=3375:3410#L98">String</a></h3>
  806. <pre>func (s <a href="index.html#SamplePair">SamplePair</a>) String() <a href="../../../../builtin/index.html#string">string</a></pre>
  807. <h3 id="SamplePair.UnmarshalJSON">func (*SamplePair) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=2954:3004#L87">UnmarshalJSON</a></h3>
  808. <pre>func (s *<a href="index.html#SamplePair">SamplePair</a>) UnmarshalJSON(b []<a href="../../../../builtin/index.html#byte">byte</a>) <a href="../../../../builtin/index.html#error">error</a></pre>
  809. <p>
  810. UnmarshalJSON implements json.Unmarshaler.
  811. </p>
  812. <h2 id="SampleStream">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=5772:5874#L216">SampleStream</a></h2>
  813. <pre>type SampleStream struct {
  814. Metric <a href="index.html#Metric">Metric</a> `json:&#34;metric&#34;`
  815. Values []<a href="index.html#SamplePair">SamplePair</a> `json:&#34;values&#34;`
  816. }</pre>
  817. <p>
  818. SampleStream is a stream of Values belonging to an attached COWMetric.
  819. </p>
  820. <h3 id="SampleStream.String">func (SampleStream) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=5876:5914#L221">String</a></h3>
  821. <pre>func (ss <a href="index.html#SampleStream">SampleStream</a>) String() <a href="../../../../builtin/index.html#string">string</a></pre>
  822. <h2 id="SampleValue">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=1559:1583#L33">SampleValue</a></h2>
  823. <pre>type SampleValue <a href="../../../../builtin/index.html#float64">float64</a></pre>
  824. <p>
  825. A SampleValue is a representation of a value for a given sample at a given
  826. time.
  827. </p>
  828. <h3 id="SampleValue.Equal">func (SampleValue) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=2262:2308#L56">Equal</a></h3>
  829. <pre>func (v <a href="index.html#SampleValue">SampleValue</a>) Equal(o <a href="index.html#SampleValue">SampleValue</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  830. <p>
  831. Equal returns true if the value of v and o is equal or if both are NaN. Note
  832. that v==o is false if both are NaN. If you want the conventional float
  833. behavior, use == to compare two SampleValues.
  834. </p>
  835. <h3 id="SampleValue.MarshalJSON">func (SampleValue) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=1627:1677#L36">MarshalJSON</a></h3>
  836. <pre>func (v <a href="index.html#SampleValue">SampleValue</a>) MarshalJSON() ([]<a href="../../../../builtin/index.html#byte">byte</a>, <a href="../../../../builtin/index.html#error">error</a>)</pre>
  837. <p>
  838. MarshalJSON implements json.Marshaler.
  839. </p>
  840. <h3 id="SampleValue.String">func (SampleValue) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=2401:2437#L63">String</a></h3>
  841. <pre>func (v <a href="index.html#SampleValue">SampleValue</a>) String() <a href="../../../../builtin/index.html#string">string</a></pre>
  842. <h3 id="SampleValue.UnmarshalJSON">func (*SampleValue) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=1762:1813#L41">UnmarshalJSON</a></h3>
  843. <pre>func (v *<a href="index.html#SampleValue">SampleValue</a>) UnmarshalJSON(b []<a href="../../../../builtin/index.html#byte">byte</a>) <a href="../../../../builtin/index.html#error">error</a></pre>
  844. <p>
  845. UnmarshalJSON implements json.Unmarshaler.
  846. </p>
  847. <h2 id="Samples">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=5012:5034#L177">Samples</a></h2>
  848. <pre>type Samples []*<a href="index.html#Sample">Sample</a></pre>
  849. <p>
  850. Samples is a sortable Sample slice. It implements sort.Interface.
  851. </p>
  852. <h3 id="Samples.Equal">func (Samples) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=5521:5559#L202">Equal</a></h3>
  853. <pre>func (s <a href="index.html#Samples">Samples</a>) Equal(o <a href="index.html#Samples">Samples</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  854. <p>
  855. Equal compares two sets of samples and returns true if they are equal.
  856. </p>
  857. <h3 id="Samples.Len">func (Samples) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=5036:5062#L179">Len</a></h3>
  858. <pre>func (s <a href="index.html#Samples">Samples</a>) Len() <a href="../../../../builtin/index.html#int">int</a></pre>
  859. <h3 id="Samples.Less">func (Samples) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=5139:5175#L184">Less</a></h3>
  860. <pre>func (s <a href="index.html#Samples">Samples</a>) Less(i, j <a href="../../../../builtin/index.html#int">int</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  861. <p>
  862. Less compares first the metrics, then the timestamp.
  863. </p>
  864. <h3 id="Samples.Swap">func (Samples) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=5385:5416#L197">Swap</a></h3>
  865. <pre>func (s <a href="index.html#Samples">Samples</a>) Swap(i, j <a href="../../../../builtin/index.html#int">int</a>)</pre>
  866. <h2 id="Scalar">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=7400:7502#L294">Scalar</a></h2>
  867. <pre>type Scalar struct {
  868. Value <a href="index.html#SampleValue">SampleValue</a> `json:&#34;value&#34;`
  869. Timestamp <a href="index.html#Time">Time</a> `json:&#34;timestamp&#34;`
  870. }</pre>
  871. <p>
  872. Scalar is a scalar value evaluated at the set timestamp.
  873. </p>
  874. <h3 id="Scalar.MarshalJSON">func (Scalar) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=7645:7690#L304">MarshalJSON</a></h3>
  875. <pre>func (s <a href="index.html#Scalar">Scalar</a>) MarshalJSON() ([]<a href="../../../../builtin/index.html#byte">byte</a>, <a href="../../../../builtin/index.html#error">error</a>)</pre>
  876. <p>
  877. MarshalJSON implements json.Marshaler.
  878. </p>
  879. <h3 id="Scalar.String">func (Scalar) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=7504:7535#L299">String</a></h3>
  880. <pre>func (s <a href="index.html#Scalar">Scalar</a>) String() <a href="../../../../builtin/index.html#string">string</a></pre>
  881. <h3 id="Scalar.Type">func (*Scalar) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=6332:6363#L237">Type</a></h3>
  882. <pre>func (*<a href="index.html#Scalar">Scalar</a>) Type() <a href="index.html#ValueType">ValueType</a></pre>
  883. <h3 id="Scalar.UnmarshalJSON">func (*Scalar) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=7862:7908#L310">UnmarshalJSON</a></h3>
  884. <pre>func (s *<a href="index.html#Scalar">Scalar</a>) UnmarshalJSON(b []<a href="../../../../builtin/index.html#byte">byte</a>) <a href="../../../../builtin/index.html#error">error</a></pre>
  885. <p>
  886. UnmarshalJSON implements json.Unmarshaler.
  887. </p>
  888. <h2 id="Silence">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/silence.go?s=1733:2043#L54">Silence</a></h2>
  889. <pre>type Silence struct {
  890. ID <a href="../../../../builtin/index.html#uint64">uint64</a> `json:&#34;id,omitempty&#34;`
  891. Matchers []*<a href="index.html#Matcher">Matcher</a> `json:&#34;matchers&#34;`
  892. StartsAt <a href="../../../../time/index.html">time</a>.<a href="../../../../time/index.html#Time">Time</a> `json:&#34;startsAt&#34;`
  893. EndsAt <a href="../../../../time/index.html">time</a>.<a href="../../../../time/index.html#Time">Time</a> `json:&#34;endsAt&#34;`
  894. CreatedAt <a href="../../../../time/index.html">time</a>.<a href="../../../../time/index.html#Time">Time</a> `json:&#34;createdAt,omitempty&#34;`
  895. CreatedBy <a href="../../../../builtin/index.html#string">string</a> `json:&#34;createdBy&#34;`
  896. Comment <a href="../../../../builtin/index.html#string">string</a> `json:&#34;comment,omitempty&#34;`
  897. }</pre>
  898. <p>
  899. Silence defines the representation of a silence definiton
  900. in the Prometheus eco-system.
  901. </p>
  902. <h3 id="Silence.Validate">func (*Silence) <a href="http://localhost:6060/src/github.com/prometheus/common/model/silence.go?s=2119:2153#L68">Validate</a></h3>
  903. <pre>func (s *<a href="index.html#Silence">Silence</a>) Validate() <a href="../../../../builtin/index.html#error">error</a></pre>
  904. <p>
  905. Validate returns true iff all fields of the silence have valid values.
  906. </p>
  907. <h2 id="String">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=8256:8348#L327">String</a></h2>
  908. <pre>type String struct {
  909. Value <a href="../../../../builtin/index.html#string">string</a> `json:&#34;value&#34;`
  910. Timestamp <a href="index.html#Time">Time</a> `json:&#34;timestamp&#34;`
  911. }</pre>
  912. <p>
  913. String is a string value evaluated at the set timestamp.
  914. </p>
  915. <h3 id="String.MarshalJSON">func (String) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=8446:8491#L337">MarshalJSON</a></h3>
  916. <pre>func (s <a href="index.html#String">String</a>) MarshalJSON() ([]<a href="../../../../builtin/index.html#byte">byte</a>, <a href="../../../../builtin/index.html#error">error</a>)</pre>
  917. <p>
  918. MarshalJSON implements json.Marshaler.
  919. </p>
  920. <h3 id="String.String">func (*String) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=8350:8382#L332">String</a></h3>
  921. <pre>func (s *<a href="index.html#String">String</a>) String() <a href="../../../../builtin/index.html#string">string</a></pre>
  922. <h3 id="String.Type">func (*String) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=6385:6416#L238">Type</a></h3>
  923. <pre>func (*<a href="index.html#String">String</a>) Type() <a href="index.html#ValueType">ValueType</a></pre>
  924. <h3 id="String.UnmarshalJSON">func (*String) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=8601:8647#L342">UnmarshalJSON</a></h3>
  925. <pre>func (s *<a href="index.html#String">String</a>) UnmarshalJSON(b []<a href="../../../../builtin/index.html#byte">byte</a>) <a href="../../../../builtin/index.html#error">error</a></pre>
  926. <p>
  927. UnmarshalJSON implements json.Unmarshaler.
  928. </p>
  929. <h2 id="Time">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=1405:1420#L34">Time</a></h2>
  930. <pre>type Time <a href="../../../../builtin/index.html#int64">int64</a></pre>
  931. <p>
  932. Time is the number of milliseconds since the epoch
  933. (1970-01-01 00:00 UTC) excluding leap seconds.
  934. </p>
  935. <h3 id="Now">func <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=1567:1582#L42">Now</a></h3>
  936. <pre>func Now() <a href="index.html#Time">Time</a></pre>
  937. <p>
  938. Now returns the current time as a Time.
  939. </p>
  940. <h3 id="TimeFromUnix">func <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=1723:1754#L48">TimeFromUnix</a></h3>
  941. <pre>func TimeFromUnix(t <a href="../../../../builtin/index.html#int64">int64</a>) <a href="index.html#Time">Time</a></pre>
  942. <p>
  943. TimeFromUnix returns the Time equivalent to the Unix Time t
  944. provided in seconds.
  945. </p>
  946. <h3 id="TimeFromUnixNano">func <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=1880:1915#L54">TimeFromUnixNano</a></h3>
  947. <pre>func TimeFromUnixNano(t <a href="../../../../builtin/index.html#int64">int64</a>) <a href="index.html#Time">Time</a></pre>
  948. <p>
  949. TimeFromUnixNano returns the Time equivalent to the Unix Time
  950. t provided in nanoseconds.
  951. </p>
  952. <h3 id="Time.Add">func (Time) <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=2302:2341#L74">Add</a></h3>
  953. <pre>func (t <a href="index.html#Time">Time</a>) Add(d <a href="../../../../time/index.html">time</a>.<a href="../../../../time/index.html#Duration">Duration</a>) <a href="index.html#Time">Time</a></pre>
  954. <p>
  955. Add returns the Time t + d.
  956. </p>
  957. <h3 id="Time.After">func (Time) <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=2219:2251#L69">After</a></h3>
  958. <pre>func (t <a href="index.html#Time">Time</a>) After(o <a href="index.html#Time">Time</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  959. <p>
  960. After reports whether the Time t is after o.
  961. </p>
  962. <h3 id="Time.Before">func (Time) <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=2118:2151#L64">Before</a></h3>
  963. <pre>func (t <a href="index.html#Time">Time</a>) Before(o <a href="index.html#Time">Time</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  964. <p>
  965. Before reports whether the Time t is before o.
  966. </p>
  967. <h3 id="Time.Equal">func (Time) <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=2015:2047#L59">Equal</a></h3>
  968. <pre>func (t <a href="index.html#Time">Time</a>) Equal(o <a href="index.html#Time">Time</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  969. <p>
  970. Equal reports whether two Times represent the same instant.
  971. </p>
  972. <h3 id="Time.MarshalJSON">func (Time) <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=3283:3326#L109">MarshalJSON</a></h3>
  973. <pre>func (t <a href="index.html#Time">Time</a>) MarshalJSON() ([]<a href="../../../../builtin/index.html#byte">byte</a>, <a href="../../../../builtin/index.html#error">error</a>)</pre>
  974. <p>
  975. MarshalJSON implements the json.Marshaler interface.
  976. </p>
  977. <h3 id="Time.String">func (Time) <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=3123:3152#L104">String</a></h3>
  978. <pre>func (t <a href="index.html#Time">Time</a>) String() <a href="../../../../builtin/index.html#string">string</a></pre>
  979. <p>
  980. String returns a string representation of the Time.
  981. </p>
  982. <h3 id="Time.Sub">func (Time) <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=2414:2453#L79">Sub</a></h3>
  983. <pre>func (t <a href="index.html#Time">Time</a>) Sub(o <a href="index.html#Time">Time</a>) <a href="../../../../time/index.html">time</a>.<a href="../../../../time/index.html#Duration">Duration</a></pre>
  984. <p>
  985. Sub returns the Duration t - o.
  986. </p>
  987. <h3 id="Time.Time">func (Time) <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=2551:2581#L84">Time</a></h3>
  988. <pre>func (t <a href="index.html#Time">Time</a>) Time() <a href="../../../../time/index.html">time</a>.<a href="../../../../time/index.html#Time">Time</a></pre>
  989. <p>
  990. Time returns the time.Time representation of t.
  991. </p>
  992. <h3 id="Time.Unix">func (Time) <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=2748:2774#L90">Unix</a></h3>
  993. <pre>func (t <a href="index.html#Time">Time</a>) Unix() <a href="../../../../builtin/index.html#int64">int64</a></pre>
  994. <p>
  995. Unix returns t as a Unix time, the number of seconds elapsed
  996. since January 1, 1970 UTC.
  997. </p>
  998. <h3 id="Time.UnixNano">func (Time) <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=2908:2938#L96">UnixNano</a></h3>
  999. <pre>func (t <a href="index.html#Time">Time</a>) UnixNano() <a href="../../../../builtin/index.html#int64">int64</a></pre>
  1000. <p>
  1001. UnixNano returns t as a Unix time, the number of nanoseconds elapsed
  1002. since January 1, 1970 UTC.
  1003. </p>
  1004. <h3 id="Time.UnmarshalJSON">func (*Time) <a href="http://localhost:6060/src/github.com/prometheus/common/model/time.go?s=3424:3468#L114">UnmarshalJSON</a></h3>
  1005. <pre>func (t *<a href="index.html#Time">Time</a>) UnmarshalJSON(b []<a href="../../../../builtin/index.html#byte">byte</a>) <a href="../../../../builtin/index.html#error">error</a></pre>
  1006. <p>
  1007. UnmarshalJSON implements the json.Unmarshaler interface.
  1008. </p>
  1009. <h2 id="Value">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=6165:6224#L230">Value</a></h2>
  1010. <pre>type Value interface {
  1011. Type() <a href="index.html#ValueType">ValueType</a>
  1012. String() <a href="../../../../builtin/index.html#string">string</a>
  1013. }</pre>
  1014. <p>
  1015. Value is a generic interface for values resulting from a query evaluation.
  1016. </p>
  1017. <h2 id="ValueType">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=6439:6457#L240">ValueType</a></h2>
  1018. <pre>type ValueType <a href="../../../../builtin/index.html#int">int</a></pre>
  1019. <pre>const (
  1020. <span id="ValNone">ValNone</span> <a href="index.html#ValueType">ValueType</a> = <a href="../../../../builtin/index.html#iota">iota</a>
  1021. <span id="ValScalar">ValScalar</span>
  1022. <span id="ValVector">ValVector</span>
  1023. <span id="ValMatrix">ValMatrix</span>
  1024. <span id="ValString">ValString</span>
  1025. )</pre>
  1026. <h3 id="ValueType.MarshalJSON">func (ValueType) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=6582:6631#L251">MarshalJSON</a></h3>
  1027. <pre>func (et <a href="index.html#ValueType">ValueType</a>) MarshalJSON() ([]<a href="../../../../builtin/index.html#byte">byte</a>, <a href="../../../../builtin/index.html#error">error</a>)</pre>
  1028. <p>
  1029. MarshalJSON implements json.Marshaler.
  1030. </p>
  1031. <h3 id="ValueType.String">func (ValueType) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=7060:7094#L277">String</a></h3>
  1032. <pre>func (e <a href="index.html#ValueType">ValueType</a>) String() <a href="../../../../builtin/index.html#string">string</a></pre>
  1033. <h3 id="ValueType.UnmarshalJSON">func (*ValueType) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=6671:6721#L255">UnmarshalJSON</a></h3>
  1034. <pre>func (et *<a href="index.html#ValueType">ValueType</a>) UnmarshalJSON(b []<a href="../../../../builtin/index.html#byte">byte</a>) <a href="../../../../builtin/index.html#error">error</a></pre>
  1035. <h2 id="Vector">type <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=8858:8879#L349">Vector</a></h2>
  1036. <pre>type Vector []*<a href="index.html#Sample">Sample</a></pre>
  1037. <p>
  1038. Vector is basically only an alias for Samples, but the
  1039. contract is that in a Vector, all Samples have the same timestamp.
  1040. </p>
  1041. <h3 id="Vector.Equal">func (Vector) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=9559:9597#L377">Equal</a></h3>
  1042. <pre>func (vec <a href="index.html#Vector">Vector</a>) Equal(o <a href="index.html#Vector">Vector</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  1043. <p>
  1044. Equal compares two sets of samples and returns true if they are equal.
  1045. </p>
  1046. <h3 id="Vector.Len">func (Vector) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=9047:9074#L359">Len</a></h3>
  1047. <pre>func (vec <a href="index.html#Vector">Vector</a>) Len() <a href="../../../../builtin/index.html#int">int</a></pre>
  1048. <h3 id="Vector.Less">func (Vector) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=9226:9263#L363">Less</a></h3>
  1049. <pre>func (vec <a href="index.html#Vector">Vector</a>) Less(i, j <a href="../../../../builtin/index.html#int">int</a>) <a href="../../../../builtin/index.html#bool">bool</a></pre>
  1050. <p>
  1051. Less compares first the metrics, then the timestamp.
  1052. </p>
  1053. <h3 id="Vector.String">func (Vector) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=8881:8914#L351">String</a></h3>
  1054. <pre>func (vec <a href="index.html#Vector">Vector</a>) String() <a href="../../../../builtin/index.html#string">string</a></pre>
  1055. <h3 id="Vector.Swap">func (Vector) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=9100:9132#L360">Swap</a></h3>
  1056. <pre>func (vec <a href="index.html#Vector">Vector</a>) Swap(i, j <a href="../../../../builtin/index.html#int">int</a>)</pre>
  1057. <h3 id="Vector.Type">func (Vector) <a href="http://localhost:6060/src/github.com/prometheus/common/model/value.go?s=6279:6309#L236">Type</a></h3>
  1058. <pre>func (<a href="index.html#Vector">Vector</a>) Type() <a href="index.html#ValueType">ValueType</a></pre>
  1059. <div id="footer">
  1060. Build version go1.6.<br>
  1061. Except as <a href="https://developers.google.com/site-policies#restrictions">noted</a>,
  1062. the content of this page is licensed under the
  1063. Creative Commons Attribution 3.0 License,
  1064. and code is licensed under a <a href="http://localhost:6060/LICENSE">BSD license</a>.<br>
  1065. <a href="http://localhost:6060/doc/tos.html">Terms of Service</a> |
  1066. <a href="http://www.google.com/intl/en/policies/privacy/">Privacy Policy</a>
  1067. </div>
  1068. </div><!-- .container -->
  1069. </div><!-- #page -->
  1070. <!-- TODO(adonovan): load these from <head> using "defer" attribute? -->
  1071. <script type="text/javascript" src="../../../../../lib/godoc/jquery.js"></script>
  1072. <script type="text/javascript" src="../../../../../lib/godoc/jquery.treeview.js"></script>
  1073. <script type="text/javascript" src="../../../../../lib/godoc/jquery.treeview.edit.js"></script>
  1074. <script type="text/javascript" src="../../../../../lib/godoc/godocs.js"></script>
  1075. </body>
  1076. </html>