_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c167300 | validation | // signatureFunc is a cached version of signatureFunc. | {
"resource": ""
} | ||
c167301 | validation | // evalSubquery evaluates given SubqueryExpr and returns an equivalent
// evaluated MatrixSelector in its place. Note that the Name and LabelMatchers are not set. | {
"resource": ""
} | ||
c167302 | validation | // vectorSelectorSingle evaluates a instant vector for the iterator of one time series. | {
"resource": ""
} | ||
c167303 | validation | // signatureFunc returns a function that calculates the signature for a metric
// ignoring the provided labels. If on, then the given labels are only used instead. | {
"resource": ""
} | ||
c167304 | validation | // VectorscalarBinop evaluates a binary operation between a Vector and a Scalar. | {
"resource": ""
} | ||
c167305 | validation | // scalarBinop evaluates a binary operation between two Scalars. | {
"resource": ""
} | ||
c167306 | validation | // shouldDropMetricName returns whether the metric name should be dropped in the
// result of the op operation. | {
"resource": ""
} | ||
c167307 | validation | // NewEndpoints returns a new endpoints discovery. | {
"resource": ""
} | ||
c167308 | validation | // Calculate the trend value at the given index i in raw data d.
// This is somewhat analogous to the slope of the trend at the given index.
// The argument "s" is the set of computed smoothed values.
// The argument "b" is the set of computed trend factors.
// The argument "d" is the set of raw input values. | {
"resource": ""
} | ||
c167309 | validation | // linearRegression performs a least-square linear regression analysis on the
// provided SamplePairs. It returns the slope, and the intercept value at the
// provided time. | {
"resource": ""
} | ||
c167310 | validation | // Common code for date related functions. | {
"resource": ""
} | ||
c167311 | validation | // getFunction returns a predefined Function object for the given name. | {
"resource": ""
} | ||
c167312 | validation | // Validate validates the ServiceDiscoveryConfig. | {
"resource": ""
} | ||
c167313 | validation | // Dedupe log lines to next, only repeating every repeat duration. | {
"resource": ""
} | ||
c167314 | validation | // Log implements log.Logger. | {
"resource": ""
} | ||
c167315 | validation | // Start blocks until the gate has a free spot or the context is done. | {
"resource": ""
} | ||
c167316 | validation | // New returns a new Discovery which periodically refreshes its targets. | {
"resource": ""
} | ||
c167317 | validation | // ApplyConfig updates the config field of the Handler struct | {
"resource": ""
} | ||
c167318 | validation | // Verifies whether the server is ready or not. | {
"resource": ""
} | ||
c167319 | validation | // New returns a file system that returns constant modification time for all files. | {
"resource": ""
} | ||
c167320 | validation | // UnmarshalJSON unmarshals JSON strings coming from OpenTSDB into Go strings
// by applying the inverse of what is described for the MarshalJSON method. | {
"resource": ""
} | ||
c167321 | validation | // Write sends a batch of samples to InfluxDB via its HTTP API. | {
"resource": ""
} | ||
c167322 | validation | // mergeSamples merges two lists of sample pairs and removes duplicate
// timestamps. It assumes that both lists are sorted by timestamp. | {
"resource": ""
} | ||
c167323 | validation | // NewDiscovery returns a new Marathon Discovery. | {
"resource": ""
} | ||
c167324 | validation | // newAuthTokenRoundTripper adds the provided auth token to a request. | {
"resource": ""
} | ||
c167325 | validation | // newAuthTokenFileRoundTripper adds the auth token read from the file to a request. | {
"resource": ""
} | ||
c167326 | validation | // isContainerNet checks if the app's first network is set to mode 'container'. | {
"resource": ""
} | ||
c167327 | validation | // fetchApps requests a list of applications from a marathon server. | {
"resource": ""
} | ||
c167328 | validation | // randomAppsURL randomly selects a server from an array and creates
// an URL pointing to the app list. | {
"resource": ""
} | ||
c167329 | validation | // appsToTargetGroups takes an array of Marathon apps and converts them into target groups. | {
"resource": ""
} | ||
c167330 | validation | // Get a list of ports and a list of labels from a PortMapping. | {
"resource": ""
} | ||
c167331 | validation | // Load parses the YAML input s into a Config. | {
"resource": ""
} | ||
c167332 | validation | // LoadFile parses the given YAML file into a Config. | {
"resource": ""
} | ||
c167333 | validation | // resolveFilepaths joins all relative paths in a configuration
// with a given base directory. | {
"resource": ""
} | ||
c167334 | validation | // isZero returns true iff the global config is the zero value. | {
"resource": ""
} | ||
c167335 | validation | // CheckTargetAddress checks if target address is valid. | {
"resource": ""
} | ||
c167336 | validation | // NewDiscovery returns a new Discovery for the given config. | {
"resource": ""
} | ||
c167337 | validation | // shouldWatch returns whether the service of the given name should be watched. | {
"resource": ""
} | ||
c167338 | validation | // shouldWatch returns whether the service of the given name should be watched based on its name. | {
"resource": ""
} | ||
c167339 | validation | // Get the local datacenter if not specified. | {
"resource": ""
} | ||
c167340 | validation | // Initialize the Discoverer run. | {
"resource": ""
} | ||
c167341 | validation | // Watch the catalog for new services we would like to watch. This is called only
// when we don't know yet the names of the services and need to ask Consul the
// entire list of services. | {
"resource": ""
} | ||
c167342 | validation | // Start watching a service. | {
"resource": ""
} | ||
c167343 | validation | // NewPod creates a new pod discovery. | {
"resource": ""
} | ||
c167344 | validation | // NewMatcher returns a matcher object. | {
"resource": ""
} | ||
c167345 | validation | // Matches returns whether the matcher matches the given string value. | {
"resource": ""
} | ||
c167346 | validation | // Return a string representation of a QueryTiming span operation. | {
"resource": ""
} | ||
c167347 | validation | // NewQueryStats makes a QueryStats struct with all QueryTimings found in the
// given TimerGroup. | {
"resource": ""
} | ||
c167348 | validation | // NewDiscovery returns a new OpenStack Discoverer which periodically refreshes its targets. | {
"resource": ""
} | ||
c167349 | validation | // UnmarshalYAML implements yaml.Unmarshaler. | {
"resource": ""
} | ||
c167350 | validation | // Hash returns a hash value for the label set. | {
"resource": ""
} | ||
c167351 | validation | // HashForLabels returns a hash value for the labels matching the provided names. | {
"resource": ""
} | ||
c167352 | validation | // Copy returns a copy of the labels. | {
"resource": ""
} | ||
c167353 | validation | // Get returns the value for the label with the given name.
// Returns an empty string if the label doesn't exist. | {
"resource": ""
} | ||
c167354 | validation | // Has returns true if the label with the given name is present. | {
"resource": ""
} | ||
c167355 | validation | // Equal returns whether the two label sets are equal. | {
"resource": ""
} | ||
c167356 | validation | // Map returns a string map of the labels. | {
"resource": ""
} | ||
c167357 | validation | // New returns a sorted Labels from the given labels.
// The caller has to guarantee that all label names are unique. | {
"resource": ""
} | ||
c167358 | validation | // FromStrings creates new labels from pairs of strings. | {
"resource": ""
} | ||
c167359 | validation | // NewBuilder returns a new LabelsBuilder | {
"resource": ""
} | ||
c167360 | validation | // Del deletes the label of the given name. | {
"resource": ""
} | ||
c167361 | validation | // Labels returns the labels from the builder. If no modifications
// were made, the original labels are returned. | {
"resource": ""
} | ||
c167362 | validation | // NewStorage returns a remote.Storage. | {
"resource": ""
} | ||
c167363 | validation | // ApplyConfig updates the state as the new config requires. | {
"resource": ""
} | ||
c167364 | validation | // Querier returns a storage.MergeQuerier combining the remote client queriers
// of each configured remote read endpoint. | {
"resource": ""
} | ||
c167365 | validation | // Close the background processing of the storage queues. | {
"resource": ""
} | ||
c167366 | validation | // RateLimit write to a logger. | {
"resource": ""
} | ||
c167367 | validation | // newHypervisorDiscovery returns a new hypervisor discovery. | {
"resource": ""
} | ||
c167368 | validation | // New returns a new API object. | {
"resource": ""
} | ||
c167369 | validation | // RegisterGRPC registers all API services with the given server. | {
"resource": ""
} | ||
c167370 | validation | // HTTPHandler returns an HTTP handler for a REST API gateway to the given grpc address. | {
"resource": ""
} | ||
c167371 | validation | // extractTimeRange returns minimum and maximum timestamp in milliseconds as
// provided by the time range. It defaults either boundary to the minimum and maximum
// possible value. | {
"resource": ""
} | ||
c167372 | validation | // Writes HTTP response content data. | {
"resource": ""
} | ||
c167373 | validation | // Closes the compressedResponseWriter and ensures to flush all data before. | {
"resource": ""
} | ||
c167374 | validation | // Constructs a new compressedResponseWriter based on client request headers. | {
"resource": ""
} | ||
c167375 | validation | // AlertTemplateData returns the interface to be used in expanding the template. | {
"resource": ""
} | ||
c167376 | validation | // Funcs adds the functions in fm to the Expander's function map.
// Existing functions will be overwritten in case of conflict. | {
"resource": ""
} | ||
c167377 | validation | // ExpandHTML expands a template with HTML escaping, with templates read from the given files. | {
"resource": ""
} | ||
c167378 | validation | // NewTarget creates a reasonably configured target for querying. | {
"resource": ""
} | ||
c167379 | validation | // Metadata returns type and help metadata for the given metric. | {
"resource": ""
} | ||
c167380 | validation | // hash returns an identifying hash for the target. | {
"resource": ""
} | ||
c167381 | validation | // offset returns the time until the next scrape cycle for the target.
// It includes the global server jitterSeed for scrapes from multiple Prometheus to try to be at different times. | {
"resource": ""
} | ||
c167382 | validation | // Labels returns a copy of the set of all public labels of the target. | {
"resource": ""
} | ||
c167383 | validation | // DiscoveredLabels returns a copy of the target's labels before any processing. | {
"resource": ""
} | ||
c167384 | validation | // SetDiscoveredLabels sets new DiscoveredLabels | {
"resource": ""
} | ||
c167385 | validation | // URL returns a copy of the target's URL. | {
"resource": ""
} | ||
c167386 | validation | // LastError returns the error encountered during the last scrape. | {
"resource": ""
} | ||
c167387 | validation | // LastScrape returns the time of the last scrape. | {
"resource": ""
} | ||
c167388 | validation | // LastScrapeDuration returns how long the last scrape of the target took. | {
"resource": ""
} | ||
c167389 | validation | // Health returns the last known health state of the target. | {
"resource": ""
} | ||
c167390 | validation | // targetsFromGroup builds targets based on the given TargetGroup and config. | {
"resource": ""
} | ||
c167391 | validation | // FromTime returns a new millisecond timestamp from a time. | {
"resource": ""
} | ||
c167392 | validation | // Time returns a new time.Time object from a millisecond timestamp. | {
"resource": ""
} | ||
c167393 | validation | // Enables cross-site script calls. | {
"resource": ""
} | ||
c167394 | validation | // Store sends a batch of samples to the HTTP endpoint, the request is the proto marshalled
// and encoded bytes from codec.go. | {
"resource": ""
} | ||
c167395 | validation | // Name identifies the client. | {
"resource": ""
} | ||
c167396 | validation | // Read reads from a remote endpoint. | {
"resource": ""
} | ||
c167397 | validation | // NewDiscovery returns a new AzureDiscovery which periodically refreshes its targets. | {
"resource": ""
} | ||
c167398 | validation | // createAzureClient is a helper function for creating an Azure compute client to ARM. | {
"resource": ""
} | ||
c167399 | validation | // Create a new azureResource object from an ID string. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.