text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func AddNetworkPolicyEventClient(contextName string, namespace string, client chan NetworkPolicyEvent) error {
// Get the receiver or create it
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
clientset, err := context.GetClientset(contextName)
if err != nil {
return err
}
metrics, err := cont... | [
0.9447483420372009,
-0.13526660203933716,
0.6859608292579651,
-1.182988166809082,
0.2913249731063843,
0.15875746309757233,
-0.25639960169792175,
-0.15148328244686127,
1.15655517578125,
-0.08047045022249222,
-0.16910018026828766,
0.22978626191616058,
-0.8458893299102783,
0.4798378348350525,... |
func RemoveNetworkPolicyEventClient(contextName string, namespace string, client chan NetworkPolicyEvent) {
// Get the context receiver
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
return
}
// Get the namespace receiver
nsReceiver, ok := ctxReceiver.namespaceReceivers[namespace]
if !ok {
retur... | [
1.0358974933624268,
-0.8343874216079712,
0.44028517603874207,
-1.3307392597198486,
-0.3895989954471588,
0.1303020864725113,
0.02966105192899704,
0.031771428883075714,
0.7162883281707764,
0.7226662635803223,
-0.29632049798965454,
0.07618246972560883,
-1.2781486511230469,
0.37578701972961426... |
func GetRoles(contextName string, namespace string) []rbacv1.Role {
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
return nil
}
nsReceiver, ok := ctxReceiver.namespaceReceivers[namespace]
if !ok {
return nil
}
receiver := nsReceiver.roleEventReceiver
if receiver == nil {
return nil
}
retu... | [
0.648467481136322,
0.1799812614917755,
0.6383447647094727,
-0.06039842218160629,
1.022163987159729,
-0.8744075298309326,
-0.8244581818580627,
-0.839783787727356,
1.6495413780212402,
-0.09383473545312881,
0.1806272268295288,
0.5371654629707336,
-0.7542927861213684,
0.5937069058418274,
0.2... |
func AddRoleEventClient(contextName string, namespace string, client chan RoleEvent) error {
// Get the receiver or create it
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
clientset, err := context.GetClientset(contextName)
if err != nil {
return err
}
metrics, err := context.GetMetrics(con... | [
0.3847987949848175,
-0.43161121010780334,
0.9655956625938416,
-1.3440284729003906,
0.6477478742599487,
-0.2668492794036865,
0.08835817873477936,
0.33754613995552063,
1.1123325824737549,
-0.2413395345211029,
-0.013325778767466545,
0.3064401149749756,
-0.6850464344024658,
0.00027630047407001... |
func RemoveRoleEventClient(contextName string, namespace string, client chan RoleEvent) {
// Get the context receiver
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
return
}
// Get the namespace receiver
nsReceiver, ok := ctxReceiver.namespaceReceivers[namespace]
if !ok {
return
}
// Get the ... | [
0.3981005847454071,
-1.302035927772522,
0.7785842418670654,
-1.3235368728637695,
-0.17115654051303864,
-0.36321166157722473,
0.36084336042404175,
0.6834670305252075,
0.7898610234260559,
0.5354737639427185,
-0.17128652334213257,
0.41337132453918457,
-1.112278938293457,
-0.12167682498693466,... |
func GetRoleBindings(contextName string, namespace string) []rbacv1.RoleBinding {
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
return nil
}
nsReceiver, ok := ctxReceiver.namespaceReceivers[namespace]
if !ok {
return nil
}
receiver := nsReceiver.roleBindingEventReceiver
if receiver == nil {
... | [
-0.06149968504905701,
0.09658109396696091,
0.8026537895202637,
0.5608904957771301,
0.6583116054534912,
-0.6773464679718018,
-0.6611462831497192,
-0.6879238486289978,
1.705798625946045,
0.5245972871780396,
-0.440550297498703,
0.5033444762229919,
-1.0196001529693604,
0.7143259048461914,
0.... |
func AddRoleBindingEventClient(contextName string, namespace string, client chan RoleBindingEvent) error {
// Get the receiver or create it
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
clientset, err := context.GetClientset(contextName)
if err != nil {
return err
}
metrics, err := context.... | [
0.3038620352745056,
-0.419598251581192,
0.9575512409210205,
-0.7450269460678101,
0.5583852529525757,
0.14953435957431793,
-0.08526726067066193,
0.25411856174468994,
0.9159864783287048,
0.030472999438643456,
-0.12289416790008545,
0.46009355783462524,
-0.8489475250244141,
0.09825241565704346... |
func RemoveRoleBindingEventClient(contextName string, namespace string, client chan RoleBindingEvent) {
// Get the context receiver
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
return
}
// Get the namespace receiver
nsReceiver, ok := ctxReceiver.namespaceReceivers[namespace]
if !ok {
return
}... | [
0.36663249135017395,
-1.0395411252975464,
0.6079075932502747,
-0.7540766596794128,
-0.30116990208625793,
0.24778048694133759,
0.14181189239025116,
0.5474832653999329,
0.5965749025344849,
0.8201749324798584,
-0.2536701560020447,
0.5872392654418945,
-1.2601823806762695,
-0.06909576803445816,... |
func GetJobs(contextName string, namespace string) []batchv1.Job {
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
return nil
}
nsReceiver, ok := ctxReceiver.namespaceReceivers[namespace]
if !ok {
return nil
}
receiver := nsReceiver.jobEventReceiver
if receiver == nil {
return nil
}
return... | [
0.46256154775619507,
0.38779112696647644,
0.7221007943153381,
0.27653875946998596,
0.3326781690120697,
-0.6530863642692566,
-1.1947489976882935,
-0.6507503390312195,
1.2500910758972168,
-0.6354128122329712,
0.04706578701734543,
0.27556464076042175,
-0.7808716297149658,
0.13770924508571625,... |
func AddJobEventClient(contextName string, namespace string, client chan JobEvent) error {
// Get the receiver or create it
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
clientset, err := context.GetClientset(contextName)
if err != nil {
return err
}
metrics, err := context.GetMetrics(conte... | [
0.4513004720211029,
-0.09899943321943283,
0.9164595603942871,
-0.7118493914604187,
0.22643110156059265,
-0.050984472036361694,
-0.2953871786594391,
0.3420697748661041,
0.6338569521903992,
-0.4691006541252136,
-0.09149730205535889,
0.3940816819667816,
-0.6054615378379822,
0.1737036406993866... |
func RemoveJobEventClient(contextName string, namespace string, client chan JobEvent) {
// Get the context receiver
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
return
}
// Get the namespace receiver
nsReceiver, ok := ctxReceiver.namespaceReceivers[namespace]
if !ok {
return
}
// Get the re... | [
0.5253363251686096,
-0.9586414694786072,
0.7463712096214294,
-0.7228901386260986,
-0.5034241080284119,
-0.1478179693222046,
-0.03522412106394768,
0.6579740047454834,
0.3705350458621979,
0.22711606323719025,
-0.3236217498779297,
0.5003170371055603,
-0.9936493635177612,
0.1129731684923172,
... |
func GetCronJobs(contextName string, namespace string) []batchv1beta1.CronJob {
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
return nil
}
nsReceiver, ok := ctxReceiver.namespaceReceivers[namespace]
if !ok {
return nil
}
receiver := nsReceiver.cronJobEventReceiver
if receiver == nil {
retur... | [
0.6074277758598328,
-0.16145868599414825,
0.552610456943512,
0.8543945550918579,
0.2966667711734772,
-0.5359630584716797,
-0.7655864357948303,
-0.5899076461791992,
0.6945645213127136,
-0.0917816236615181,
-0.5144715905189514,
0.2985386550426483,
-1.6308597326278687,
-0.10870707035064697,
... |
func AddCronJobEventClient(contextName string, namespace string, client chan CronJobEvent) error {
// Get the receiver or create it
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
clientset, err := context.GetClientset(contextName)
if err != nil {
return err
}
metrics, err := context.GetMetri... | [
0.8074489831924438,
-0.40912380814552307,
0.7053775787353516,
-0.708274781703949,
0.31888654828071594,
0.04880706965923309,
-0.23935896158218384,
0.4450475573539734,
0.49399396777153015,
-0.40657395124435425,
0.008807908743619919,
0.4187433123588562,
-1.0458935499191284,
0.0781882777810096... |
func RemoveCronJobEventClient(contextName string, namespace string, client chan CronJobEvent) {
// Get the context receiver
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
return
}
// Get the namespace receiver
nsReceiver, ok := ctxReceiver.namespaceReceivers[namespace]
if !ok {
return
}
// Ge... | [
0.8964229226112366,
-1.1826103925704956,
0.45602360367774963,
-0.6263940930366516,
-0.46405163407325745,
-0.12111211568117142,
0.10207222402095795,
0.8228626847267151,
0.24710595607757568,
0.24307553470134735,
-0.09525009989738464,
0.4375109374523163,
-1.4291681051254272,
0.125259011983871... |
func GetPodMetricses(contextName string, namespace string) []metricsv1beta1.PodMetrics {
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
return nil
}
nsReceiver, ok := ctxReceiver.namespaceReceivers[namespace]
if !ok {
return nil
}
receiver := nsReceiver.podMetricsEventReceiver
if receiver == n... | [
-0.30387282371520996,
0.18133318424224854,
0.7310701012611389,
-0.0788755714893341,
0.33707574009895325,
-0.29863062500953674,
-0.9929787516593933,
-1.2227678298950195,
0.6638920903205872,
0.4153505563735962,
0.24146397411823273,
0.4347183108329773,
-1.1371263265609741,
-0.2597741782665252... |
func AddPodMetricsEventClient(contextName string, namespace string, client chan PodMetricsEvent) error {
// Get the receiver or create it
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
clientset, err := context.GetClientset(contextName)
if err != nil {
return err
}
metrics, err := context.Ge... | [
0.3300274908542633,
0.13447077572345734,
0.8435196280479431,
-0.8335638642311096,
0.2900325655937195,
-0.08449172973632812,
-0.31134316325187683,
-0.42223936319351196,
0.37502196431159973,
-0.3075200021266937,
0.12470122426748276,
0.18920308351516724,
-0.742996871471405,
-0.491435796022415... |
func RemovePodMetricsEventClient(contextName string, namespace string, client chan PodMetricsEvent) {
// Get the context receiver
ctxReceiver, ok := contextReceivers[contextName]
if !ok {
return
}
// Get the namespace receiver
nsReceiver, ok := ctxReceiver.namespaceReceivers[namespace]
if !ok {
return
}
... | [
0.4393743872642517,
-0.4774026870727539,
0.5506548285484314,
-0.6838573813438416,
-0.3100282847881317,
-0.21202459931373596,
-0.04575248435139656,
-0.1113540381193161,
0.07412883639335632,
0.38757196068763733,
0.10801718384027481,
0.24473293125629425,
-1.1538331508636475,
-0.76189398765563... |
func NewExponentialBackOff(o Option) BackOff {
b := ExponentialBackOff{}
b.exponentialBackOff = backoff.NewExponentialBackOff()
b.exponentialBackOff.InitialInterval = o.InitialInterval
b.exponentialBackOff.MaxInterval = o.MaxInterval
b.Reset()
return b
} | [
0.6872739195823669,
-0.5805408954620361,
0.3967742919921875,
-0.14609888195991516,
-1.3571373224258423,
-0.055877912789583206,
0.016990482807159424,
0.16567456722259521,
0.2980988025665283,
0.6223424673080444,
-0.35414329171180725,
-0.21857674419879913,
-0.5825366377830505,
-0.733566641807... |
func (b ExponentialBackOff) RetryWithContext(ctx context.Context, operation func() error) error {
b.Reset()
for {
err := operation()
if err == nil {
return nil
}
next := b.NextBackOff()
select {
case <-ctx.Done():
return fmt.Errorf("%v with last error: %v", context.DeadlineExceeded, err)
case <-ti... | [
0.37220028042793274,
0.5652658343315125,
0.6311479210853577,
-0.24868030846118927,
-0.782862663269043,
-0.30020302534103394,
-0.6583554148674011,
-1.2915452718734741,
0.30967646837234497,
0.8876915574073792,
-0.2621590495109558,
-0.11339934170246124,
-0.24528846144676208,
-0.88126116991043... |
func NewServerMonitor(ws *websocket.Conn, userID string) *ServerMonitor {
return &ServerMonitor{
ws: ws,
userID: userID,
}
} | [
0.15173792839050293,
-0.610255241394043,
-0.012402264401316643,
0.2532414495944977,
-1.2442820072174072,
-0.41580748558044434,
-0.6963112354278564,
-0.05523098632693291,
0.9252465963363647,
0.3687990605831146,
-1.6003021001815796,
1.1905455589294434,
-0.8565347194671631,
1.6107425689697266... |
func (m *ServerMonitor) SendMetrics(tasks *demand.Tasks) (err error) {
err = api.SendMetrics(m.ws, m.userID, tasks)
return
} | [
-0.9223679304122925,
1.2410951852798462,
0.19091425836086273,
1.0985312461853027,
-0.6178672313690186,
1.0825273990631104,
0.8271726965904236,
-1.1472578048706055,
-0.38957470655441284,
0.3816952109336853,
-0.12390714138746262,
0.7732693552970886,
-0.34072864055633545,
1.3507674932479858,
... |
func GenerateRoutes(ws *restful.WebService, descriptors []Descriptor) *restful.WebService {
// generate parameters from params and add them in builder
var generateParameters = func(method func(string, string) *restful.Parameter,
builder *restful.RouteBuilder,
params []Param) {
for _, param := range params {
... | [
-0.24005939066410065,
0.22870847582817078,
0.8915263414382935,
-0.29963186383247375,
0.3096824884414673,
-0.2387145757675171,
-0.39385995268821716,
0.19694267213344574,
-0.3873538076877594,
-0.19304992258548737,
0.28176349401474,
0.2575940191745758,
0.2754916250705719,
0.9747793078422546,
... |
func (app *App) Home(w http.ResponseWriter, r *http.Request) {
// Fetch a slice of the latest snippets from the database.
snippets, err := app.Database.LatestSnippets()
if err != nil {
app.ServerError(w, err)
return
}
// Pass the slice of snippets to the "home.page.html" templates.
app.RenderHTML(w, r, "home.... | [
0.493686318397522,
0.40413427352905273,
0.4377557337284088,
0.7935038805007935,
0.21871820092201233,
0.2948414981365204,
0.028635187074542046,
0.7943848967552185,
0.46025213599205017,
1.4332153797149658,
0.665554404258728,
0.3678092658519745,
-0.263580322265625,
0.4426494538784027,
-0.95... |
func (app *App) ShowSnippet(w http.ResponseWriter, r *http.Request) {
// Pat doesn't strip the colon from the named capture key, so we need to
// get the value of ":id" from the query string instead of "id".
id, err := strconv.Atoi(r.URL.Query().Get(":id"))
if err != nil || id < 1 {
app.NotFound(w) // Use the app... | [
0.3846627175807953,
0.4793541729450226,
0.5432068705558777,
-0.02306128665804863,
-0.5054479241371155,
-0.5480663180351257,
0.00004568400254356675,
0.6235981583595276,
0.893912136554718,
0.8916942477226257,
0.7051329612731934,
-0.20859570801258087,
0.12325909733772278,
0.24235424399375916,... |
func FindMatchingKnocks() {
for key1, knock1 := range recvdKnocks.Knocks {
for key2, knock2 := range recvdKnocks.Knocks {
if knock1 != knock2 && knock1.Id != knock2.Id {
t1 := knock1.TimeSend
t2 := knock2.TimeSend
delaybetweenKnocks := time.Duration(time.Second)
if t1.Before(t2) {
delaybetwee... | [
-0.4904157817363739,
0.12901519238948822,
1.0222464799880981,
0.25852254033088684,
-0.27084431052207947,
0.04902869090437889,
0.553796648979187,
-0.47720712423324585,
-0.4009482264518738,
0.10409826785326004,
-0.29533493518829346,
-0.3413968086242676,
-0.2689130902290344,
1.310079455375671... |
func NewHTTPService(config HTTPConfig) (*HTTPService, error) {
var store = sessions.NewCookieStore([]byte(os.Getenv("T_SESSION_KEY")))
store.MaxAge(300)
s := &HTTPService{
Server: &http.Server{},
HTTPConfig: config,
errch: make(chan error, 1),
sigch: make(chan os.Signal, 1),
ucs: &UserCounte... | [
-0.04709726944565773,
-0.20996199548244476,
0.4566052258014679,
0.4112277328968048,
-1.1266765594482422,
0.5379533767700195,
0.16600564122200012,
-0.8035179972648621,
0.12562955915927887,
0.07318578660488129,
-0.6327420473098755,
0.3841487169265747,
-0.4906559884548187,
0.7248705625534058,... |
func (s *HTTPService) Run(ctx context.Context) error {
signal.Notify(s.sigch, syscall.SIGINT, syscall.SIGTERM)
l, err := net.Listen("tcp", fmt.Sprintf("%s:%d", s.HTTPConfig.Host, s.HTTPConfig.Port))
if err != nil {
return errors.Wrap(err, "creating tcp listener")
}
go func() {
logrus.
WithField("addr", l.... | [
-0.5800540447235107,
-0.49098140001296997,
0.6095514297485352,
0.10764739662408829,
0.014887923374772072,
0.3197062909603119,
-0.0768243819475174,
-0.20459525287151337,
-0.44328248500823975,
0.473339706659317,
-0.08084099739789963,
0.16836300492286682,
-0.656277596950531,
0.700865149497985... |
func (s *HTTPService) countUsers(w http.ResponseWriter, r *http.Request, params httprouter.Params) {
logrus.Info(r.RemoteAddr)
session, err := s.ucs.store.Get(r, "__token")
if err != nil {
if err.Error() == errTimestampExpired.Error() {
s.ucs.updateStore(w, r)
return
}
logrus.Error(err, ": cannot create... | [
-0.5645983815193176,
-0.7819734811782837,
0.4971323013305664,
-0.40576156973838806,
-0.15579968690872192,
0.31710973381996155,
0.634756863117218,
0.2788870334625244,
0.6060870289802551,
0.7486628293991089,
-0.326590895652771,
0.7408663034439087,
0.044873714447021484,
-0.2311984747648239,
... |
func Run(f func(ctx context.Context, log *zap.Logger) error) {
log, err := zap.NewDevelopment()
if err != nil {
panic(err)
}
defer func() { _ = log.Sync() }()
// No graceful shutdown.
ctx := context.Background()
if err := f(ctx, log); err != nil {
log.Fatal("Run failed", zap.Error(err))
}
// Done.
} | [
-0.024169350042939186,
0.5753799080848694,
0.6425822973251343,
0.9504310488700867,
-0.04470314085483551,
0.42895880341529846,
1.1695959568023682,
-0.9441771507263184,
-0.24672695994377136,
0.1062365248799324,
-0.585621178150177,
-0.008877006359398365,
0.42884621024131775,
-0.04124204069375... |
func NewPercentiles(label string, values []float64) *Percentiles {
values = append(values[:0:0], values...)
sort.Float64s(values)
points := make([]Point, 0, len(values))
multiplier := 1 / float64(len(values)+1)
for i, v := range values {
var p Point
p.X = float64(i+1) * multiplier
p.Y = v
points = append... | [
0.1519911140203476,
0.2710082232952118,
0.4143308401107788,
0.3074054718017578,
-0.7906251549720764,
0.23195083439350128,
-0.33173975348472595,
-0.5396611094474792,
-0.42591601610183716,
0.09964825212955475,
0.5032873153686523,
-0.14645369350910187,
-0.8988211750984192,
0.2908286154270172,... |
func (line *Percentiles) Stats() Stats {
return PointsStats(line.Data)
} | [
0.8088197708129883,
-0.2809666693210602,
0.08530941605567932,
-0.7741845846176147,
0.8618742227554321,
0.2273567169904709,
-0.43221983313560486,
-0.894265353679657,
0.3991456627845764,
-1.0776113271713257,
0.7835602164268494,
-0.5166058540344238,
0.40978240966796875,
-0.17648212611675262,
... |
func (line *Percentiles) Draw(plot *Plot, canvas Canvas) {
canvas = canvas.Clip(canvas.Bounds())
points := make([]Point, 0, len(line.Data))
lastScreenX := math.Inf(-1)
projectcb(line.Data, plot.X, plot.Y, canvas.Bounds(), func(p Point) {
if math.Abs(lastScreenX-p.X) > 0.5 {
points = append(points, p)
lastS... | [
0.898810088634491,
0.5393632650375366,
0.5732849836349487,
-0.2409224808216095,
0.06636218726634979,
1.5111976861953735,
0.09618658572435379,
-0.8320592641830444,
0.08994223922491074,
-0.3093703091144562,
0.9987695813179016,
0.19800931215286255,
-0.23927175998687744,
0.10833834856748581,
... |
func NewPercentileTransform(levels int) *PercentileTransform {
base := math.Pow(0.1, float64(levels))
return &PercentileTransform{
levels: levels,
base: base,
mulbase: 1 / math.Log(base),
}
} | [
-0.1288498491048813,
-0.32619160413742065,
0.4506162703037262,
-0.5039389133453369,
-1.1925569772720337,
-0.6534246802330017,
-0.39467352628707886,
-0.859653115272522,
0.11844836920499802,
-0.33994218707084656,
-0.4132902920246124,
-0.8860216736793518,
-1.7210540771484375,
-0.4642970561981... |
func (tx *PercentileTransform) transform(v float64) float64 {
return math.Log(1-v) * tx.mulbase
} | [
0.028476642444729805,
0.43482619524002075,
0.184542715549469,
-0.321560263633728,
-0.3305544853210449,
-0.16505247354507446,
0.4610639214515686,
-0.7630677819252014,
0.4526940584182739,
-0.017564499750733376,
-0.17739234864711761,
-0.8341622948646545,
-1.1816234588623047,
-0.34012573957443... |
func (tx *PercentileTransform) inverse(v float64) float64 {
return 1 - math.Pow(tx.base, v)
} | [
-0.05869486182928085,
-0.03521617874503136,
0.39211395382881165,
-0.6472059488296509,
-0.7626736164093018,
0.4995788037776947,
-0.08097191154956818,
0.3073907196521759,
-1.048003077507019,
-0.13132821023464203,
-0.46432197093963623,
-0.8821988105773926,
-1.4929885864257812,
-0.900052607059... |
func (tx *PercentileTransform) ToCanvas(axis *Axis, v float64, screenMin, screenMax Length) Length {
v = tx.transform(v)
low, high := axis.lowhigh()
n := (v - low) / (high - low)
r := screenMin + n*(screenMax-screenMin)
// when v == 0, we do not want to return an infinity
if r > screenMax {
return screenMax
}... | [
0.12081493437290192,
0.1520826518535614,
0.6081528663635254,
-0.5005621314048767,
-0.3882743716239929,
-0.23206110298633575,
0.44890615344047546,
-1.4894697666168213,
0.8419247269630432,
0.05282251909375191,
0.2100057303905487,
0.2814562916755676,
-0.15356142818927765,
-0.41129156947135925... |
func (tx *PercentileTransform) FromCanvas(axis *Axis, s Length, screenMin, screenMax Length) float64 {
low, high := axis.lowhigh()
n := (s - screenMin) / (screenMax - screenMin)
v := low + n*(high-low)
return tx.inverse(v)
} | [
0.5961166024208069,
0.21730922162532806,
0.477547824382782,
-0.34215787053108215,
-0.9436202049255371,
-0.2979758083820343,
-0.02644791454076767,
-1.2874765396118164,
0.14303940534591675,
-0.5796047449111938,
-0.4979998767375946,
0.09391741454601288,
-0.45582443475723267,
-1.07523965835571... |
func NewPercentilesAxis() *Axis {
axis := NewAxis()
axis.Transform = NewPercentileTransform(5)
axis.Ticks = ManualTicks{
{Value: 0, Label: "0"},
{Value: 0.25, Label: "25"},
{Value: 0.5, Label: "50"},
{Value: 0.75, Label: "75"},
{Value: 0.9, Label: "90"},
{Value: 0.99, Label: "99"},
{Value: 0.999, Label... | [
0.7204509377479553,
-0.3246820867061615,
0.5406370759010315,
-0.7164228558540344,
-1.119504690170288,
-0.08270197361707687,
0.9133004546165466,
-0.7234693169593811,
-0.13811539113521576,
-0.24186855554580688,
-0.10289894789457321,
0.20225588977336884,
-0.47764644026756287,
-0.2212993204593... |
func (h *PortRuleHTTP) Exists(rules L7Rules) bool {
for _, existingRule := range rules.HTTP {
if h.Equal(existingRule) {
return true
}
}
return false
} | [
-0.4730565845966339,
-0.28045734763145447,
0.44520503282546997,
-0.4864402413368225,
1.7218009233474731,
0.97491055727005,
-0.9947969317436218,
0.18102207779884338,
-0.9999670386314392,
0.759731113910675,
0.4835543930530548,
0.1635928899049759,
-0.7386572360992432,
0.6085518002510071,
-0... |
func (h *PortRuleHTTP) Equal(o PortRuleHTTP) bool {
if h.Path != o.Path ||
h.Method != o.Method ||
h.Host != o.Host ||
len(h.Headers) != len(o.Headers) ||
len(h.HeaderMatches) != len(o.HeaderMatches) {
return false
}
for i, value := range h.Headers {
if o.Headers[i] != value {
return false
}
}
f... | [
-0.37343379855155945,
-0.20554588735103607,
0.6659537553787231,
-0.15019181370735168,
0.6848500370979309,
0.9838868379592896,
0.149932399392128,
-0.38060304522514343,
-1.275417685508728,
0.849694550037384,
-0.41559091210365295,
-0.2983933389186859,
-0.9635549187660217,
0.2328939586877823,
... |
func (a *Secret) Equal(b *Secret) bool {
return a == nil && b == nil || a != nil && b != nil && *a == *b
} | [
-0.06380210816860199,
-0.4454900324344635,
0.4227186441421509,
0.5305560827255249,
1.1175013780593872,
-0.48731812834739685,
-0.8653033375740051,
0.031778279691934586,
-0.06062041223049164,
1.0833944082260132,
-0.9571292996406555,
0.673275887966156,
-0.28843066096305847,
1.0143760442733765... |
func (h *HeaderMatch) Equal(o *HeaderMatch) bool {
if h.Mismatch != o.Mismatch ||
h.Name != o.Name ||
h.Value != o.Value ||
!h.Secret.Equal(o.Secret) {
return false
}
return true
} | [
-0.46941128373146057,
-0.5647958517074585,
0.5886529088020325,
0.9740912914276123,
0.10044930875301361,
0.6946732997894287,
-0.29858264327049255,
-0.6868531107902527,
-0.861664354801178,
0.43826255202293396,
-1.363133192062378,
-0.20978201925754547,
-0.7047005891799927,
-0.1760864704847335... |
func (d *PortRuleDNS) Exists(rules L7Rules) bool {
for _, existingRule := range rules.DNS {
if d.Equal(existingRule) {
return true
}
}
return false
} | [
-0.6398048400878906,
0.447890967130661,
0.37687838077545166,
-0.8902879953384399,
1.3678568601608276,
0.40740424394607544,
-1.114091157913208,
0.05197283998131752,
0.11947415769100189,
0.4388082027435303,
-0.09613155573606491,
0.37510499358177185,
0.13614718616008759,
0.24388590455055237,
... |
func (h *PortRuleL7) Exists(rules L7Rules) bool {
for _, existingRule := range rules.L7 {
if h.Equal(existingRule) {
return true
}
}
return false
} | [
0.07888562232255936,
-0.22794605791568756,
0.50197833776474,
-0.7997967600822449,
1.4804095029830933,
0.7903773784637451,
-1.2231029272079468,
0.5100710391998291,
-0.811339795589447,
0.7676534056663513,
0.3007381558418274,
0.2468557208776474,
-0.45116662979125977,
0.4886564314365387,
-0.... |
func (d *PortRuleDNS) Equal(o PortRuleDNS) bool {
return d != nil && d.MatchName == o.MatchName && d.MatchPattern == o.MatchPattern
} | [
-0.023634251207113266,
0.15479610860347748,
0.47792866826057434,
-1.0456769466400146,
0.6429590582847595,
0.6086549758911133,
0.1118798479437828,
-0.026546504348516464,
0.4220844805240631,
0.21184517443180084,
-0.9111229181289673,
0.6206692457199097,
0.1242126077413559,
-0.3222178816795349... |
func (h *PortRuleL7) Equal(o PortRuleL7) bool {
if len(*h) != len(o) {
return false
}
for k, v := range *h {
if v2, ok := o[k]; !ok || v2 != v {
return false
}
}
return true
} | [
0.4108869135379791,
0.04578038305044174,
0.5008676052093506,
-0.0534522607922554,
0.4239198863506317,
1.0278104543685913,
-0.45550352334976196,
-0.05814635008573532,
-0.8057029843330383,
1.6529690027236938,
-0.4708220660686493,
0.48444318771362305,
-0.5291085243225098,
0.21215839684009552,... |
func (l4 L4Proto) Validate() error {
switch l4 {
case ProtoAny, ProtoTCP, ProtoUDP, ProtoSCTP:
default:
return fmt.Errorf("invalid protocol %q, must be { tcp | udp | sctp | any }", l4)
}
return nil
} | [
0.25093644857406616,
-0.00613753404468298,
0.4197053611278534,
-0.12817995250225067,
0.2302461862564087,
0.786125898361206,
-0.8518359065055847,
-0.23582154512405396,
-0.597822904586792,
-0.32969924807548523,
-0.029719805344939232,
-0.4721894860267639,
-1.5647284984588623,
0.45366644859313... |
func ParseL4Proto(proto string) (L4Proto, error) {
if proto == "" {
return ProtoAny, nil
}
p := L4Proto(strings.ToUpper(proto))
return p, p.Validate()
} | [
-0.228465735912323,
-0.9747312664985657,
0.4366491734981537,
0.2681921720504761,
-0.8876549005508423,
-0.026478014886379242,
-0.7411813735961914,
-0.057333387434482574,
-0.2712274491786957,
0.30735746026039124,
-0.9607254266738892,
-1.0379911661148071,
-0.8152357339859009,
0.17183071374893... |
func SendEmailNotification(email string, notification *arn.PushNotification) error {
m := gomail.NewMessage()
m.SetHeader("From", arn.APIKeys.SMTP.Address)
m.SetHeader("To", email)
m.SetHeader("Subject", notification.Title)
m.SetBody("text/html", "<h2>"+notification.Message+"</h2><p><a href='"+notification.Link+"'... | [
-0.4358322322368622,
0.8985834121704102,
0.5938454270362854,
-0.5187674760818481,
-0.359648734331131,
-0.6128476858139038,
-0.9058499336242676,
0.9568320512771606,
-0.3754323422908783,
0.6114905476570129,
-0.5303202867507935,
0.7808318138122559,
0.3139043152332306,
-0.23852583765983582,
... |
func next(movingObjects []Circle, fixedObjects []Line) []Circle {
previousMovingObjects := make([]Circle, len(movingObjects))
copy(previousMovingObjects, movingObjects)
for i := range movingObjects {
movingObjects[i].Velocity.Y = movingObjects[i].Velocity.Y - 0.1*deltaT.Seconds()
movingObjects[i].Position.Y = mo... | [
0.17648009955883026,
-0.5694152116775513,
1.0517902374267578,
0.48776254057884216,
-0.1547236442565918,
0.03812330961227417,
0.5750294327735901,
-0.7079543471336365,
-0.5065537691116333,
0.8540611863136292,
-0.12387514859437943,
-0.4854810833930969,
0.3694379925727844,
0.040196552872657776... |
func IsNumber(n int) bool {
noDigits := int(math.Log10(float64(n)) + 1)
var sum float64
for nPrime := n; nPrime > 0; {
digit := nPrime % 10
nPrime /= 10
sum += math.Pow(float64(digit), float64(noDigits))
}
return n == int(sum)
} | [
-0.11248048394918442,
0.7249208092689514,
0.5922065377235413,
0.23801220953464508,
0.395996630191803,
-0.4193017780780792,
0.3196050822734833,
-0.1896202117204666,
1.17008638381958,
-0.5440775156021118,
-0.8845527768135071,
0.0799059122800827,
0.13876505196094513,
0.7719976902008057,
-0.... |
func NewMaintenanceWindow(ctx *pulumi.Context,
name string, args *MaintenanceWindowArgs, opts ...pulumi.ResourceOption) (*MaintenanceWindow, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.AllowUnassociatedTargets == nil {
return nil, errors.New("invalid val... | [
0.0053510214202106,
0.32316213846206665,
0.6447097063064575,
0.28890225291252136,
-0.7715062499046326,
0.7243660688400269,
0.011176378466188908,
0.16213390231132507,
-0.16546738147735596,
-0.4736054539680481,
-0.11621738970279694,
0.4399503171443939,
-0.30716681480407715,
0.634376645088195... |
func GetMaintenanceWindow(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *MaintenanceWindowState, opts ...pulumi.ResourceOption) (*MaintenanceWindow, error) {
var resource MaintenanceWindow
err := ctx.ReadResource("aws-native:ssm:MaintenanceWindow", name, id, state, &resource, opts...)
if err != nil {
... | [
0.42186424136161804,
-0.12432777136564255,
0.3135702311992645,
0.1375642865896225,
-0.5446977019309998,
0.38284704089164734,
-0.17153480648994446,
0.04489966481924057,
1.0810152292251587,
-0.9612324833869934,
0.45336565375328064,
1.339564561843872,
-0.2812318503856659,
-0.41258424520492554... |
func (*GetLimitRequest) Descriptor() ([]byte, []int) {
return edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{0}
} | [
-0.14413732290267944,
0.20157656073570251,
0.9825370907783508,
-0.10682836174964905,
0.23954559862613678,
-0.23571208119392395,
0.050539616495370865,
0.21890880167484283,
0.3017086982727051,
-0.17125754058361053,
-0.14243431389331818,
1.2316768169403076,
-0.2740139365196228,
0.499761164188... |
func (*BatchGetLimitsRequest) Descriptor() ([]byte, []int) {
return edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{1}
} | [
0.3973248600959778,
-0.08444059640169144,
0.48304975032806396,
-0.3373064398765564,
0.45572739839553833,
-0.19485819339752197,
-0.5224766135215759,
-0.21465927362442017,
-0.1461995244026184,
-0.416500449180603,
-0.4420730769634247,
1.2840133905410767,
-0.4078317880630493,
0.542605221271514... |
func (*BatchGetLimitsResponse) Descriptor() ([]byte, []int) {
return edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{2}
} | [
1.2913769483566284,
-0.2568650543689728,
-0.005128253251314163,
-0.7823294401168823,
0.36116886138916016,
-0.47306761145591736,
0.03725971281528473,
-0.40529292821884155,
-0.13051551580429077,
-0.041614677757024765,
-1.35273277759552,
0.5696753859519958,
-1.1968944072723389,
-0.33045467734... |
func (*ListLimitsRequest) Descriptor() ([]byte, []int) {
return edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{3}
} | [
-0.36955347657203674,
-0.17459248006343842,
0.4415483772754669,
-0.32805994153022766,
-0.6122950911521912,
-0.5082457065582275,
-0.6663406491279602,
-0.21270745992660522,
0.8544266819953918,
-0.5460452437400818,
-0.3146839737892151,
0.49105700850486755,
-0.18821129202842712,
0.424731105566... |
func (*ListLimitsResponse) Descriptor() ([]byte, []int) {
return edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{4}
} | [
0.7167102098464966,
-0.3171417713165283,
-0.062000617384910583,
-0.6489579081535339,
-0.5648590922355652,
-0.887514591217041,
0.012353054247796535,
-0.42884358763694763,
0.7009055018424988,
-0.21017597615718842,
-1.1273263692855835,
-0.2619627118110657,
-0.8473272919654846,
-0.401370406150... |
func (*WatchLimitRequest) Descriptor() ([]byte, []int) {
return edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{5}
} | [
0.47807776927948,
-0.44361937046051025,
0.5788880586624146,
-0.34106066823005676,
-0.33569028973579407,
-0.20887340605258942,
0.7187359929084778,
0.34496766328811646,
-0.1042560562491417,
0.2707540690898895,
0.045786432921886444,
1.131264090538025,
-0.14280378818511963,
0.1124371811747551,... |
func (*WatchLimitResponse) Descriptor() ([]byte, []int) {
return edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{6}
} | [
0.8744081854820251,
-0.6938779950141907,
0.08051162213087082,
-0.6480587124824524,
-0.11653310060501099,
-0.5975047945976257,
1.0270916223526,
-0.02353147603571415,
0.1653093546628952,
0.06876624375581741,
-0.5816677212715149,
0.2164096236228943,
-0.8893246650695801,
-0.6485037803649902,
... |
func (*WatchLimitsRequest) Descriptor() ([]byte, []int) {
return edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{7}
} | [
0.45120564103126526,
0.058244988322257996,
0.31839579343795776,
-0.4522313177585602,
-0.5291159749031067,
-0.26739266514778137,
0.4611648619174957,
-0.2968478798866272,
0.13278032839298248,
-0.08299023658037186,
-0.0003553004062268883,
1.0478205680847168,
-0.18143171072006226,
0.1234192028... |
func (*WatchLimitsResponse) Descriptor() ([]byte, []int) {
return edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{8}
} | [
1.381856918334961,
-0.2272433191537857,
-0.058992717415094376,
-0.8548002243041992,
-0.49369198083877563,
-0.7912065386772156,
0.9522432684898376,
-0.5955736637115479,
0.17471517622470856,
0.3480401039123535,
-0.7982597947120667,
0.19587847590446472,
-0.8380122780799866,
-0.690880715847015... |
func (*UpdateLimitRequest) Descriptor() ([]byte, []int) {
return edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{9}
} | [
-0.4256083369255066,
-0.5349019765853882,
0.7675088047981262,
-0.326474666595459,
-0.6961561441421509,
-0.05669685825705528,
-0.002974064089357853,
0.46445760130882263,
0.19206735491752625,
0.7927104234695435,
-0.1593729555606842,
0.6384717226028442,
-0.4251291751861572,
-0.041097778826951... |
func (*DeleteLimitRequest) Descriptor() ([]byte, []int) {
return edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{10}
} | [
0.21307604014873505,
-0.2545682489871979,
0.9025480151176453,
-0.06085759773850441,
-0.18788836896419525,
-0.4185860753059387,
0.1691119223833084,
0.5814430117607117,
0.7966586351394653,
-0.2801864445209503,
0.44061121344566345,
0.7003933787345886,
-0.30944621562957764,
0.5144640803337097,... |
func (*WatchLimitsResponse_PageTokenChange) Descriptor() ([]byte, []int) {
return edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{8, 0}
} | [
1.6028308868408203,
-0.6311831474304199,
-0.01578490063548088,
-0.7758287787437439,
-0.02471609227359295,
-0.5610124468803406,
0.1831972450017929,
-0.596789538860321,
0.05171478912234306,
0.02684864215552807,
-0.31108394265174866,
0.21822665631771088,
-0.025999054312705994,
-0.323485463857... |
func (*UpdateLimitRequest_CAS) Descriptor() ([]byte, []int) {
return edgelq_limits_proto_v1alpha2_limit_service_proto_rawDescGZIP(), []int{9, 0}
} | [
-0.5776004195213318,
-0.8694126605987549,
0.9072314500808716,
-0.053361114114522934,
-0.6513497829437256,
0.19969996809959412,
-0.43127962946891785,
-0.48489081859588623,
1.3276546001434326,
-0.05789001286029816,
0.8676968812942505,
1.0358445644378662,
-0.09993772953748703,
-0.507307291030... |
func (av AttributeRole) String() string {
switch av {
case AttributeRoleReplica:
return "replica"
case AttributeRolePrimary:
return "primary"
}
return ""
} | [
0.06951781362295151,
-0.8604913949966431,
0.0560016892850399,
-1.024367094039917,
-0.397047221660614,
0.9733728766441345,
0.050397295504808426,
-0.690298318862915,
0.12031906843185425,
0.6891107559204102,
0.41388455033302307,
0.935171902179718,
0.6020088195800781,
-0.20824995636940002,
1... |
func (av AttributeState) String() string {
switch av {
case AttributeStateSys:
return "sys"
case AttributeStateSysChildren:
return "sys_children"
case AttributeStateSysMainThread:
return "sys_main_thread"
case AttributeStateUser:
return "user"
case AttributeStateUserChildren:
return "user_children"
cas... | [
0.3347293436527252,
-1.1574267148971558,
0.18082217872142792,
-0.3903069496154785,
-1.085797667503357,
0.7128635048866272,
0.3931961953639984,
-0.8993484973907471,
0.6312735080718994,
0.43470698595046997,
0.21948586404323578,
0.614915132522583,
0.4096863865852356,
-0.2700049877166748,
0.... |
func (m *metricRedisClientsBlocked) init() {
m.data.SetName("redis.clients.blocked")
m.data.SetDescription("Number of clients pending on a blocking call")
m.data.SetUnit("{client}")
m.data.SetEmptySum()
m.data.Sum().SetIsMonotonic(false)
m.data.Sum().SetAggregationTemporality(pmetric.AggregationTemporalityCumulat... | [
0.5348970293998718,
0.8639618158340454,
0.6123701333999634,
-0.8820942044258118,
0.31023216247558594,
0.6797653436660767,
0.32782405614852905,
-1.0235536098480225,
-0.9463063478469849,
0.3564801812171936,
0.20226724445819855,
0.9892407059669495,
0.12222003936767578,
0.580364465713501,
0.... |
func (m *metricRedisClientsBlocked) updateCapacity() {
if m.data.Sum().DataPoints().Len() > m.capacity {
m.capacity = m.data.Sum().DataPoints().Len()
}
} | [
0.15664330124855042,
0.08416309952735901,
0.5067234635353088,
0.12609097361564636,
0.15093591809272766,
-0.0053880177438259125,
1.1072384119033813,
-0.7490046620368958,
-0.4979977607727051,
0.9211808443069458,
0.47275441884994507,
0.5582985281944275,
0.2513996362686157,
0.3196435868740082,... |
func (m *metricRedisClientsBlocked) emit(metrics pmetric.MetricSlice) {
if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 {
m.updateCapacity()
m.data.MoveTo(metrics.AppendEmpty())
m.init()
}
} | [
-0.13839752972126007,
1.274118185043335,
0.22681628167629242,
-0.0521533377468586,
0.5458453297615051,
0.8025988936424255,
0.18351565301418304,
-0.6839074492454529,
-0.12174525111913681,
0.5180648565292358,
-0.08011075854301453,
0.5519775152206421,
-0.71803879737854,
0.4340112805366516,
... |
func (m *metricRedisClientsConnected) init() {
m.data.SetName("redis.clients.connected")
m.data.SetDescription("Number of client connections (excluding connections from replicas)")
m.data.SetUnit("{client}")
m.data.SetEmptySum()
m.data.Sum().SetIsMonotonic(false)
m.data.Sum().SetAggregationTemporality(pmetric.Agg... | [
0.6887654662132263,
0.028095943853259087,
0.3445749878883362,
-1.6846039295196533,
-0.03541151061654091,
0.7571690082550049,
0.20223449170589447,
-0.7441943883895874,
-0.7640537023544312,
0.34477949142456055,
0.5508749485015869,
0.5663086175918579,
0.9158457517623901,
0.4386868178844452,
... |
func (m *metricRedisClientsConnected) updateCapacity() {
if m.data.Sum().DataPoints().Len() > m.capacity {
m.capacity = m.data.Sum().DataPoints().Len()
}
} | [
0.2248464673757553,
0.005493969190865755,
0.38803571462631226,
-0.29110556840896606,
0.1402517408132553,
-0.026837624609470367,
0.5410801768302917,
-0.6695837378501892,
-0.41270530223846436,
0.9305577874183655,
0.6420630812644958,
0.39006340503692627,
0.6119062900543213,
0.3049032390117645... |
func (m *metricRedisClientsConnected) emit(metrics pmetric.MetricSlice) {
if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 {
m.updateCapacity()
m.data.MoveTo(metrics.AppendEmpty())
m.init()
}
} | [
-0.043654292821884155,
1.0961567163467407,
0.17097711563110352,
-0.49700894951820374,
0.5073180198669434,
0.9456817507743835,
-0.3162352442741394,
-0.4729805588722229,
-0.018289923667907715,
0.5319586992263794,
-0.0595424622297287,
0.25078633427619934,
-0.2611442804336548,
0.42084813117980... |
func (m *metricRedisClientsMaxInputBuffer) init() {
m.data.SetName("redis.clients.max_input_buffer")
m.data.SetDescription("Biggest input buffer among current client connections")
m.data.SetUnit("By")
m.data.SetEmptyGauge()
} | [
0.291822612285614,
0.16279037296772003,
0.525109589099884,
-0.7211874723434448,
-0.22100956737995148,
1.1636565923690796,
-0.11218742281198502,
-0.28531476855278015,
-0.1590861678123474,
-0.32383716106414795,
-0.376703143119812,
0.6904034614562988,
-0.4584525227546692,
0.5983545780181885,
... |
func (m *metricRedisClientsMaxInputBuffer) updateCapacity() {
if m.data.Gauge().DataPoints().Len() > m.capacity {
m.capacity = m.data.Gauge().DataPoints().Len()
}
} | [
0.28043878078460693,
0.020446473732590675,
0.40080949664115906,
-0.37095385789871216,
-0.7609041929244995,
0.3811770975589752,
0.8696334958076477,
-0.54205322265625,
-0.3566053509712219,
0.8087466955184937,
0.3555033504962921,
0.15227650105953217,
-0.002369884168729186,
0.7074546813964844,... |
func (m *metricRedisClientsMaxInputBuffer) emit(metrics pmetric.MetricSlice) {
if m.config.Enabled && m.data.Gauge().DataPoints().Len() > 0 {
m.updateCapacity()
m.data.MoveTo(metrics.AppendEmpty())
m.init()
}
} | [
0.08842865377664566,
1.2223044633865356,
0.31010672450065613,
-0.27176690101623535,
-0.1810072660446167,
1.080370545387268,
0.07102438062429428,
-0.4711122512817383,
0.032632600516080856,
0.19740088284015656,
-0.3106268644332886,
0.13004109263420105,
-0.8210877180099487,
0.4276333451271057... |
func (m *metricRedisClientsMaxOutputBuffer) init() {
m.data.SetName("redis.clients.max_output_buffer")
m.data.SetDescription("Longest output list among current client connections")
m.data.SetUnit("By")
m.data.SetEmptyGauge()
} | [
0.1830296814441681,
0.03690917417407036,
0.4849177896976471,
-0.4700174629688263,
-0.748110294342041,
0.4919140934944153,
-0.14186573028564453,
-0.26653051376342773,
-0.31753143668174744,
-0.3957786560058594,
-0.24466438591480255,
0.17451462149620056,
-0.005770101211965084,
0.6779780983924... |
func (m *metricRedisClientsMaxOutputBuffer) updateCapacity() {
if m.data.Gauge().DataPoints().Len() > m.capacity {
m.capacity = m.data.Gauge().DataPoints().Len()
}
} | [
0.3734307587146759,
-0.04929535090923309,
0.34913870692253113,
-0.046460386365652084,
-0.9317701458930969,
0.03831188753247261,
0.8140130639076233,
-0.531498908996582,
-0.5051290392875671,
0.78910893201828,
0.4521772861480713,
0.06421036273241043,
0.25045228004455566,
0.7363235354423523,
... |
func (m *metricRedisClientsMaxOutputBuffer) emit(metrics pmetric.MetricSlice) {
if m.config.Enabled && m.data.Gauge().DataPoints().Len() > 0 {
m.updateCapacity()
m.data.MoveTo(metrics.AppendEmpty())
m.init()
}
} | [
0.022098997607827187,
1.150055170059204,
0.25941044092178345,
0.06476087868213654,
-0.2779920697212219,
0.9303194880485535,
-0.10880543291568756,
-0.2958983778953552,
0.018810927867889404,
0.23425352573394775,
-0.1921330988407135,
-0.06578709185123444,
-0.5784525871276855,
0.50134378671646... |
func (m *metricRedisCmdCalls) init() {
m.data.SetName("redis.cmd.calls")
m.data.SetDescription("Total number of calls for a command")
m.data.SetUnit("{call}")
m.data.SetEmptySum()
m.data.Sum().SetIsMonotonic(true)
m.data.Sum().SetAggregationTemporality(pmetric.AggregationTemporalityCumulative)
m.data.Sum().DataP... | [
0.6157217621803284,
1.0392450094223022,
0.5846173763275146,
-1.1855634450912476,
0.5892784595489502,
0.6082248091697693,
-0.43807846307754517,
-1.0684317350387573,
-0.10747070610523224,
-0.1558750718832016,
0.7509695887565613,
0.017104484140872955,
0.5631025433540344,
0.8749282360076904,
... |
func (m *metricRedisCmdCalls) updateCapacity() {
if m.data.Sum().DataPoints().Len() > m.capacity {
m.capacity = m.data.Sum().DataPoints().Len()
}
} | [
0.2601052224636078,
0.40444815158843994,
0.3943609297275543,
0.011662296950817108,
0.47930604219436646,
0.07173119485378265,
0.4298263490200043,
-0.7444870471954346,
-0.055212754756212234,
0.7903746366500854,
0.8174946904182434,
0.127216637134552,
0.6728935837745667,
0.7156357765197754,
... |
func (m *metricRedisCmdCalls) emit(metrics pmetric.MetricSlice) {
if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 {
m.updateCapacity()
m.data.MoveTo(metrics.AppendEmpty())
m.init()
}
} | [
-0.10948928445577621,
1.6031532287597656,
0.1944882571697235,
-0.24167396128177643,
0.927473783493042,
0.8223401308059692,
-0.4430214762687683,
-0.4409502446651459,
0.3319558799266815,
0.39791303873062134,
0.09785714000463486,
0.11432699114084244,
-0.2746643126010895,
0.6214462518692017,
... |
func (m *metricRedisCmdUsec) init() {
m.data.SetName("redis.cmd.usec")
m.data.SetDescription("Total time for all executions of this command")
m.data.SetUnit("us")
m.data.SetEmptySum()
m.data.Sum().SetIsMonotonic(true)
m.data.Sum().SetAggregationTemporality(pmetric.AggregationTemporalityCumulative)
m.data.Sum().D... | [
0.7395474910736084,
0.8764012455940247,
0.7144574522972107,
-0.7228101491928101,
0.6418845653533936,
0.19990266859531403,
0.5402397513389587,
-0.12285701185464859,
-0.4399130046367645,
-0.06892863661050797,
0.7198776602745056,
0.2967708110809326,
0.9564995169639587,
0.5439126491546631,
-... |
func (m *metricRedisCmdUsec) updateCapacity() {
if m.data.Sum().DataPoints().Len() > m.capacity {
m.capacity = m.data.Sum().DataPoints().Len()
}
} | [
0.2955660820007324,
0.3123842477798462,
0.44009286165237427,
0.21450930833816528,
0.10702256858348846,
-0.10746429860591888,
0.6825053095817566,
-0.3707232177257538,
-0.3891390860080719,
0.6419925093650818,
0.7518931031227112,
0.43222594261169434,
0.9123960137367249,
0.6475269198417664,
... |
func (m *metricRedisCmdUsec) emit(metrics pmetric.MetricSlice) {
if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 {
m.updateCapacity()
m.data.MoveTo(metrics.AppendEmpty())
m.init()
}
} | [
0.04287972301244736,
1.6819818019866943,
0.1884470134973526,
0.012071945704519749,
0.5077753067016602,
0.6690770387649536,
-0.13203555345535278,
-0.06485932320356369,
0.039278075098991394,
0.09591290354728699,
0.03347908705472946,
0.4394267797470093,
-0.0054123965092003345,
0.4982977509498... |
func (m *metricRedisCommands) init() {
m.data.SetName("redis.commands")
m.data.SetDescription("Number of commands processed per second")
m.data.SetUnit("{ops}/s")
m.data.SetEmptyGauge()
} | [
0.3534088134765625,
1.0654393434524536,
0.4097302258014679,
-0.5934927463531494,
0.7631492614746094,
-0.05728571489453316,
-0.21741530299186707,
-0.7753416299819946,
-0.7021774649620056,
-0.2099108099937439,
0.4407455325126648,
0.6219758987426758,
0.8397706151008606,
0.8208503127098083,
... |
func (m *metricRedisCommands) updateCapacity() {
if m.data.Gauge().DataPoints().Len() > m.capacity {
m.capacity = m.data.Gauge().DataPoints().Len()
}
} | [
0.037425316870212555,
0.34489279985427856,
0.32194018363952637,
0.10179278254508972,
0.28304362297058105,
-0.11261209100484848,
0.5208994150161743,
-0.6810753345489502,
-0.6740859746932983,
0.9535853266716003,
0.7885881662368774,
0.2158072590827942,
0.852587878704071,
1.0392929315567017,
... |
func (m *metricRedisCommands) emit(metrics pmetric.MetricSlice) {
if m.config.Enabled && m.data.Gauge().DataPoints().Len() > 0 {
m.updateCapacity()
m.data.MoveTo(metrics.AppendEmpty())
m.init()
}
} | [
-0.3821735084056854,
1.5683058500289917,
0.18936558067798615,
0.04941289871931076,
0.8362917304039001,
0.6250600814819336,
-0.22902967035770416,
-0.38174542784690857,
-0.07467887550592422,
0.38956648111343384,
0.06741337478160858,
0.14420560002326965,
-0.16071143746376038,
0.87892788648605... |
func (m *metricRedisCommandsProcessed) init() {
m.data.SetName("redis.commands.processed")
m.data.SetDescription("Total number of commands processed by the server")
m.data.SetUnit("{command}")
m.data.SetEmptySum()
m.data.Sum().SetIsMonotonic(true)
m.data.Sum().SetAggregationTemporality(pmetric.AggregationTemporal... | [
0.48051413893699646,
0.4863312542438507,
0.5906763076782227,
-1.0587217807769775,
0.6928807497024536,
0.18531732261180878,
0.33517688512802124,
-0.40896710753440857,
-0.7982551455497742,
-0.3295871615409851,
0.37109097838401794,
0.38607606291770935,
0.8233325481414795,
0.6403491497039795,
... |
func (m *metricRedisCommandsProcessed) updateCapacity() {
if m.data.Sum().DataPoints().Len() > m.capacity {
m.capacity = m.data.Sum().DataPoints().Len()
}
} | [
0.29458409547805786,
-0.03470814600586891,
0.42062270641326904,
0.07152199000120163,
0.41455432772636414,
-0.17386561632156372,
0.8269444704055786,
-0.4433198571205139,
-0.45169389247894287,
0.6939497590065002,
0.799635112285614,
0.2257089912891388,
0.8956902623176575,
0.6459354162216187,
... |
func (m *metricRedisCommandsProcessed) emit(metrics pmetric.MetricSlice) {
if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 {
m.updateCapacity()
m.data.MoveTo(metrics.AppendEmpty())
m.init()
}
} | [
-0.16636186838150024,
1.21396005153656,
0.21770408749580383,
-0.1473231166601181,
0.8451321125030518,
0.7126207947731018,
-0.12121342867612839,
-0.22350436449050903,
-0.12294360250234604,
0.20347224175930023,
0.09440889954566956,
0.19619405269622803,
-0.1307832896709442,
0.6681219339370728... |
func (m *metricRedisConnectionsReceived) init() {
m.data.SetName("redis.connections.received")
m.data.SetDescription("Total number of connections accepted by the server")
m.data.SetUnit("{connection}")
m.data.SetEmptySum()
m.data.Sum().SetIsMonotonic(true)
m.data.Sum().SetAggregationTemporality(pmetric.Aggregatio... | [
0.3881433308124542,
0.5046963691711426,
0.622536838054657,
-1.5870471000671387,
0.07951013743877411,
0.4099935293197632,
-0.1372135579586029,
0.025107257068157196,
-0.5183552503585815,
-0.10302414000034332,
0.5816339254379272,
0.2364376187324524,
0.7621127367019653,
0.5344935059547424,
0... |
func (m *metricRedisConnectionsReceived) updateCapacity() {
if m.data.Sum().DataPoints().Len() > m.capacity {
m.capacity = m.data.Sum().DataPoints().Len()
}
} | [
0.40297263860702515,
0.1972445845603943,
0.4223308861255646,
-0.47349199652671814,
0.2714363932609558,
-0.2868712246417999,
0.42487090826034546,
-0.4035036861896515,
-0.1681012064218521,
0.6727128624916077,
0.643490731716156,
0.05472321808338165,
0.6335384845733643,
0.37472590804100037,
... |
func (m *metricRedisConnectionsReceived) emit(metrics pmetric.MetricSlice) {
if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 {
m.updateCapacity()
m.data.MoveTo(metrics.AppendEmpty())
m.init()
}
} | [
0.04110163450241089,
1.18138587474823,
0.23742033541202545,
-0.6566027998924255,
0.7895079851150513,
0.5826417803764343,
-0.38683274388313293,
-0.11442859470844269,
0.13269436359405518,
0.24874652922153473,
0.1344924420118332,
-0.05566542595624924,
-0.26605674624443054,
0.28251007199287415... |
func (m *metricRedisConnectionsRejected) init() {
m.data.SetName("redis.connections.rejected")
m.data.SetDescription("Number of connections rejected because of maxclients limit")
m.data.SetUnit("{connection}")
m.data.SetEmptySum()
m.data.Sum().SetIsMonotonic(true)
m.data.Sum().SetAggregationTemporality(pmetric.Ag... | [
0.22397519648075104,
1.0039044618606567,
0.5050631761550903,
-1.4469285011291504,
-0.021458826959133148,
0.5761038064956665,
-0.5442491769790649,
-0.34552764892578125,
-0.48192790150642395,
-0.11067674309015274,
0.6384226679801941,
0.6036087274551392,
0.08660857379436493,
0.208709329366683... |
func (m *metricRedisConnectionsRejected) updateCapacity() {
if m.data.Sum().DataPoints().Len() > m.capacity {
m.capacity = m.data.Sum().DataPoints().Len()
}
} | [
0.135522723197937,
0.36639901995658875,
0.3693689703941345,
-0.32227641344070435,
0.1478956937789917,
-0.029874131083488464,
0.14854513108730316,
-0.4994904696941376,
-0.2293899655342102,
0.43425703048706055,
0.846785843372345,
0.2436651885509491,
0.4674889147281647,
0.3512509763240814,
... |
func (m *metricRedisConnectionsRejected) emit(metrics pmetric.MetricSlice) {
if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 {
m.updateCapacity()
m.data.MoveTo(metrics.AppendEmpty())
m.init()
}
} | [
-0.189395010471344,
1.5026280879974365,
0.16381238400936127,
-0.6121686100959778,
0.5146077275276184,
0.8808300495147705,
-0.6932329535484314,
-0.1585211604833603,
0.050466202199459076,
0.04476071521639824,
0.24933896958827972,
0.3684132993221283,
-0.5512257814407349,
0.34620171785354614,
... |
func (m *metricRedisCPUTime) init() {
m.data.SetName("redis.cpu.time")
m.data.SetDescription("System CPU consumed by the Redis server in seconds since server start")
m.data.SetUnit("s")
m.data.SetEmptySum()
m.data.Sum().SetIsMonotonic(true)
m.data.Sum().SetAggregationTemporality(pmetric.AggregationTemporalityCumu... | [
0.47030410170555115,
0.7774289846420288,
0.6190641522407532,
-0.5652751326560974,
0.14121019840240479,
0.437278687953949,
0.3065212070941925,
-0.28845182061195374,
-0.9375149011611938,
0.86266028881073,
0.11888805031776428,
0.066598080098629,
0.4630667567253113,
1.049409031867981,
0.0733... |
func (m *metricRedisCPUTime) updateCapacity() {
if m.data.Sum().DataPoints().Len() > m.capacity {
m.capacity = m.data.Sum().DataPoints().Len()
}
} | [
0.3545280396938324,
0.3976537883281708,
0.46935588121414185,
0.23763185739517212,
0.10461835563182831,
-0.06844931095838547,
0.7674560546875,
-0.5142335295677185,
-0.6186619400978088,
1.072613000869751,
0.6367648839950562,
0.16853322088718414,
0.6486234068870544,
0.5510189533233643,
0.07... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.