_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c167600 | validation | // ReduceDelta lowers the buffered time delta, for the current SeriesIterator only. | {
"resource": ""
} | ||
c167601 | validation | // PeekBack returns the nth previous element of the iterator. If there is none buffered,
// ok is false. | {
"resource": ""
} | ||
c167602 | validation | // Seek advances the iterator to the element at time t or greater. | {
"resource": ""
} | ||
c167603 | validation | // Next advances the iterator to the next element. | {
"resource": ""
} | ||
c167604 | validation | // Returns the current iterator. Invalidates previously returned iterators. | {
"resource": ""
} | ||
c167605 | validation | // reduceDelta lowers the buffered time delta, dropping any samples that are
// out of the new delta range. | {
"resource": ""
} | ||
c167606 | validation | // nthLast returns the nth most recent element added to the ring. | {
"resource": ""
} | ||
c167607 | validation | // next advances the openMetricsLexer to the next character. | {
"resource": ""
} | ||
c167608 | validation | // Unit returns the metric name and unit in the current entry.
// Must only be called after Next returned a unit entry.
// The returned byte slices become invalid after the next call to Next. | {
"resource": ""
} | ||
c167609 | validation | // Metric writes the labels of the current sample into the passed labels.
// It returns the string from which the metric was parsed. | {
"resource": ""
} | ||
c167610 | validation | // coalesceBuckets merges buckets with the same upper bound.
//
// The input buckets must be sorted. | {
"resource": ""
} | ||
c167611 | validation | // Collect creates constant metrics for each file with last modified time of the file. | {
"resource": ""
} | ||
c167612 | validation | // NewTimestampCollector creates a TimestampCollector. | {
"resource": ""
} | ||
c167613 | validation | // NewDiscovery returns a new file discovery for the given paths. | {
"resource": ""
} | ||
c167614 | validation | // listFiles returns a list of all files that match the configured patterns. | {
"resource": ""
} | ||
c167615 | validation | // watchFiles sets watches on all full paths or directories that were configured for
// this file discovery. | {
"resource": ""
} | ||
c167616 | validation | // stop shuts down the file watcher. | {
"resource": ""
} | ||
c167617 | validation | // refresh reads all files matching the discovery's patterns and sends the respective
// updated target groups through the channel. | {
"resource": ""
} | ||
c167618 | validation | // readFile reads a JSON or YAML list of targets groups from the file, depending on its
// file extension. It returns full configuration target groups. | {
"resource": ""
} | ||
c167619 | validation | // fileSource returns a source ID for the i-th target group in the file. | {
"resource": ""
} | ||
c167620 | validation | // NewRecordingRule returns a new recording rule. | {
"resource": ""
} | ||
c167621 | validation | // Eval evaluates the rule and then overrides the metric names and labels accordingly. | {
"resource": ""
} | ||
c167622 | validation | // SetEvaluationDuration updates evaluationDuration to the time in seconds it took to evaluate the rule on its last evaluation. | {
"resource": ""
} | ||
c167623 | validation | // SetLastError sets the current error seen by the recording rule. | {
"resource": ""
} | ||
c167624 | validation | // LastError returns the last error seen by the recording rule. | {
"resource": ""
} | ||
c167625 | validation | // SetHealth sets the current health of the recording rule. | {
"resource": ""
} | ||
c167626 | validation | // Health returns the current health of the recording rule. | {
"resource": ""
} | ||
c167627 | validation | // GetEvaluationDuration returns the time in seconds it took to evaluate the recording rule. | {
"resource": ""
} | ||
c167628 | validation | // HTMLSnippet returns an HTML snippet representing this rule. | {
"resource": ""
} | ||
c167629 | validation | // rate returns the per-second rate. | {
"resource": ""
} | ||
c167630 | validation | // tick assumes to be called every r.interval. | {
"resource": ""
} | ||
c167631 | validation | // inc counts one event. | {
"resource": ""
} | ||
c167632 | validation | // NewNode returns a new node discovery. | {
"resource": ""
} | ||
c167633 | validation | // CheckConfig validates configuration files. | {
"resource": ""
} | ||
c167634 | validation | // CheckRules validates rule files. | {
"resource": ""
} | ||
c167635 | validation | // CheckMetrics performs a linting pass on input metrics. | {
"resource": ""
} | ||
c167636 | validation | // QueryInstant performs an instant query against a Prometheus server. | {
"resource": ""
} | ||
c167637 | validation | // QueryRange performs a range query against a Prometheus server. | {
"resource": ""
} | ||
c167638 | validation | // QuerySeries queries for a series against a Prometheus server. | {
"resource": ""
} | ||
c167639 | validation | // QueryLabels queries for label values against a Prometheus server. | {
"resource": ""
} | ||
c167640 | validation | // UnmarshalJSON implements the json.Unmarshaler interface. | {
"resource": ""
} | ||
c167641 | validation | // NewStreamReader returns a reader, which replays all the data generated by sw.
//
// The returned reader may be passed to Response.SetBodyStream.
//
// Close must be called on the returned reader after all the required data
// has been read. Otherwise goroutine leak may occur.
//
// See also Response.SetBodyStreamWri... | {
"resource": ""
} | ||
c167642 | validation | // StatusMessage returns HTTP status message for the given status code. | {
"resource": ""
} | ||
c167643 | validation | // CopyTo copies all args to dst. | {
"resource": ""
} | ||
c167644 | validation | // Parse parses the given string containing query args. | {
"resource": ""
} | ||
c167645 | validation | // ParseBytes parses the given b containing query args. | {
"resource": ""
} | ||
c167646 | validation | // QueryString returns query string for the args.
//
// The returned value is valid until the next call to Args methods. | {
"resource": ""
} | ||
c167647 | validation | // AppendBytes appends query string to dst and returns the extended dst. | {
"resource": ""
} | ||
c167648 | validation | // WriteTo writes query string to w.
//
// WriteTo implements io.WriterTo interface. | {
"resource": ""
} | ||
c167649 | validation | // Del deletes argument with the given key from query args. | {
"resource": ""
} | ||
c167650 | validation | // DelBytes deletes argument with the given key from query args. | {
"resource": ""
} | ||
c167651 | validation | // Add adds 'key=value' argument.
//
// Multiple values for the same key may be added. | {
"resource": ""
} | ||
c167652 | validation | // AddBytesK adds 'key=value' argument.
//
// Multiple values for the same key may be added. | {
"resource": ""
} | ||
c167653 | validation | // AddBytesKV adds 'key=value' argument.
//
// Multiple values for the same key may be added. | {
"resource": ""
} | ||
c167654 | validation | // AddNoValue adds only 'key' as argument without the '='.
//
// Multiple values for the same key may be added. | {
"resource": ""
} | ||
c167655 | validation | // AddBytesKNoValue adds only 'key' as argument without the '='.
//
// Multiple values for the same key may be added. | {
"resource": ""
} | ||
c167656 | validation | // Set sets 'key=value' argument. | {
"resource": ""
} | ||
c167657 | validation | // SetBytesV sets 'key=value' argument. | {
"resource": ""
} | ||
c167658 | validation | // SetBytesKV sets 'key=value' argument. | {
"resource": ""
} | ||
c167659 | validation | // SetNoValue sets only 'key' as argument without the '='.
//
// Only key in argumemt, like key1&key2 | {
"resource": ""
} | ||
c167660 | validation | // SetBytesKNoValue sets 'key' argument. | {
"resource": ""
} | ||
c167661 | validation | // Peek returns query arg value for the given key.
//
// Returned value is valid until the next Args call. | {
"resource": ""
} | ||
c167662 | validation | // PeekBytes returns query arg value for the given key.
//
// Returned value is valid until the next Args call. | {
"resource": ""
} | ||
c167663 | validation | // PeekMulti returns all the arg values for the given key. | {
"resource": ""
} | ||
c167664 | validation | // PeekMultiBytes returns all the arg values for the given key. | {
"resource": ""
} | ||
c167665 | validation | // Has returns true if the given key exists in Args. | {
"resource": ""
} | ||
c167666 | validation | // HasBytes returns true if the given key exists in Args. | {
"resource": ""
} | ||
c167667 | validation | // GetUint returns uint value for the given key. | {
"resource": ""
} | ||
c167668 | validation | // SetUint sets uint value for the given key. | {
"resource": ""
} | ||
c167669 | validation | // SetUintBytes sets uint value for the given key. | {
"resource": ""
} | ||
c167670 | validation | // GetUfloat returns ufloat value for the given key. | {
"resource": ""
} | ||
c167671 | validation | // GetBool returns boolean value for the given key.
//
// true is returned for "1", "t", "T", "true", "TRUE", "True", "y", "yes", "Y", "YES", "Yes",
// otherwise false is returned. | {
"resource": ""
} | ||
c167672 | validation | // decodeArgAppendNoPlus is almost identical to decodeArgAppend, but it doesn't
// substitute '+' with ' '.
//
// The function is copy-pasted from decodeArgAppend due to the performance
// reasons only. | {
"resource": ""
} | ||
c167673 | validation | // AppendHTMLEscape appends html-escaped s to dst and returns the extended dst. | {
"resource": ""
} | ||
c167674 | validation | // AppendIPv4 appends string representation of the given ip v4 to dst
// and returns the extended dst. | {
"resource": ""
} | ||
c167675 | validation | // ParseIPv4 parses ip address from ipStr into dst and returns the extended dst. | {
"resource": ""
} | ||
c167676 | validation | // ParseUint parses uint from buf. | {
"resource": ""
} | ||
c167677 | validation | // ParseUfloat parses unsigned float from buf. | {
"resource": ""
} | ||
c167678 | validation | // AppendQuotedArg appends url-encoded src to dst and returns appended dst. | {
"resource": ""
} | ||
c167679 | validation | // CopyTo copies uri contents to dst. | {
"resource": ""
} | ||
c167680 | validation | // SetHash sets URI hash. | {
"resource": ""
} | ||
c167681 | validation | // SetHashBytes sets URI hash. | {
"resource": ""
} | ||
c167682 | validation | // SetQueryString sets URI query string. | {
"resource": ""
} | ||
c167683 | validation | // SetQueryStringBytes sets URI query string. | {
"resource": ""
} | ||
c167684 | validation | // SetPath sets URI path. | {
"resource": ""
} | ||
c167685 | validation | // SetPathBytes sets URI path. | {
"resource": ""
} | ||
c167686 | validation | // SetScheme sets URI scheme, i.e. http, https, ftp, etc. | {
"resource": ""
} | ||
c167687 | validation | // SetSchemeBytes sets URI scheme, i.e. http, https, ftp, etc. | {
"resource": ""
} | ||
c167688 | validation | // Reset clears uri. | {
"resource": ""
} | ||
c167689 | validation | // SetHost sets host for the uri. | {
"resource": ""
} | ||
c167690 | validation | // SetHostBytes sets host for the uri. | {
"resource": ""
} | ||
c167691 | validation | // RequestURI returns RequestURI - i.e. URI without Scheme and Host. | {
"resource": ""
} | ||
c167692 | validation | // AppendBytes appends full uri to dst and returns the extended dst. | {
"resource": ""
} | ||
c167693 | validation | // WriteTo writes full uri to w.
//
// WriteTo implements io.WriterTo interface. | {
"resource": ""
} | ||
c167694 | validation | // NewWriter creates a stackless writer around a writer returned
// from newWriter.
//
// The returned writer writes data to dstW.
//
// Writers that use a lot of stack space may be wrapped into stackless writer,
// thus saving stack space for high number of concurrently running goroutines. | {
"resource": ""
} | ||
c167695 | validation | // NewPipeConns returns new bi-directional connection pipe. | {
"resource": ""
} | ||
c167696 | validation | // Close closes pipe connections. | {
"resource": ""
} | ||
c167697 | validation | // LastUseTime returns time the client was last used | {
"resource": ""
} | ||
c167698 | validation | // AcquireRequest returns an empty Request instance from request pool.
//
// The returned Request instance may be passed to ReleaseRequest when it is
// no longer needed. This allows Request recycling, reduces GC pressure
// and usually improves performance. | {
"resource": ""
} | ||
c167699 | validation | // AcquireResponse returns an empty Response instance from response pool.
//
// The returned Response instance may be passed to ReleaseResponse when it is
// no longer needed. This allows Response recycling, reduces GC pressure
// and usually improves performance. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.