_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c167400 | validation | // Return a string representation of the Timer. | {
"resource": ""
} | ||
c167401 | validation | // Return a string representation of a TimerGroup. | {
"resource": ""
} | ||
c167402 | validation | // RegisterAdminHandler registers the http handlers for service Admin to "mux".
// The handlers forward requests to the grpc endpoint over "conn". | {
"resource": ""
} | ||
c167403 | validation | // ParseExpr returns the expression parsed from the input. | {
"resource": ""
} | ||
c167404 | validation | // ParseMetric parses the input into a metric | {
"resource": ""
} | ||
c167405 | validation | // ParseMetricSelector parses the provided textual metric selector into a list of
// label matchers. | {
"resource": ""
} | ||
c167406 | validation | // newParser returns a new parser. | {
"resource": ""
} | ||
c167407 | validation | // parseExpr parses a single expression from the input. | {
"resource": ""
} | ||
c167408 | validation | // parseSeriesDesc parses the description of a time series. | {
"resource": ""
} | ||
c167409 | validation | // typecheck checks correct typing of the parsed statements or expression. | {
"resource": ""
} | ||
c167410 | validation | // next returns the next token. | {
"resource": ""
} | ||
c167411 | validation | // peek returns but does not consume the next token. | {
"resource": ""
} | ||
c167412 | validation | // errorf formats the error and terminates processing. | {
"resource": ""
} | ||
c167413 | validation | // error terminates processing. | {
"resource": ""
} | ||
c167414 | validation | // expectOneOf consumes the next token and guarantees it has one of the required types. | {
"resource": ""
} | ||
c167415 | validation | // recover is the handler that turns panics into returns from the top level of Parse. | {
"resource": ""
} | ||
c167416 | validation | // expr parses any expression. | {
"resource": ""
} | ||
c167417 | validation | // number parses a number. | {
"resource": ""
} | ||
c167418 | validation | // expectType checks the type of the node and raises an error if it
// is not of the expected type. | {
"resource": ""
} | ||
c167419 | validation | // Appender implements scrape.Appendable. | {
"resource": ""
} | ||
c167420 | validation | // Add implements storage.Appender. | {
"resource": ""
} | ||
c167421 | validation | // AddFast implements storage.Appender. | {
"resource": ""
} | ||
c167422 | validation | // Commit implements storage.Appender. | {
"resource": ""
} | ||
c167423 | validation | // Add appends a new Problem to the slice for the specified metric, with
// the specified issue text. | {
"resource": ""
} | ||
c167424 | validation | // Lint performs a linting pass, returning a slice of Problems indicating any
// issues found in the metrics stream. The slice is sorted by metric name
// and issue description. | {
"resource": ""
} | ||
c167425 | validation | // lint is the entry point for linting a single metric. | {
"resource": ""
} | ||
c167426 | validation | // lintHelp detects issues related to the help text for a metric. | {
"resource": ""
} | ||
c167427 | validation | // lintMetricUnits detects issues with metric unit names. | {
"resource": ""
} | ||
c167428 | validation | // lintCounter detects issues specific to counters, as well as patterns that should
// only be used with counters. | {
"resource": ""
} | ||
c167429 | validation | // Write sends a batch of samples to Graphite. | {
"resource": ""
} | ||
c167430 | validation | // New returns a new Pool with size buckets for minSize to maxSize
// increasing by the given factor. | {
"resource": ""
} | ||
c167431 | validation | // Get returns a new byte slices that fits the given size. | {
"resource": ""
} | ||
c167432 | validation | // Put adds a slice to the right bucket in the pool. | {
"resource": ""
} | ||
c167433 | validation | // TotalSamples returns the total number of samples in the series within a matrix. | {
"resource": ""
} | ||
c167434 | validation | // Vector returns a Vector if the result value is one. An error is returned if
// the result was an error or the result value is not a Vector. | {
"resource": ""
} | ||
c167435 | validation | // Scalar returns a Scalar value. An error is returned if
// the result was an error or the result value is not a Scalar. | {
"resource": ""
} | ||
c167436 | validation | // NewDiscovery returns a new EC2Discovery which periodically refreshes its targets. | {
"resource": ""
} | ||
c167437 | validation | // NewQueueManager builds a new QueueManager. | {
"resource": ""
} | ||
c167438 | validation | // Append queues a sample to be sent to the remote storage. Blocks until all samples are
// enqueued on their shards or a shutdown signal is received. | {
"resource": ""
} | ||
c167439 | validation | // Start the queue manager sending samples to the remote storage.
// Does not block. | {
"resource": ""
} | ||
c167440 | validation | // Stop stops sending samples to the remote storage and waits for pending
// sends to complete. | {
"resource": ""
} | ||
c167441 | validation | // StoreSeries keeps track of which series we know about for lookups when sending samples to remote. | {
"resource": ""
} | ||
c167442 | validation | // processExternalLabels merges externalLabels into ls. If ls contains
// a label in externalLabels, the value in ls wins. | {
"resource": ""
} | ||
c167443 | validation | // start the shards; must be called before any call to enqueue. | {
"resource": ""
} | ||
c167444 | validation | // stop the shards; subsequent call to enqueue will return false. | {
"resource": ""
} | ||
c167445 | validation | // enqueue a sample. If we are currently in the process of shutting down or resharding,
// will return false; in this case, you should back off and retry. | {
"resource": ""
} | ||
c167446 | validation | // sendSamples to the remote storage with backoff for recoverable errors. | {
"resource": ""
} | ||
c167447 | validation | // New creates a new Kubernetes discovery for the given role. | {
"resource": ""
} | ||
c167448 | validation | // compileCORSRegexString compiles given string and adds anchors | {
"resource": ""
} | ||
c167449 | validation | // computeExternalURL computes a sanitized external URL from a raw input. It infers unset
// URL parts from the OS and the given listen address. | {
"resource": ""
} | ||
c167450 | validation | // sendAlerts implements the rules.NotifyFunc for a Notifier. | {
"resource": ""
} | ||
c167451 | validation | // Validate validates all rules in the rule groups. | {
"resource": ""
} | ||
c167452 | validation | // Validate the rule and return a list of encountered errors. | {
"resource": ""
} | ||
c167453 | validation | // Parse parses and validates a set of rules. | {
"resource": ""
} | ||
c167454 | validation | // ParseFile reads and parses rules from a file. | {
"resource": ""
} | ||
c167455 | validation | // TableLinkForExpression creates an escaped relative link to the table view of
// the provided expression. | {
"resource": ""
} | ||
c167456 | validation | // GraphLinkForExpression creates an escaped relative link to the graph view of
// the provided expression. | {
"resource": ""
} | ||
c167457 | validation | // NewFanout returns a new fan-out Storage, which proxies reads and writes
// through to multiple underlying storages. | {
"resource": ""
} | ||
c167458 | validation | // Close closes the storage and all its underlying resources. | {
"resource": ""
} | ||
c167459 | validation | // NewMergeQuerier returns a new Querier that merges results of input queriers.
// NB NewMergeQuerier will return NoopQuerier if no queriers are passed to it,
// and will filter NoopQueriers from its arguments, in order to reduce overhead
// when only one querier is passed. | {
"resource": ""
} | ||
c167460 | validation | // LabelNames returns all the unique label names present in the block in sorted order. | {
"resource": ""
} | ||
c167461 | validation | // Close releases the resources of the Querier. | {
"resource": ""
} | ||
c167462 | validation | // NewAlertingRule constructs a new AlertingRule. | {
"resource": ""
} | ||
c167463 | validation | // SetLastError sets the current error seen by the alerting rule. | {
"resource": ""
} | ||
c167464 | validation | // LastError returns the last error seen by the alerting rule. | {
"resource": ""
} | ||
c167465 | validation | // SetHealth sets the current health of the alerting rule. | {
"resource": ""
} | ||
c167466 | validation | // Health returns the current health of the alerting rule. | {
"resource": ""
} | ||
c167467 | validation | // forStateSample returns the sample for ALERTS_FOR_STATE. | {
"resource": ""
} | ||
c167468 | validation | // SetEvaluationDuration updates evaluationDuration to the duration it took to evaluate the rule on its last evaluation. | {
"resource": ""
} | ||
c167469 | validation | // GetEvaluationDuration returns the time in seconds it took to evaluate the alerting rule. | {
"resource": ""
} | ||
c167470 | validation | // State returns the maximum state of alert instances for this rule.
// StateFiring > StatePending > StateInactive | {
"resource": ""
} | ||
c167471 | validation | // ActiveAlerts returns a slice of active alerts. | {
"resource": ""
} | ||
c167472 | validation | // currentAlerts returns all instances of alerts for this rule. This may include
// inactive alerts that were previously firing. | {
"resource": ""
} | ||
c167473 | validation | // Parses incoming target groups updates. If the update contains changes to the target groups
// Adapter already knows about, or new target groups, we Marshal to JSON and write to file. | {
"resource": ""
} | ||
c167474 | validation | // Writes JSON formatted targets to output file. | {
"resource": ""
} | ||
c167475 | validation | // Run starts a Discovery Manager and the custom service discovery implementation. | {
"resource": ""
} | ||
c167476 | validation | // NewGroupMetrics makes a new Metrics and registers them with then provided registerer,
// if not nil. | {
"resource": ""
} | ||
c167477 | validation | // EngineQueryFunc returns a new query function that executes instant queries against
// the given engine.
// It converts scalar into vector results. | {
"resource": ""
} | ||
c167478 | validation | // NewGroup makes a new Group with the given name, options, and rules. | {
"resource": ""
} | ||
c167479 | validation | // GetEvaluationDuration returns the time in seconds it took to evaluate the rule group. | {
"resource": ""
} | ||
c167480 | validation | // setEvaluationDuration sets the time in seconds the last evaluation took. | {
"resource": ""
} | ||
c167481 | validation | // GetEvaluationTimestamp returns the time the last evaluation of the rule group took place. | {
"resource": ""
} | ||
c167482 | validation | // setEvaluationTimestamp updates evaluationTimestamp to the timestamp of when the rule group was last evaluated. | {
"resource": ""
} | ||
c167483 | validation | // evalTimestamp returns the immediately preceding consistently slotted evaluation time. | {
"resource": ""
} | ||
c167484 | validation | // CopyState copies the alerting rule and staleness related state from the given group.
//
// Rules are matched based on their name and labels. If there are duplicates, the
// first is matched with the first, second with the second etc. | {
"resource": ""
} | ||
c167485 | validation | // NewManager returns an implementation of Manager, ready to be started
// by calling the Run method. | {
"resource": ""
} | ||
c167486 | validation | // Stop the rule manager's rule evaluation cycles. | {
"resource": ""
} | ||
c167487 | validation | // Update the rule manager's state as the config requires. If
// loading the new rules failed the old rule set is restored. | {
"resource": ""
} | ||
c167488 | validation | // LoadGroups reads groups from a list of files. | {
"resource": ""
} | ||
c167489 | validation | // RuleGroups returns the list of manager's rule groups. | {
"resource": ""
} | ||
c167490 | validation | // Rules returns the list of the manager's rules. | {
"resource": ""
} | ||
c167491 | validation | // AlertingRules returns the list of the manager's alerting rules. | {
"resource": ""
} | ||
c167492 | validation | // NewWALWatcher creates a new WAL watcher for a given WriteTo. | {
"resource": ""
} | ||
c167493 | validation | // Start the WALWatcher. | {
"resource": ""
} | ||
c167494 | validation | // Stop the WALWatcher. | {
"resource": ""
} | ||
c167495 | validation | // findSegmentForIndex finds the first segment greater than or equal to index. | {
"resource": ""
} | ||
c167496 | validation | // Use tail true to indicate that the reader is currently on a segment that is
// actively being written to. If false, assume it's a full segment and we're
// replaying it on start to cache the series records. | {
"resource": ""
} | ||
c167497 | validation | // Read all the series records from a Checkpoint directory. | {
"resource": ""
} | ||
c167498 | validation | // Get size of segment. | {
"resource": ""
} | ||
c167499 | validation | // Printf implements zk.Logger. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.