_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c22100
train
// Create a new Api to serve from the specified cache.
{ "resource": "" }
c22101
train
// Register the mainApi on the specified endpoint.
{ "resource": "" }
c22102
train
// NewHawkularSink Creates and returns a new hawkularSink instance
{ "resource": "" }
c22103
train
// SaveDataIntoES save metrics and events to ES by using ES client
{ "resource": "" }
c22104
train
// Returns a thread-compatible implementation of influxdb interactions.
{ "resource": "" }
c22105
train
// Parses and Returns a RBAC object contained in 'filePath'
{ "resource": "" }
c22106
train
// CreateRBAC creates the RBAC object
{ "resource": "" }
c22107
train
// Parses and Returns a ServiceAccount object contained in 'filePath'
{ "resource": "" }
c22108
train
// CreateServiceAccount creates the ServiceAccount object
{ "resource": "" }
c22109
train
// SendBatch splits the top-level batch into sub-batches if needed. Otherwise, // requests that are too large will be rejected by the Honeycomb API.
{ "resource": "" }
c22110
train
// checkSanitizedMetricName errors out if invalid characters are found in the metric name, since InfluxDB // does not widely support bound parameters yet, and we need to sanitize our inputs.
{ "resource": "" }
c22111
train
// checkSanitizedMetricLabels errors out if invalid characters are found in the label name or label value, since // InfluxDb does not widely support bound parameters yet, and we need to sanitize our inputs.
{ "resource": "" }
c22112
train
// aggregationFunc converts an aggregation name into the equivalent call to an InfluxQL // aggregation function
{ "resource": "" }
c22113
train
// keyToSelector converts a HistoricalKey to an InfluxQL predicate
{ "resource": "" }
c22114
train
// labelsToPredicate composes an InfluxQL predicate based on the given map of labels
{ "resource": "" }
c22115
train
// composeRawQuery creates the InfluxQL query to fetch the given metric values
{ "resource": "" }
c22116
train
// parseRawQueryRow parses a set of timestamped metric values from unstructured JSON output into the // appropriate Heapster form
{ "resource": "" }
c22117
train
// composeAggregateQuery creates the InfluxQL query to fetch the given aggregation values
{ "resource": "" }
c22118
train
// parseRawQueryRow parses a set of timestamped aggregation values from unstructured JSON output into the // appropriate Heapster form
{ "resource": "" }
c22119
train
// setAggregationValueIfPresent checks if the given metric value is present in the list of raw values, and if so, // copies it to the output format
{ "resource": "" }
c22120
train
// tryParseMetricValue attempts to parse a raw metric value into the appropriate go type.
{ "resource": "" }
c22121
train
// GetMetricNames retrieves the available metric names for the given object
{ "resource": "" }
c22122
train
// GetNodes retrieves the list of nodes in the cluster
{ "resource": "" }
c22123
train
// GetNamespaces retrieves the list of namespaces in the cluster
{ "resource": "" }
c22124
train
// GetPodsFromNamespace retrieves the list of pods in a given namespace
{ "resource": "" }
c22125
train
// GetSystemContainersFromNode retrieves the list of free containers for a given node
{ "resource": "" }
c22126
train
// stringListQueryCol runs the given query, and returns all results from the given column as a string list
{ "resource": "" }
c22127
train
// stringListQuery runs the given query, and returns all results from the first column as a string list
{ "resource": "" }
c22128
train
// populateAggregations extracts aggregation values from a given data point
{ "resource": "" }
c22129
train
// setAggregationValueTypes inspects a set of aggregation values and figures out whether each aggregation value // returned as a float column, or an int column
{ "resource": "" }
c22130
train
// Adds the specified metrics or updates them if they already exist.
{ "resource": "" }
c22131
train
// Guarantees that the export will complete in sinkExportDataTimeout.
{ "resource": "" }
c22132
train
// Get stats for all non-Kubernetes containers.
{ "resource": "" }
c22133
train
// InstrumentRouteFunc works like Prometheus' InstrumentHandlerFunc but wraps // the go-restful RouteFunction instead of a HandlerFunc
{ "resource": "" }
c22134
train
// MetricsSet keys are inside of DataBatch. The structure of the returned string is // an implementation detail and no component should rely on it as it may change // anytime. It only guaranteed that it is unique for the unique combination of // passed parameters.
{ "resource": "" }
c22135
train
// Adds UID to all namespaced elements.
{ "resource": "" }
c22136
train
// availableMetrics returns a list of available cluster metric names.
{ "resource": "" }
c22137
train
// availableMetrics returns a list of available node metric names.
{ "resource": "" }
c22138
train
// availableMetrics returns a list of available namespace metric names.
{ "resource": "" }
c22139
train
// parseRequestParam parses a time.Time from a named QueryParam, using the RFC3339 format.
{ "resource": "" }
c22140
train
// Receives a list of riemanngo.Event, the sink, and parameters. // Creates a new event using the parameters and the sink config, and add it into the Event list. // Can send events if events is full // Return the list.
{ "resource": "" }
c22141
train
// ExportData Send a collection of Timeseries to Riemann
{ "resource": "" }
c22142
train
// availableClusterMetrics returns a list of available cluster metric names.
{ "resource": "" }
c22143
train
// availableNodeMetrics returns a list of available node metric names.
{ "resource": "" }
c22144
train
// availableNamespaceMetrics returns a list of available namespace metric names.
{ "resource": "" }
c22145
train
// availablePodMetrics returns a list of available pod metric names.
{ "resource": "" }
c22146
train
// availablePodContainerMetrics returns a list of available pod container metric names.
{ "resource": "" }
c22147
train
// availableFreeContainerMetrics returns a list of available pod metric names.
{ "resource": "" }
c22148
train
// nodeList lists all nodes for which we have metrics
{ "resource": "" }
c22149
train
// namespaceList lists all namespaces for which we have metrics
{ "resource": "" }
c22150
train
// namespacePodList lists all pods for which we have metrics in a particular namespace
{ "resource": "" }
c22151
train
// freeContainerMetrics returns a metric timeseries for a metric of the Container entity. // freeContainerMetrics addresses only free containers.
{ "resource": "" }
c22152
train
// podListMetrics returns a list of metric timeseries for each for the listed nodes
{ "resource": "" }
c22153
train
// clusterAggregations returns a metric timeseries for a metric of the Cluster entity.
{ "resource": "" }
c22154
train
// nodeAggregations returns a metric timeseries for a metric of the Node entity.
{ "resource": "" }
c22155
train
// namespaceAggregations returns a metric timeseries for a metric of the Namespace entity.
{ "resource": "" }
c22156
train
// podContainerAggregations returns a metric timeseries for a metric of a Pod Container entity.
{ "resource": "" }
c22157
train
// freeContainerAggregations returns a metric timeseries for a metric of the Container entity. // freeContainerAggregations addresses only free containers.
{ "resource": "" }
c22158
train
// podListAggregations returns a list of metric timeseries for the specified pods.
{ "resource": "" }
c22159
train
// processMetricRequest retrieves a metric for the object at the requested key.
{ "resource": "" }
c22160
train
// processMetricNamesRequest retrieves the available metrics for the object at the specified key.
{ "resource": "" }
c22161
train
// getBucketSize parses the bucket size specifier into a
{ "resource": "" }
c22162
train
// getAggregations extracts and validates the list of requested aggregations
{ "resource": "" }
c22163
train
// exportMetricValue converts a core.MetricValue into an API MetricValue
{ "resource": "" }
c22164
train
// extractMetricValue checks to see if the given metric was present in the results, and if so, // returns it in API form
{ "resource": "" }
c22165
train
// exportTimestampedAggregationValue converts a core.TimestampedAggregationValue into an API MetricAggregationResult
{ "resource": "" }
c22166
train
// decodeSummary translates the kubelet statsSummary API into the flattened heapster MetricSet API.
{ "resource": "" }
c22167
train
// Convenience method for labels deep copy.
{ "resource": "" }
c22168
train
// addIntMetric is a convenience method for adding the metric and value to the metric set.
{ "resource": "" }
c22169
train
// addLabeledIntMetric is a convenience method for adding the labeled metric and value to the metric set.
{ "resource": "" }
c22170
train
// Translate system container names to the legacy names for backwards compatibility.
{ "resource": "" }
c22171
train
// Receives a sink, connect the riemann client.
{ "resource": "" }
c22172
train
// Send Events to Riemann using the client from the sink.
{ "resource": "" }
c22173
train
// Guarantees that the export will complete in exportEventsTimeout.
{ "resource": "" }
c22174
train
// cache inserts the item to the cache
{ "resource": "" }
c22175
train
// toCache inserts the item and updates the TTL in the cache to current time
{ "resource": "" }
c22176
train
// checkCache returns false if the cached instance is not current. Updates the TTL in the cache
{ "resource": "" }
c22177
train
// expireCache will process the map and check for any item that has been expired and release it
{ "resource": "" }
c22178
train
// Fetches definitions from the server and checks that they're matching the descriptors
{ "resource": "" }
c22179
train
// Checks that stored definition is up to date with the model
{ "resource": "" }
c22180
train
// Transform the MetricDescriptor to a format used by Hawkular-Metrics
{ "resource": "" }
c22181
train
// Converts Timeseries to metric structure used by the Hawkular
{ "resource": "" }
c22182
train
// If Heapster gets filters, remove these..
{ "resource": "" }
c22183
train
// This program just shows simple mouse and keyboard events. Press ESC twice to // exit.
{ "resource": "" }
c22184
train
// Fill fills the displayed view port with the given character and style.
{ "resource": "" }
c22185
train
// Reset resets the record of content, and also resets the offset back // to the origin. It doesn't alter the dimensions of the view port, nor // the physical location relative to its parent.
{ "resource": "" }
c22186
train
// MakeVisible moves the ViewPort the minimum necessary to make the given // point visible. This should be called before any content is changed with // SetContent, since otherwise it may be possible to move the location onto // a region whose contents have been discarded.
{ "resource": "" }
c22187
train
// ValidateViewY ensures that the Y offset of the view port is limited so that // it cannot scroll away from the content.
{ "resource": "" }
c22188
train
// ValidateViewX ensures that the X offset of the view port is limited so that // it cannot scroll away from the content.
{ "resource": "" }
c22189
train
// Center centers the point, if possible, in the View.
{ "resource": "" }
c22190
train
// ScrollUp moves the view up, showing lower numbered rows of content.
{ "resource": "" }
c22191
train
// ScrollDown moves the view down, showingh higher numbered rows of content.
{ "resource": "" }
c22192
train
// ScrollLeft moves the view to the left.
{ "resource": "" }
c22193
train
// ScrollRight moves the view to the left.
{ "resource": "" }
c22194
train
// SetSize is used to set the visible size of the view. Enclosing views or // layout managers can use this to inform the View of its correct visible size.
{ "resource": "" }
c22195
train
// GetVisible returns the upper left and lower right coordinates of the visible // content. That is, it will return x1, y1, x2, y2 where the upper left cell // is position x1, y1, and the lower right is x2, y2. These coordinates are // in the space of the content, that is the content area uses coordinate 0,0 // as it...
{ "resource": "" }
c22196
train
// GetPhysical returns the upper left and lower right coordinates of the visible // content in the coordinate space of the parent. This is may be the physical // coordinates of the screen, if the screen is the view's parent.
{ "resource": "" }
c22197
train
// Resize is called by the enclosing view to change the size of the ViewPort, // usually in response to a window resize event. The x, y refer are the // ViewPort's location relative to the parent View. A negative value for either // width or height will cause the ViewPort to expand to fill to the end of parent // Vie...
{ "resource": "" }
c22198
train
// SetCenter sets the center text for the textbar. The text is // always center aligned.
{ "resource": "" }
c22199
train
// SetStyle is used to set a default style to use for the textbar, including // areas where no text is present. Note that this will not change the text // already displayed, so call this before changing or setting text.
{ "resource": "" }