text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (av AttributeScanResult) String() string { switch av { case AttributeScanResultAbort: return "abort" case AttributeScanResultComplete: return "complete" case AttributeScanResultError: return "error" } return "" }
[ -0.16160991787910461, -0.644469141960144, 0.42330262064933777, 0.3189343512058258, -1.6325000524520874, 0.5749625563621521, 0.42855536937713623, -1.5651865005493164, -0.5968206524848938, 0.22914668917655945, 0.44556739926338196, 0.06809398531913757, 0.49181029200553894, -0.4988499581813812...
func (av AttributeScanType) String() string { switch av { case AttributeScanTypeAggregation: return "aggregation" case AttributeScanTypeBasic: return "basic" case AttributeScanTypeOpsBackground: return "ops_background" case AttributeScanTypeUdfBackground: return "udf_background" } return "" }
[ -0.06628574430942535, -0.2625967860221863, 0.038101062178611755, 0.489522784948349, -0.5866425037384033, 0.938550591468811, 0.84707111120224, -1.4369820356369019, -0.36013323068618774, 0.5812008380889893, 0.9030152559280396, 0.7407989501953125, 0.5919310450553894, 0.09523220360279083, 0....
func (av AttributeTransactionResult) String() string { switch av { case AttributeTransactionResultError: return "error" case AttributeTransactionResultFilteredOut: return "filtered_out" case AttributeTransactionResultNotFound: return "not_found" case AttributeTransactionResultSuccess: return "success" cas...
[ -0.08923789858818054, -0.5754159688949585, 0.08755162358283997, -1.3365733623504639, -0.8603674173355103, -0.027099711820483208, 0.553381085395813, -1.0593229532241821, -0.30905234813690186, 1.3021535873413086, -0.04063120856881142, -0.18342803418636322, 0.6132501363754272, -0.874295651912...
func (av AttributeTransactionType) String() string { switch av { case AttributeTransactionTypeDelete: return "delete" case AttributeTransactionTypeRead: return "read" case AttributeTransactionTypeUdf: return "udf" case AttributeTransactionTypeWrite: return "write" } return "" }
[ 0.6075374484062195, -0.5300924777984619, 0.19729647040367126, -1.2521246671676636, 0.11185511946678162, -0.2600080668926239, 0.6024471521377563, -0.9269107580184937, 0.2814752459526062, 1.9080036878585815, 0.34304526448249817, 0.06279655545949936, 0.4379536807537079, -0.2981685400009155, ...
func (m *metricAerospikeNamespaceDiskAvailable) init() { m.data.SetName("aerospike.namespace.disk.available") m.data.SetDescription("Minimum percentage of contiguous disk space free to the namespace across all devices") m.data.SetUnit("%") m.data.SetEmptyGauge() }
[ 0.2822011113166809, 0.2445581704378128, 0.35420507192611694, -0.6927502155303955, 0.02946806699037552, 1.083498477935791, -0.23923972249031067, -0.288362056016922, -0.5022990107536316, 0.18814454972743988, 0.4896506667137146, 0.5643304586410522, 0.7473583221435547, 0.8635069131851196, 0....
func (m *metricAerospikeNamespaceDiskAvailable) updateCapacity() { if m.data.Gauge().DataPoints().Len() > m.capacity { m.capacity = m.data.Gauge().DataPoints().Len() } }
[ 0.11463410407304764, -0.2601035237312317, 0.32698893547058105, -0.05159496143460274, -0.2684626877307892, -0.053100381046533585, 0.36911338567733765, -0.3082481026649475, -0.5105282664299011, 1.0525895357131958, 0.6629260778427124, 0.30305907130241394, 0.9470443725585938, 0.935053110122680...
func (m *metricAerospikeNamespaceDiskAvailable) emit(metrics pmetric.MetricSlice) { if m.config.Enabled && m.data.Gauge().DataPoints().Len() > 0 { m.updateCapacity() m.data.MoveTo(metrics.AppendEmpty()) m.init() } }
[ -0.2604559063911438, 0.945590078830719, 0.17044959962368011, -0.1792105883359909, 0.376421719789505, 0.5817028284072876, -0.2138124257326126, -0.13779345154762268, -0.2885268032550812, 0.4179938733577728, 0.08569958806037903, 0.1552627980709076, 0.1153809130191803, 0.7336981296539307, 0....
func (m *metricAerospikeNamespaceGeojsonRegionQueryCells) init() { m.data.SetName("aerospike.namespace.geojson.region_query_cells") m.data.SetDescription("Number of cell coverings for query region queried") m.data.SetUnit("{cells}") m.data.SetEmptySum() m.data.Sum().SetIsMonotonic(true) m.data.Sum().SetAggregatio...
[ 0.5623363256454468, 0.18781526386737823, 0.42130210995674133, -0.6776216626167297, -0.1816989779472351, 0.5105524659156799, 0.38862428069114685, -1.0537697076797485, -0.36671534180641174, 0.11846406012773514, 0.9130550622940063, -0.016159381717443466, 0.7680584192276001, 0.4451987147331238...
func (m *metricAerospikeNamespaceGeojsonRegionQueryCells) updateCapacity() { if m.data.Sum().DataPoints().Len() > m.capacity { m.capacity = m.data.Sum().DataPoints().Len() } }
[ 0.36867964267730713, -0.5014343857765198, 0.33461883664131165, 0.06637685745954514, -0.13049551844596863, -0.05080600082874298, 0.558544933795929, -0.8777514696121216, -0.2307373434305191, 0.9783687591552734, 0.8370130658149719, 0.13514381647109985, 0.9352478384971619, 0.30973708629608154,...
func (m *metricAerospikeNamespaceGeojsonRegionQueryCells) emit(metrics pmetric.MetricSlice) { if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 { m.updateCapacity() m.data.MoveTo(metrics.AppendEmpty()) m.init() } }
[ 0.15200436115264893, 0.8587143421173096, 0.14753711223602295, -0.17833581566810608, 0.28150030970573425, 0.6433418989181519, -0.04495855048298836, -0.9535296559333801, -0.20000700652599335, 0.4367194175720215, 0.3889908194541931, 0.08109335601329803, 0.15227438509464264, 0.3682039082050323...
func (m *metricAerospikeNamespaceGeojsonRegionQueryFalsePositive) init() { m.data.SetName("aerospike.namespace.geojson.region_query_false_positive") m.data.SetDescription("Number of points outside the region.") m.data.SetUnit("{points}") m.data.SetEmptySum() m.data.Sum().SetIsMonotonic(true) m.data.Sum().SetAggre...
[ 0.5463037490844727, 0.24877771735191345, 0.3086332678794861, -1.3364089727401733, -0.17512930929660797, 0.6569435596466064, -0.3114784061908722, -0.3284038305282593, -0.37426993250846863, -0.015712954103946686, 0.3884686827659607, -0.31906765699386597, 0.4962567687034607, 0.897542178630828...
func (m *metricAerospikeNamespaceGeojsonRegionQueryFalsePositive) updateCapacity() { if m.data.Sum().DataPoints().Len() > m.capacity { m.capacity = m.data.Sum().DataPoints().Len() } }
[ 0.265761137008667, -0.3705883324146271, 0.21809080243110657, -0.28021082282066345, -0.2987547814846039, 0.10834173858165741, 0.5126591920852661, -0.6183461546897888, -0.17623119056224823, 0.8256019949913025, 0.4983171224594116, -0.10761509090662003, 0.8566862940788269, 0.7145781517028809, ...
func (m *metricAerospikeNamespaceGeojsonRegionQueryFalsePositive) emit(metrics pmetric.MetricSlice) { if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 { m.updateCapacity() m.data.MoveTo(metrics.AppendEmpty()) m.init() } }
[ -0.005275893956422806, 0.8369401693344116, 0.07143054157495499, -0.5665805339813232, 0.2886386513710022, 0.8839665651321411, -0.24984793365001678, -0.5612253546714783, -0.06269816309213638, 0.3219025135040283, -0.007119196467101574, -0.10836756229400635, -0.14822550117969513, 0.84389108419...
func (m *metricAerospikeNamespaceGeojsonRegionQueryPoints) init() { m.data.SetName("aerospike.namespace.geojson.region_query_points") m.data.SetDescription("Number of points within the region.") m.data.SetUnit("{points}") m.data.SetEmptySum() m.data.Sum().SetIsMonotonic(true) m.data.Sum().SetAggregationTemporalit...
[ 0.5870616436004639, 0.11473499983549118, 0.12157108634710312, -1.2045960426330566, -0.11974013596773148, 0.6557636857032776, 0.06847469508647919, -0.21356931328773499, -0.034609295427799225, 0.5015631914138794, 0.5320938229560852, 0.4855501651763916, 0.7703357934951782, 0.09186750650405884...
func (m *metricAerospikeNamespaceGeojsonRegionQueryPoints) updateCapacity() { if m.data.Sum().DataPoints().Len() > m.capacity { m.capacity = m.data.Sum().DataPoints().Len() } }
[ 0.3921034038066864, -0.628747820854187, 0.2674826979637146, -0.22949476540088654, -0.18844451010227203, 0.17383556067943573, 0.5441718101501465, -0.5922195911407471, 0.013044442050158978, 1.17401123046875, 0.6429107189178467, 0.28177475929260254, 0.9282227754592896, 0.2088763564825058, -...
func (m *metricAerospikeNamespaceGeojsonRegionQueryPoints) emit(metrics pmetric.MetricSlice) { if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 { m.updateCapacity() m.data.MoveTo(metrics.AppendEmpty()) m.init() } }
[ 0.1125354915857315, 0.7504928708076477, 0.05842507630586624, -0.4304870069026947, 0.26871201395988464, 0.8794629573822021, -0.10315702110528946, -0.6233459115028381, 0.11649273335933685, 0.5485371947288513, 0.10075134038925171, 0.3086562752723694, 0.08014059066772461, 0.3102002441883087, ...
func (m *metricAerospikeNamespaceGeojsonRegionQueryRequests) init() { m.data.SetName("aerospike.namespace.geojson.region_query_requests") m.data.SetDescription("Number of geojson queries on the system since the uptime of the node.") m.data.SetUnit("{queries}") m.data.SetEmptySum() m.data.Sum().SetIsMonotonic(true)...
[ 0.48825952410697937, 0.06866816431283951, 0.3685409724712372, -1.0694997310638428, -0.09556418657302856, 0.622872531414032, -0.27082106471061707, -1.1753780841827393, -0.3151513934135437, 0.22145475447177887, 0.8013132214546204, 0.6587536931037903, 0.6102588176727295, 0.22171513736248016, ...
func (m *metricAerospikeNamespaceGeojsonRegionQueryRequests) updateCapacity() { if m.data.Sum().DataPoints().Len() > m.capacity { m.capacity = m.data.Sum().DataPoints().Len() } }
[ 0.10017521679401398, -0.551517128944397, 0.28693830966949463, -0.124944306910038, -0.13974671065807343, 0.07525748759508133, 0.5224819779396057, -0.8927892446517944, -0.059845805168151855, 0.8339091539382935, 0.8639143705368042, 0.35810771584510803, 0.8773869276046753, 0.4404490292072296, ...
func (m *metricAerospikeNamespaceGeojsonRegionQueryRequests) emit(metrics pmetric.MetricSlice) { if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 { m.updateCapacity() m.data.MoveTo(metrics.AppendEmpty()) m.init() } }
[ -0.254497766494751, 0.6803160309791565, 0.10475865006446838, -0.31893497705459595, 0.25508907437324524, 0.8588805794715881, -0.23897336423397064, -1.0172427892684937, 0.061739012598991394, 0.36700281500816345, 0.4011693298816681, 0.33968499302864075, 0.06383778154850006, 0.3838905692100525...
func (m *metricAerospikeNamespaceMemoryFree) init() { m.data.SetName("aerospike.namespace.memory.free") m.data.SetDescription("Percentage of the namespace's memory which is still free") m.data.SetUnit("%") m.data.SetEmptyGauge() }
[ 1.1210451126098633, 0.5097941160202026, 0.19710436463356018, -1.1085327863693237, -0.2605009377002716, 0.5677293539047241, -0.603284478187561, -1.0910028219223022, 0.03382693976163864, -0.17144517600536346, 0.1628578007221222, 0.8786409497261047, -0.025623122230172157, 1.272283673286438, ...
func (m *metricAerospikeNamespaceMemoryFree) updateCapacity() { if m.data.Gauge().DataPoints().Len() > m.capacity { m.capacity = m.data.Gauge().DataPoints().Len() } }
[ 0.4772608280181885, 0.03404015302658081, 0.26381438970565796, -0.1983007788658142, -0.6312498450279236, -0.08102020621299744, 0.4957984387874603, -1.0618798732757568, -0.46384990215301514, 0.9698388576507568, 0.507581889629364, 0.3878895044326782, 0.5166041851043701, 0.9369778633117676, ...
func (m *metricAerospikeNamespaceMemoryFree) emit(metrics pmetric.MetricSlice) { if m.config.Enabled && m.data.Gauge().DataPoints().Len() > 0 { m.updateCapacity() m.data.MoveTo(metrics.AppendEmpty()) m.init() } }
[ 0.20410053431987762, 1.2673847675323486, 0.10927038639783859, -0.2739902436733246, 0.12543068826198578, 0.5864635109901428, -0.12763093411922455, -0.8096858859062195, 0.03462884575128555, 0.29903843998908997, -0.05940772965550423, 0.2810104489326477, -0.45383012294769287, 0.784685492515564...
func (m *metricAerospikeNamespaceMemoryUsage) init() { m.data.SetName("aerospike.namespace.memory.usage") m.data.SetDescription("Memory currently used by each component of the namespace") m.data.SetUnit("By") m.data.SetEmptySum() m.data.Sum().SetIsMonotonic(false) m.data.Sum().SetAggregationTemporality(pmetric.Ag...
[ 0.7389227151870728, 0.05524769052863121, 0.35440370440483093, -1.0075117349624634, 0.04368802532553673, 0.032235339283943176, 0.20352190732955933, -0.4261895716190338, -0.07049339264631271, 0.27120792865753174, 0.5755907893180847, 0.6251107454299927, 0.46355730295181274, 1.0118741989135742...
func (m *metricAerospikeNamespaceMemoryUsage) updateCapacity() { if m.data.Sum().DataPoints().Len() > m.capacity { m.capacity = m.data.Sum().DataPoints().Len() } }
[ 0.717003345489502, -0.23181432485580444, 0.3726409673690796, -0.022503506392240524, -0.0011643171310424805, -0.2475612759590149, 0.5838041305541992, -0.5555919408798218, -0.05285358056426048, 0.7911063432693481, 0.7077884674072266, 0.6574660539627075, 0.705264687538147, 0.6117429733276367,...
func (m *metricAerospikeNamespaceMemoryUsage) emit(metrics pmetric.MetricSlice) { if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 { m.updateCapacity() m.data.MoveTo(metrics.AppendEmpty()) m.init() } }
[ 0.3312360346317291, 0.9831050038337708, 0.13627199828624725, -0.3142809271812439, 0.5098751783370972, 0.40422508120536804, -0.055975284427404404, -0.3080459535121918, 0.2790262699127197, 0.39420369267463684, 0.030954521149396896, 0.48296257853507996, -0.16868619620800018, 0.647603213787078...
func (m *metricAerospikeNamespaceQueryCount) init() { m.data.SetName("aerospike.namespace.query.count") m.data.SetDescription("Number of query operations performed on the namespace") m.data.SetUnit("{queries}") m.data.SetEmptySum() m.data.Sum().SetIsMonotonic(true) m.data.Sum().SetAggregationTemporality(pmetric.A...
[ 1.1133946180343628, 0.3509739935398102, 0.325765997171402, -0.9396342635154724, 0.16122129559516907, 0.665203869342804, 0.20441943407058716, -0.4408397972583771, -0.1623830497264862, -0.1673019677400589, 0.6156060099601746, 0.21936750411987305, 0.6929604411125183, 0.36839327216148376, -0...
func (m *metricAerospikeNamespaceQueryCount) updateCapacity() { if m.data.Sum().DataPoints().Len() > m.capacity { m.capacity = m.data.Sum().DataPoints().Len() } }
[ 0.3675104081630707, -0.3233892619609833, 0.2975611984729767, -0.04704109951853752, -0.10819099098443985, 0.12438435107469559, 0.7457126379013062, -0.5386561155319214, 0.05257101356983185, 0.5814058780670166, 0.7307230830192566, 0.2866440713405609, 0.6379764080047607, 0.3945154845714569, ...
func (m *metricAerospikeNamespaceQueryCount) emit(metrics pmetric.MetricSlice) { if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 { m.updateCapacity() m.data.MoveTo(metrics.AppendEmpty()) m.init() } }
[ 0.23260498046875, 0.7967949509620667, 0.0665614902973175, -0.45618027448654175, 0.5051833987236023, 0.8257460594177246, 0.06245151162147522, -0.32451963424682617, 0.10341418534517288, 0.20567288994789124, 0.09356474131345749, 0.09915122389793396, -0.18545427918434143, 0.4060182571411133, ...
func (m *metricAerospikeNamespaceScanCount) init() { m.data.SetName("aerospike.namespace.scan.count") m.data.SetDescription("Number of scan operations performed on the namespace") m.data.SetUnit("{scans}") m.data.SetEmptySum() m.data.Sum().SetIsMonotonic(true) m.data.Sum().SetAggregationTemporality(pmetric.Aggreg...
[ 1.26347815990448, 0.24158161878585815, 0.4737311005592346, -0.6188665628433228, -0.1526148021221161, 0.7288617491722107, 0.22659048438072205, -0.4587552547454834, 0.22981633245944977, -0.22878345847129822, 0.5819798707962036, -0.09400215744972229, 0.8547816872596741, 0.3203239142894745, ...
func (m *metricAerospikeNamespaceScanCount) updateCapacity() { if m.data.Sum().DataPoints().Len() > m.capacity { m.capacity = m.data.Sum().DataPoints().Len() } }
[ 0.5054073929786682, -0.2771131992340088, 0.3763817548751831, 0.1999971717596054, -0.13620160520076752, 0.17214259505271912, 0.7926203012466431, -0.39208269119262695, 0.30722272396087646, 0.5091133117675781, 0.8104428052902222, 0.20913639664649963, 0.7538374662399292, 0.4061681628227234, ...
func (m *metricAerospikeNamespaceScanCount) emit(metrics pmetric.MetricSlice) { if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 { m.updateCapacity() m.data.MoveTo(metrics.AppendEmpty()) m.init() } }
[ 0.3585333824157715, 0.8395597338676453, 0.11194461584091187, -0.1869879513978958, 0.39438629150390625, 0.826732337474823, 0.1695089191198349, -0.2714173495769501, 0.3174457252025604, 0.12941999733448029, 0.15672644972801208, 0.013385336846113205, -0.027065718546509743, 0.44312867522239685,...
func (m *metricAerospikeNamespaceTransactionCount) init() { m.data.SetName("aerospike.namespace.transaction.count") m.data.SetDescription("Number of transactions performed on the namespace") m.data.SetUnit("{transactions}") m.data.SetEmptySum() m.data.Sum().SetIsMonotonic(true) m.data.Sum().SetAggregationTemporal...
[ 1.5133696794509888, 0.36433759331703186, 0.44167065620422363, -1.311144471168518, 0.28191179037094116, -0.08400758355855942, -0.0022927923128008842, -0.3744019567966461, -0.46377360820770264, 0.2585386633872986, 0.3697758913040161, 0.02686033584177494, 0.8153699040412903, 0.331155031919479...
func (m *metricAerospikeNamespaceTransactionCount) updateCapacity() { if m.data.Sum().DataPoints().Len() > m.capacity { m.capacity = m.data.Sum().DataPoints().Len() } }
[ 0.6945530772209167, -0.20806825160980225, 0.37134847044944763, -0.19826637208461761, 0.00804834347218275, -0.3941178619861603, 0.822454035282135, -0.4927229881286621, -0.25032803416252136, 0.8223496675491333, 0.5190865397453308, 0.17532028257846832, 0.6815214157104492, 0.13605660200119019,...
func (m *metricAerospikeNamespaceTransactionCount) emit(metrics pmetric.MetricSlice) { if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 { m.updateCapacity() m.data.MoveTo(metrics.AppendEmpty()) m.init() } }
[ 0.4874754548072815, 0.9528915286064148, 0.14543446898460388, -0.5962688326835632, 0.6082302927970886, 0.22022786736488342, 0.17562314867973328, -0.2870410084724426, -0.18831714987754822, 0.5211371183395386, -0.006966591812670231, -0.10423557460308075, -0.04832294583320618, 0.16108535230159...
func (m *metricAerospikeNodeConnectionCount) init() { m.data.SetName("aerospike.node.connection.count") m.data.SetDescription("Number of connections opened and closed to the node") m.data.SetUnit("{connections}") m.data.SetEmptySum() m.data.Sum().SetIsMonotonic(true) m.data.Sum().SetAggregationTemporality(pmetric...
[ 0.5156081318855286, 0.25227853655815125, 0.4974755346775055, -1.2562326192855835, 0.5436736345291138, 0.3426998555660248, 0.07993144541978836, -0.24082304537296295, -1.061766266822815, -0.15320457518100739, 1.277336597442627, 0.0978073701262474, 0.9434322118759155, 0.3316831588745117, 0....
func (m *metricAerospikeNodeConnectionCount) updateCapacity() { if m.data.Sum().DataPoints().Len() > m.capacity { m.capacity = m.data.Sum().DataPoints().Len() } }
[ 0.19086824357509613, -0.1815246045589447, 0.3830319046974182, -0.2404705435037613, 0.291307270526886, -0.3149768114089966, 0.6378858685493469, -0.19975532591342926, -0.658269464969635, 0.8790592551231384, 0.9137588143348694, 0.1925165057182312, 0.8599898219108582, 0.05901206284761429, 0....
func (m *metricAerospikeNodeConnectionCount) emit(metrics pmetric.MetricSlice) { if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 { m.updateCapacity() m.data.MoveTo(metrics.AppendEmpty()) m.init() } }
[ -0.0736360028386116, 0.912523090839386, 0.13197888433933258, -0.48823148012161255, 0.9223284125328064, 0.3901595175266266, 0.030204880982637405, 0.006415334064513445, -0.5592451691627502, 0.42487576603889465, 0.3973236382007599, -0.18504178524017334, 0.026443500071763992, -0.04264388978481...
func (m *metricAerospikeNodeConnectionOpen) init() { m.data.SetName("aerospike.node.connection.open") m.data.SetDescription("Current number of open connections to the node") m.data.SetUnit("{connections}") m.data.SetEmptySum() m.data.Sum().SetIsMonotonic(false) m.data.Sum().SetAggregationTemporality(pmetric.Aggre...
[ -0.08682781457901001, 0.05368192121386528, 0.53159099817276, -1.3507444858551025, -0.05657114461064339, 0.6698986887931824, 0.2592233419418335, 0.1405663639307022, -0.9497023820877075, -0.07918272912502289, 1.3295636177062988, 0.29469218850135803, 0.6682990789413452, -0.0104971993714571, ...
func (m *metricAerospikeNodeConnectionOpen) updateCapacity() { if m.data.Sum().DataPoints().Len() > m.capacity { m.capacity = m.data.Sum().DataPoints().Len() } }
[ 0.05824397876858711, -0.34717920422554016, 0.37835612893104553, -0.20382121205329895, -0.07838422060012817, -0.12590286135673523, 0.6257451772689819, -0.12748083472251892, -0.694111168384552, 0.7588968873023987, 0.9334604144096375, 0.33012089133262634, 0.8216338753700256, -0.01548692863434...
func (m *metricAerospikeNodeConnectionOpen) emit(metrics pmetric.MetricSlice) { if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 { m.updateCapacity() m.data.MoveTo(metrics.AppendEmpty()) m.init() } }
[ -0.3962766230106354, 0.8268756866455078, 0.15854160487651825, -0.260339617729187, 0.4481329917907715, 0.7061368227005005, -0.045034009963274, 0.10066670179367065, -0.5534371733665466, 0.3279726505279541, 0.46099722385406494, 0.1328832358121872, -0.14671602845191956, -0.06819063425064087, ...
func (m *metricAerospikeNodeMemoryFree) init() { m.data.SetName("aerospike.node.memory.free") m.data.SetDescription("Percentage of the node's memory which is still free") m.data.SetUnit("%") m.data.SetEmptyGauge() }
[ 0.8100554347038269, 0.6777845025062561, 0.24355611205101013, -1.3308470249176025, -0.04500645026564598, 0.45676666498184204, -0.3530714809894562, -0.8825406432151794, -0.7271006107330322, 0.01942395605146885, 0.4007248878479004, 0.9843400120735168, 0.26446112990379333, 0.8080853819847107, ...
func (m *metricAerospikeNodeMemoryFree) updateCapacity() { if m.data.Gauge().DataPoints().Len() > m.capacity { m.capacity = m.data.Gauge().DataPoints().Len() } }
[ 0.3164255917072296, 0.17905673384666443, 0.2864559292793274, -0.35006052255630493, -0.4573836624622345, -0.2169361561536789, 0.6793414950370789, -0.860473096370697, -0.9164720177650452, 1.0616873502731323, 0.5470349788665771, 0.4867103099822998, 0.8560479879379272, 0.5980879068374634, 0....
func (m *metricAerospikeNodeMemoryFree) emit(metrics pmetric.MetricSlice) { if m.config.Enabled && m.data.Gauge().DataPoints().Len() > 0 { m.updateCapacity() m.data.MoveTo(metrics.AppendEmpty()) m.init() } }
[ 0.04999995604157448, 1.4060081243515015, 0.12453991174697876, -0.3145584464073181, 0.27533093094825745, 0.5289734601974487, 0.03941523656249046, -0.616770327091217, -0.37608596682548523, 0.4279463589191437, 0.028715435415506363, 0.37216565012931824, -0.167567178606987, 0.41828474402427673,...
func (m *metricAerospikeNodeQueryTracked) init() { m.data.SetName("aerospike.node.query.tracked") m.data.SetDescription("Number of queries tracked by the system.") m.data.SetUnit("{queries}") m.data.SetEmptySum() m.data.Sum().SetIsMonotonic(true) m.data.Sum().SetAggregationTemporality(pmetric.AggregationTemporali...
[ 0.4782083332538605, 0.5613940358161926, 0.5003073215484619, -1.1141369342803955, 0.5623631477355957, 0.9887152314186096, 0.16223779320716858, -0.40045252442359924, -0.6039963364601135, -0.16964899003505707, 0.5633428692817688, 0.5791460871696472, 0.7248526811599731, 0.10483227670192719, ...
func (m *metricAerospikeNodeQueryTracked) updateCapacity() { if m.data.Sum().DataPoints().Len() > m.capacity { m.capacity = m.data.Sum().DataPoints().Len() } }
[ 0.19563134014606476, -0.150556281208992, 0.4098709225654602, -0.09889167547225952, 0.19842933118343353, -0.06288409978151321, 0.8647197484970093, -0.30656081438064575, -0.5163658261299133, 0.9612475633621216, 0.6720994114875793, 0.21722747385501862, 0.9970186948776245, 0.031023792922496796...
func (m *metricAerospikeNodeQueryTracked) emit(metrics pmetric.MetricSlice) { if m.config.Enabled && m.data.Sum().DataPoints().Len() > 0 { m.updateCapacity() m.data.MoveTo(metrics.AppendEmpty()) m.init() } }
[ -0.1832478642463684, 1.0024640560150146, 0.19501720368862152, -0.3162982761859894, 0.8123842477798462, 0.8872085809707642, 0.07065994292497635, -0.29337701201438904, -0.39415013790130615, 0.5233395099639893, 0.16307339072227478, 0.22456516325473785, 0.08365187048912048, -0.0675466731190681...
func WithStartTime(startTime pcommon.Timestamp) metricBuilderOption { return func(mb *MetricsBuilder) { mb.startTime = startTime } }
[ 1.2032256126403809, -0.43426093459129333, 0.21499355137348175, 0.5655066967010498, 0.07885908335447311, 0.6783062815666199, 1.1372742652893066, -0.10845214873552322, 0.5298794507980347, 0.4423459470272064, 0.3010234832763672, -0.8012542128562927, -0.2433791160583496, 0.11947979778051376, ...
func (mb *MetricsBuilder) NewResourceBuilder() *ResourceBuilder { return NewResourceBuilder(mb.config.ResourceAttributes) }
[ 0.9225432872772217, 0.27289023995399475, 0.21211935579776764, 0.721356213092804, -1.2296950817108154, 0.5672619342803955, 1.3396754264831543, 0.47058016061782837, 0.23970705270767212, -0.18335272371768951, 0.7768445611000061, -0.40278664231300354, -0.6417350769042969, 1.060911774635315, ...
func (mb *MetricsBuilder) updateCapacity(rm pmetric.ResourceMetrics) { if mb.metricsCapacity < rm.ScopeMetrics().At(0).Metrics().Len() { mb.metricsCapacity = rm.ScopeMetrics().At(0).Metrics().Len() } }
[ 0.016130007803440094, -0.23574340343475342, 0.520313560962677, 0.18618346750736237, -0.0715794488787651, 0.9159708619117737, 1.5581941604614258, -0.5451998710632324, -0.04439118877053261, 0.9770433306694031, 0.8974798321723938, 0.34172484278678894, 0.2319357991218567, 0.9808375835418701, ...
func WithResource(res pcommon.Resource) ResourceMetricsOption { return func(rm pmetric.ResourceMetrics) { res.CopyTo(rm.Resource()) } }
[ 1.2685025930404663, -0.09252238273620605, 0.36456191539764404, 0.1556246429681778, -0.46788454055786133, 0.8629546761512756, 1.578091025352478, -0.4704180359840393, 0.3941817581653595, 0.38961926102638245, 1.01008939743042, -0.611609697341919, -0.16227132081985474, -0.6322349905967712, -...
func WithStartTimeOverride(start pcommon.Timestamp) ResourceMetricsOption { return func(rm pmetric.ResourceMetrics) { var dps pmetric.NumberDataPointSlice metrics := rm.ScopeMetrics().At(0).Metrics() for i := 0; i < metrics.Len(); i++ { switch metrics.At(i).Type() { case pmetric.MetricTypeGauge: dps = ...
[ 0.5220524072647095, 0.7553253173828125, 0.8957780003547668, -0.6654493808746338, -0.009259914979338646, 0.06313582509756088, 0.028032714501023293, -0.9487852454185486, 0.05657116696238518, 0.38605231046676636, 0.2476014494895935, -0.360431045293808, 0.3223097622394562, -0.09975828975439072...
func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { rm := pmetric.NewResourceMetrics() ils := rm.ScopeMetrics().AppendEmpty() ils.Scope().SetName("otelcol/aerospikereceiver") ils.Scope().SetVersion(mb.buildInfo.Version) ils.Metrics().EnsureCapacity(mb.metricsCapacity) mb.metricAerospikeNames...
[ 0.9365105628967285, 0.0005768084665760398, 0.38473647832870483, -0.2904599905014038, -0.0002961528371088207, -0.027746673673391342, 0.26029732823371887, -0.28195878863334656, -0.05124587565660477, -0.17014054954051971, -0.10689211636781693, -0.059659816324710846, 0.3338361084461212, 0.7471...
func (mb *MetricsBuilder) Emit(rmo ...ResourceMetricsOption) pmetric.Metrics { mb.EmitForResource(rmo...) metrics := mb.metricsBuffer mb.metricsBuffer = pmetric.NewMetrics() return metrics }
[ 0.2889827787876129, 0.2686980366706848, 0.3532048165798187, 0.09502310305833817, 0.5187605619430542, 1.1608442068099976, 0.5882449746131897, -0.6849269866943359, 0.05020403489470482, -0.29769453406333923, -0.045331235975027084, 0.33394479751586914, -0.610842764377594, 0.5622283220291138, ...
func (mb *MetricsBuilder) RecordAerospikeNamespaceDiskAvailableDataPoint(ts pcommon.Timestamp, inputVal string) error { val, err := strconv.ParseInt(inputVal, 10, 64) if err != nil { return fmt.Errorf("failed to parse int64 for AerospikeNamespaceDiskAvailable, value was %s: %w", inputVal, err) } mb.metricAerospik...
[ -0.290542334318161, 0.27899327874183655, 0.2069387286901474, -0.4365977346897125, -0.41637468338012695, 0.30937474966049194, -0.6767725348472595, 0.02992955595254898, -0.33649033308029175, 0.4420080780982971, -0.06972268968820572, 0.8233011364936829, 0.41177549958229065, 0.4350124895572662...
func (mb *MetricsBuilder) RecordAerospikeNamespaceGeojsonRegionQueryCellsDataPoint(ts pcommon.Timestamp, inputVal string) error { val, err := strconv.ParseInt(inputVal, 10, 64) if err != nil { return fmt.Errorf("failed to parse int64 for AerospikeNamespaceGeojsonRegionQueryCells, value was %s: %w", inputVal, err) ...
[ 0.31918570399284363, 0.24761101603507996, 0.25737863779067993, -0.4447612166404724, -0.4979236125946045, 0.6349015235900879, -0.4902748167514801, -1.2159368991851807, -0.23980271816253662, 0.26677247881889343, 0.4266906678676605, 0.5203443169593811, 0.13416433334350586, 0.3422255516052246,...
func (mb *MetricsBuilder) RecordAerospikeNamespaceGeojsonRegionQueryFalsePositiveDataPoint(ts pcommon.Timestamp, inputVal string) error { val, err := strconv.ParseInt(inputVal, 10, 64) if err != nil { return fmt.Errorf("failed to parse int64 for AerospikeNamespaceGeojsonRegionQueryFalsePositive, value was %s: %w", ...
[ 0.03084040991961956, 0.4915560483932495, 0.07215475291013718, -0.7975339889526367, -0.34889838099479675, 0.5551313757896423, -0.7235571146011353, -0.3525373637676239, -0.36897608637809753, 0.2910800576210022, -0.15108230710029602, -0.023127201944589615, -0.1578385829925537, 0.5621430277824...
func (mb *MetricsBuilder) RecordAerospikeNamespaceGeojsonRegionQueryPointsDataPoint(ts pcommon.Timestamp, inputVal string) error { val, err := strconv.ParseInt(inputVal, 10, 64) if err != nil { return fmt.Errorf("failed to parse int64 for AerospikeNamespaceGeojsonRegionQueryPoints, value was %s: %w", inputVal, err)...
[ 0.2532670795917511, 0.15526768565177917, 0.09590557962656021, -0.6580559611320496, -0.4586475193500519, 0.8521918058395386, -0.49308139085769653, -0.7025488018989563, -0.037015896290540695, 0.48116743564605713, 0.025794561952352524, 0.8073703050613403, 0.33747023344039917, 0.28903949260711...
func (mb *MetricsBuilder) RecordAerospikeNamespaceGeojsonRegionQueryRequestsDataPoint(ts pcommon.Timestamp, inputVal string) error { val, err := strconv.ParseInt(inputVal, 10, 64) if err != nil { return fmt.Errorf("failed to parse int64 for AerospikeNamespaceGeojsonRegionQueryRequests, value was %s: %w", inputVal, ...
[ 0.022697875276207924, 0.07395372539758682, 0.23151154816150665, -0.4747273623943329, -0.6349465250968933, 0.9599646329879761, -0.8346132040023804, -0.9458750486373901, -0.07562771439552307, 0.1712215542793274, 0.3704925775527954, 0.8292139172554016, 0.24750791490077972, 0.3172318935394287,...
func (mb *MetricsBuilder) RecordAerospikeNamespaceMemoryFreeDataPoint(ts pcommon.Timestamp, inputVal string) error { val, err := strconv.ParseInt(inputVal, 10, 64) if err != nil { return fmt.Errorf("failed to parse int64 for AerospikeNamespaceMemoryFree, value was %s: %w", inputVal, err) } mb.metricAerospikeNames...
[ 0.5306261777877808, 0.7515014410018921, 0.12483508884906769, -0.8031691908836365, -0.48278242349624634, 0.3082570731639862, -0.5736191272735596, -0.7321592569351196, 0.011409624479711056, 0.1252177655696869, -0.1379973292350769, 0.7618977427482605, -0.4557853639125824, 0.47747939825057983,...
func (mb *MetricsBuilder) RecordAerospikeNamespaceMemoryUsageDataPoint(ts pcommon.Timestamp, inputVal string, namespaceComponentAttributeValue AttributeNamespaceComponent) error { val, err := strconv.ParseInt(inputVal, 10, 64) if err != nil { return fmt.Errorf("failed to parse int64 for AerospikeNamespaceMemoryUsag...
[ 0.3803826868534088, 0.07143624871969223, 0.18260256946086884, -1.0219022035598755, -0.3753662109375, 0.06388694047927856, -0.3962080478668213, -0.46066099405288696, 0.1295250654220581, 0.13138030469417572, 0.005803900770843029, 0.937893271446228, -0.008038520812988281, 0.4693799316883087, ...
func (mb *MetricsBuilder) RecordAerospikeNamespaceQueryCountDataPoint(ts pcommon.Timestamp, inputVal string, queryTypeAttributeValue AttributeQueryType, indexTypeAttributeValue AttributeIndexType, queryResultAttributeValue AttributeQueryResult) error { val, err := strconv.ParseInt(inputVal, 10, 64) if err != nil { ...
[ 0.21102382242679596, -0.20303036272525787, 0.17713285982608795, -0.8340319395065308, -0.4675174355506897, 0.746443510055542, -0.303788423538208, -0.6514852046966553, 0.06131969764828682, -0.12036997824907303, 0.13531580567359924, 0.5463148355484009, -0.05766873434185982, 0.2219139039516449...
func (mb *MetricsBuilder) RecordAerospikeNamespaceScanCountDataPoint(ts pcommon.Timestamp, inputVal string, scanTypeAttributeValue AttributeScanType, scanResultAttributeValue AttributeScanResult) error { val, err := strconv.ParseInt(inputVal, 10, 64) if err != nil { return fmt.Errorf("failed to parse int64 for Aero...
[ 0.3313028812408447, -0.25619086623191833, 0.19619394838809967, -0.5446906089782715, -0.6187210083007812, 0.7705676555633545, -0.10959704965353012, -0.6468902826309204, 0.11485756933689117, -0.1871388703584671, 0.09354736655950546, 0.21413357555866241, 0.08181660622358322, 0.165730848908424...
func (mb *MetricsBuilder) RecordAerospikeNamespaceTransactionCountDataPoint(ts pcommon.Timestamp, inputVal string, transactionTypeAttributeValue AttributeTransactionType, transactionResultAttributeValue AttributeTransactionResult) error { val, err := strconv.ParseInt(inputVal, 10, 64) if err != nil { return fmt.Err...
[ 0.5412227511405945, 0.041704289615154266, 0.21498830616474152, -1.3107130527496338, -0.2191285490989685, -0.05052313581109047, -0.06553146988153458, -0.4859262704849243, -0.30344781279563904, 0.35995396971702576, -0.13513405621051788, 0.15831738710403442, 0.03979356586933136, -0.0136459181...
func (mb *MetricsBuilder) RecordAerospikeNodeConnectionCountDataPoint(ts pcommon.Timestamp, inputVal string, connectionTypeAttributeValue AttributeConnectionType, connectionOpAttributeValue AttributeConnectionOp) error { val, err := strconv.ParseInt(inputVal, 10, 64) if err != nil { return fmt.Errorf("failed to par...
[ -0.2034270167350769, -0.2136162966489792, 0.18706437945365906, -0.8396424055099487, 0.07685934752225876, 0.15929237008094788, -0.08097691833972931, -0.24808259308338165, -0.7082491517066956, 0.09065569937229156, 0.4986574053764343, 0.28298959136009216, 0.3501640558242798, -0.14282733201980...
func (mb *MetricsBuilder) RecordAerospikeNodeConnectionOpenDataPoint(ts pcommon.Timestamp, inputVal string, connectionTypeAttributeValue AttributeConnectionType) error { val, err := strconv.ParseInt(inputVal, 10, 64) if err != nil { return fmt.Errorf("failed to parse int64 for AerospikeNodeConnectionOpen, value was...
[ -0.8022283911705017, 0.048290107399225235, 0.2406313568353653, -1.0425653457641602, -0.2800742983818054, 0.30677834153175354, -0.041607510298490524, 0.08596543967723846, -0.6706717610359192, -0.11381471157073975, 0.6663058400154114, 0.5578663349151611, -0.03234335407614708, -0.315721958875...
func (mb *MetricsBuilder) RecordAerospikeNodeMemoryFreeDataPoint(ts pcommon.Timestamp, inputVal string) error { val, err := strconv.ParseInt(inputVal, 10, 64) if err != nil { return fmt.Errorf("failed to parse int64 for AerospikeNodeMemoryFree, value was %s: %w", inputVal, err) } mb.metricAerospikeNodeMemoryFree....
[ 0.1989198923110962, 0.9981355667114258, 0.1823292374610901, -1.0056736469268799, -0.14000838994979858, 0.09193889796733856, -0.206694096326828, -0.6086245775222778, -0.49404916167259216, 0.11187206953763962, -0.031654536724090576, 1.039610743522644, -0.09360842406749725, 0.1459668725728988...
func (mb *MetricsBuilder) RecordAerospikeNodeQueryTrackedDataPoint(ts pcommon.Timestamp, inputVal string) error { val, err := strconv.ParseInt(inputVal, 10, 64) if err != nil { return fmt.Errorf("failed to parse int64 for AerospikeNodeQueryTracked, value was %s: %w", inputVal, err) } mb.metricAerospikeNodeQueryTr...
[ -0.09954597800970078, 0.3809634745121002, 0.3373018205165863, -0.5703427195549011, 0.2934549152851105, 0.7666502594947815, -0.0322217121720314, -0.2606477737426758, -0.6121023297309875, -0.07092076539993286, -0.09373573213815689, 0.8190061450004578, 0.09394846856594086, -0.3898217082023620...
func (mb *MetricsBuilder) Reset(options ...metricBuilderOption) { mb.startTime = pcommon.NewTimestampFromTime(time.Now()) for _, op := range options { op(mb) } }
[ 0.008591088466346264, 0.4988720715045929, 0.44919297099113464, 1.5256903171539307, 0.6919456720352173, 0.8585705161094666, 1.962134838104248, -0.18661335110664368, -0.778505802154541, 0.3467910587787628, 0.34228888154029846, 0.38985690474510193, -1.1954152584075928, -0.07603254169225693, ...
func MakeTriangleFilter() *Filter { f := new(Filter) f.F = func(x float64, scaleFactor float64) float64 { if x < 1.0 { return 1.0 - x } return 0.0 } f.Radius = func(scaleFactor float64) float64 { return 1.0 } return f }
[ 0.2810344398021698, -0.03852082043886185, 0.3366156816482544, -0.991063117980957, -0.5544004440307617, -0.08864231407642365, 0.6590359807014465, -0.5670155882835388, -0.3428805470466614, -0.16565802693367004, -0.38169577717781067, 0.48672184348106384, 0.2917605936527252, -1.252673029899597...
func MakeBoxAvgFilter() *Filter { f := new(Filter) f.F = func(x float64, scaleFactor float64) float64 { if x < 0.499999 { return 1.0 } if x <= 0.500001 { return 0.5 } return 0.0 } f.Radius = func(scaleFactor float64) float64 { return 0.5001 } return f }
[ -0.6576480865478516, 0.05557909980416298, 0.7055007815361023, -0.6640568375587463, -1.1050381660461426, 0.1288689374923706, 0.212017223238945, -1.197529911994934, -0.6499990224838257, -0.045520979911088943, -0.9273802638053894, 0.6995323300361633, 0.19960062205791473, 0.1519487202167511, ...
func MakeGaussianFilter() *Filter { f := new(Filter) f.F = func(x float64, scaleFactor float64) float64 { if x >= 2.0 { return 0.0 } v := math.Exp(-2.0*x*x) * 0.79788456080286535587989 if x <= 1.999 { return v } // Slightly alter the filter to make it continuous: return 1000.0 * (2.0 - x) * v } ...
[ -0.1073451042175293, -0.537717878818512, 0.6796634197235107, -0.1934082806110382, -0.9074705243110657, 0.07175421714782715, -0.22170372307300568, -0.15373440086841583, -0.5033496618270874, -0.5106424689292908, -0.3056595027446747, 0.5076907277107239, 0.2879449129104614, -0.6728504300117493...
func MakeCubicFilter(b float64, c float64) *Filter { var radius float64 if b == 0 && c == 0 { radius = 1.0 } else { radius = 2.0 } f := new(Filter) f.F = func(x float64, scaleFactor float64) float64 { if x < 1.0 { return ((12.0-9.0*b-6.0*c)*x*x*x + (-18.0+12.0*b+6.0*c)*x*x + (6.0 - 2.0*b)) / 6.0 ...
[ 0.5501686930656433, -0.6326926350593567, 0.7312216758728027, -0.5442112684249878, -0.48987501859664917, 0.15767815709114075, -0.03107946179807186, -0.5717296600341797, -0.9698873162269592, -0.15812407433986664, -0.17410853505134583, 0.48361825942993164, -0.1452580988407135, -1.137637019157...
func MakeLanczosFilter(lobes int) *Filter { radius := float64(lobes) f := new(Filter) f.F = func(x float64, scaleFactor float64) float64 { if x < radius { return Sinc(x) * Sinc(x/radius) } return 0.0 } f.Radius = func(scaleFactor float64) float64 { return radius } return f }
[ 0.46262404322624207, -0.27006223797798157, 0.37725919485092163, -0.7954036593437195, -0.8065109848976135, 0.24463365972042084, -0.21265843510627747, -0.5856236219406128, 0.02285117655992508, -0.3043861985206604, -0.4071700870990753, 0.42225465178489685, 0.1306273192167282, -0.5388583540916...
func MakePixelMixingFilter() *Filter { f := new(Filter) f.F = func(x float64, scaleFactor float64) float64 { var p float64 if scaleFactor < 1.0 { p = scaleFactor } else { p = 1.0 / scaleFactor } if x < 0.5-p/2.0 { return 1.0 } else if x < 0.5+p/2.0 { return 0.5 - (x-0.5)/p } return 0.0 } ...
[ -0.11834502965211868, -0.45391157269477844, 0.7005087733268738, -0.2273947149515152, -1.0078487396240234, 0.06286551058292389, 0.18287187814712524, -0.5922735333442688, -0.04708712548017502, -0.346663236618042, -0.190334752202034, -0.15533462166786194, -0.4678882956504822, -0.0021356500219...
func New(ctx context.Context, config *types.Config, nodeIP string) (*Docker, error) { d := &Docker{ config: config, cas: utils.NewGroupCAS(), nodeIP: nodeIP, transfers: utils.NewHashBackends(config.Metrics.Transfers), } logger := log.WithFunc("runtime.docker.New").WithField("nodeIP", d.nodeIP) ...
[ 0.2863774001598358, 0.3319931924343109, 0.6883977651596069, -0.05526527389883995, -0.5027041435241699, -0.20936907827854156, 0.48814070224761963, 0.12953311204910278, -1.0979021787643433, 0.06601246446371078, 0.3129230737686157, 0.5315035581588745, 0.5887348651885986, 1.193324089050293, ...
func (d *Docker) ListWorkloadIDs(ctx context.Context, filters map[string]string) ([]string, error) { f := d.getFilterArgs(filters) opts := enginetypes.ContainerListOptions{Filters: f, All: true} var containers []enginetypes.Container var err error utils.WithTimeout(ctx, d.config.GlobalConnectionTimeout, func(ctx ...
[ -0.25554266571998596, -0.24883151054382324, 0.6146404147148132, -0.4309384524822235, -0.2710104286670685, -0.14871922135353088, -0.7900203466415405, -1.390432357788086, 0.7141660451889038, 1.0495902299880981, -0.21593469381332397, 1.4357112646102905, -0.8319831490516663, 0.3343540132045746...
func (d *Docker) checkHostname(env []string) bool { for _, e := range env { ps := strings.SplitN(e, "=", 2) if len(ps) != 2 { continue } if ps[0] == "ERU_NODE_NAME" && ps[1] == d.config.HostName { return true } } return false }
[ -1.0105295181274414, -0.04737938195466995, 0.848885178565979, 1.1237578392028809, 0.2375371903181076, 0.4611451327800751, 0.18262432515621185, 0.5962740778923035, -0.7718241214752197, 1.1269780397415161, -0.08511829376220703, 0.6218367218971252, 0.022563409060239792, 0.8740668892860413, ...
func (d *Docker) detectWorkload(ctx context.Context, ID string) (*Container, error) { // 标准化为 inspect 的数据 var c enginetypes.ContainerJSON var err error utils.WithTimeout(ctx, d.config.GlobalConnectionTimeout, func(ctx context.Context) { c, err = d.client.ContainerInspect(ctx, ID) }) if err != nil { return nil...
[ -0.8448950052261353, -0.12934251129627228, 1.043331503868103, -0.17043659090995789, 0.29463210701942444, -0.27882441878318787, 0.5208388566970825, -0.28631049394607544, -0.05664220079779625, 0.44024550914764404, -0.4467482268810272, 0.009075724519789219, -0.05343661457300186, 0.58200985193...
func (d *Docker) Events(ctx context.Context, filters map[string]string) (<-chan *types.WorkloadEventMessage, <-chan error) { eventChan := make(chan *types.WorkloadEventMessage) errChan := make(chan error) _ = utils.Pool.Submit(func() { defer close(eventChan) defer close(errChan) f := d.getFilterArgs(filters)...
[ -1.0425323247909546, 0.21021056175231934, 0.6092493534088135, -0.8409376740455627, 0.6346127986907959, -0.5749368667602539, 0.3652518093585968, -1.408233880996704, -0.27847492694854736, 0.11473070085048676, 0.34687063097953796, 1.1171765327453613, -0.41035208106040955, 0.5793721079826355, ...
func (d *Docker) GetStatus(ctx context.Context, ID string, checkHealth bool) (*types.WorkloadStatus, error) { logger := log.WithFunc("GetStatus").WithField("ID", ID) container, err := d.detectWorkload(ctx, ID) if err != nil { logger.Error(ctx, err, "failed to detect workload") return nil, err } bytes, err := ...
[ -0.5198233127593994, -0.2934832274913788, 0.6692385077476501, 0.07655435055494308, 0.5241907238960266, -0.17388242483139038, -0.27934062480926514, -0.6353555917739868, 0.581911563873291, 0.43497639894485474, -0.13508957624435425, 1.107555866241455, -0.5226011276245117, 0.3488422930240631, ...
func (d *Docker) GetWorkloadName(ctx context.Context, ID string) (string, error) { var containerJSON enginetypes.ContainerJSON var err error utils.WithTimeout(ctx, d.config.GlobalConnectionTimeout, func(ctx context.Context) { containerJSON, err = d.client.ContainerInspect(ctx, ID) }) if err != nil { log.WithFu...
[ -0.8957615494728088, 0.3899635076522827, 1.2027183771133423, -0.4318377673625946, -0.8930075764656067, -0.5641617774963379, -0.08319522440433502, -1.7336550951004028, 0.3060145080089569, 1.116794466972351, -0.5379125475883484, 0.7793457508087158, -0.12729786336421967, 0.39958614110946655, ...
func (d *Docker) IsDaemonRunning(ctx context.Context) bool { var err error utils.WithTimeout(ctx, d.config.GlobalConnectionTimeout, func(ctx context.Context) { _, err = d.client.Ping(ctx) }) if err != nil { log.WithFunc("IsDaemonRunning").Error(ctx, err, "connect to docker daemon failed") return false } ret...
[ -1.2753275632858276, 0.019485490396618843, 0.8456897139549255, 0.27327287197113037, -0.06031601503491402, 0.3821801543235779, -0.1381271481513977, 0.5115009546279907, 0.7352748513221741, -0.24834339320659637, 0.01483320165425539, 0.6620819568634033, -0.6030845642089844, -0.1716993302106857...
func (d *Docker) Name() string { return "docker" }
[ -0.803453803062439, 0.20189432799816132, 0.4276086986064911, 0.4702150523662567, -0.6711452603340149, 0.15035507082939148, 0.3204232156276703, -0.15635335445404053, 0.008506609126925468, 0.5599988102912903, -0.5016531944274902, 0.2495538294315338, 1.2215405702590942, 1.538418173789978, -...
func LogInfo(ctx context.Context, format string, a ...interface{}) string { return logLevel(ctx, "INFO", format, a...) }
[ 0.23466084897518158, -0.592022716999054, 0.5586842894554138, -0.010329951532185078, 0.2672155797481537, 0.3993043899536133, -1.1881158351898193, -0.5529281497001648, -0.31643396615982056, -0.4119679033756256, 0.08775448799133301, 0.5388428568840027, 0.6267659664154053, -0.0358419232070446,...
func LogPanic(ctx context.Context, format string, a ...interface{}) string { message := logLevel(ctx, "PANIC", format, a...) panic(message) }
[ 0.5779898762702942, -0.27297887206077576, 0.3921477496623993, 0.12517191469669342, -0.03399595618247986, 0.38070619106292725, -0.6656619906425476, -0.7292602062225342, 0.16537700593471527, -0.6150875091552734, 0.12709753215312958, 1.1168750524520874, 0.7591778635978699, 0.18376481533050537...
func FindOne(q *mgo.Query, d interface{}) (bool, error) { err := q.One(d) if err == nil { return true, nil } if err.Error() == "not found" { return false, nil } return false, err }
[ -0.7474939823150635, 0.8490185141563416, 0.8439507484436035, 0.2518722116947174, -0.004243385978043079, 0.8986198902130127, 0.13498656451702118, -0.3264012932777405, -0.44382113218307495, 0.44678008556365967, -0.3788009285926819, -0.6491774916648865, -0.8876928687095642, 0.9876859784126282...
func getPquotaState() *pquotaState { pquotaStateOnce.Do(func() { pquotaStateInst = &pquotaState{ nextProjectID: 1, } }) return pquotaStateInst }
[ -0.10317828506231308, 0.04529620707035065, 0.2872013449668884, -0.11493122577667236, -0.4303852915763855, 0.48089510202407837, -0.2544313073158264, -0.39351099729537964, 0.11959536373615265, -0.4693845510482788, -0.24249091744422913, -0.1319362223148346, -0.7985142469406128, -0.96659797430...
func (state *pquotaState) updateMinProjID(minProjectID uint32) { state.Lock() defer state.Unlock() if state.nextProjectID <= minProjectID { state.nextProjectID = minProjectID + 1 } }
[ -0.6235450506210327, -0.4149474501609802, 0.40603554248809814, -0.4151831567287445, -1.4278452396392822, 1.3246862888336182, -0.16039028763771057, -0.6186487078666687, 0.656214714050293, 0.28866446018218994, 0.009569689631462097, 0.7857632637023926, -1.7608510255813599, -0.0823472440242767...
func NewControl(basePath string) (*Control, error) { // // If we are running in a user namespace quota won't be supported for // now since makeBackingFsDev() will try to mknod(). // if userns.RunningInUserNS() { return nil, ErrQuotaNotSupported } // // create backing filesystem device node // backingFsBloc...
[ 0.2857121527194977, 0.2576422095298767, 0.8063010573387146, 0.42727580666542053, 0.0014902331167832017, 0.11901016533374786, 0.44868674874305725, -1.031022310256958, 0.2183334231376648, -0.4062148332595825, 0.28097495436668396, -0.24084177613258362, 0.08617810159921646, 0.05817334726452827...
func (q *Control) SetQuota(targetPath string, quota Quota) error { q.RLock() projectID, ok := q.quotas[targetPath] q.RUnlock() if !ok { state := getPquotaState() state.Lock() projectID = state.nextProjectID // // assign project id to new container directory // err := setProjectID(targetPath, projectI...
[ -0.8381938338279724, 0.10304829478263855, 0.6274259090423584, 0.5168794989585876, 0.7060086727142334, -0.14257606863975525, 0.54009610414505, -0.21399223804473877, -0.1501711905002594, 0.06537728011608124, 0.32374483346939087, 0.6693786978721619, 0.09556055814027786, -0.3648313283920288, ...
func setProjectQuota(backingFsBlockDev string, projectID uint32, quota Quota) error { var d C.fs_disk_quota_t d.d_version = C.FS_DQUOT_VERSION d.d_id = C.__u32(projectID) d.d_flags = C.XFS_PROJ_QUOTA d.d_fieldmask = C.FS_DQ_BHARD | C.FS_DQ_BSOFT d.d_blk_hardlimit = C.__u64(quota.Size / 512) d.d_blk_softlimit = ...
[ -0.19923825562000275, 0.5426185727119446, 0.8684915900230408, 0.3896915912628174, -0.49926459789276123, -0.1391260325908661, -0.08373129367828369, -0.3900211751461029, -0.8189537525177002, 0.5804895162582397, 0.10543917119503021, 0.4371090531349182, -0.03972629830241203, -0.063411734998226...
func (q *Control) GetQuota(targetPath string, quota *Quota) error { q.RLock() projectID, ok := q.quotas[targetPath] q.RUnlock() if !ok { return errors.Errorf("quota not found for path: %s", targetPath) } // // get the quota limit for the container's project id // var d C.fs_disk_quota_t cs := C.CString(q....
[ -0.061372045427560806, 0.9495694041252136, 0.8899900913238525, 0.6556181311607361, 0.618645191192627, -0.776644229888916, 0.3133237659931183, -0.6818986535072327, -0.3599136173725128, 0.23718483746051788, 0.4961997866630554, 0.8274238705635071, 0.24914908409118652, -0.47805455327033997, ...
func getProjectID(targetPath string) (uint32, error) { dir, err := openDir(targetPath) if err != nil { return 0, err } defer closeDir(dir) var fsx C.struct_fsxattr _, _, errno := unix.Syscall(unix.SYS_IOCTL, getDirFd(dir), C.FS_IOC_FSGETXATTR, uintptr(unsafe.Pointer(&fsx))) if errno != 0 { return 0, error...
[ 0.10558175295591354, 0.45140165090560913, 0.970602810382843, 0.15454940497875214, -0.7048593163490295, 0.25400030612945557, 0.9770265817642212, 0.09104762971401215, 0.30327221751213074, 0.2855331599712372, 0.5676766633987427, -0.16901154816150665, -0.39690712094306946, -0.217695951461792, ...
func setProjectID(targetPath string, projectID uint32) error { dir, err := openDir(targetPath) if err != nil { return err } defer closeDir(dir) var fsx C.struct_fsxattr _, _, errno := unix.Syscall(unix.SYS_IOCTL, getDirFd(dir), C.FS_IOC_FSGETXATTR, uintptr(unsafe.Pointer(&fsx))) if errno != 0 { return err...
[ -0.26101627945899963, -0.10930382460355759, 0.6951075196266174, 0.039467185735702515, -0.6080811619758606, 0.48389512300491333, 0.3697364330291748, -0.023926857858896255, -0.009347441606223583, 0.5400180220603943, 0.14108483493328094, 0.5135923027992249, -0.034062109887599945, 0.1992708295...
func (q *Control) findNextProjectID(home string, baseID uint32) error { state := getPquotaState() state.Lock() defer state.Unlock() checkProjID := func(path string) (uint32, error) { projid, err := getProjectID(path) if err != nil { return projid, err } if projid > 0 { q.quotas[path] = projid } i...
[ 0.294292151927948, -0.1841057687997818, 0.8996819853782654, 0.2570914328098297, -0.8126795291900635, 0.4140053391456604, 0.38250553607940674, -0.8613523244857788, -0.2257479578256607, 0.5085969567298889, 0.28433141112327576, 0.24490886926651, -0.8616178035736084, 0.9643819332122803, 0.10...
func makeBackingFsDev(home string) (string, error) { var stat unix.Stat_t if err := unix.Stat(home, &stat); err != nil { return "", err } backingFsBlockDev := path.Join(home, "backingFsBlockDev") // Re-create just in case someone copied the home directory over to a new device unix.Unlink(backingFsBlockDev) er...
[ 0.18963773548603058, 0.46579766273498535, 0.7659838199615479, 0.5847803354263306, -0.11816873401403427, -0.42059844732284546, 0.47433972358703613, -0.354268878698349, 0.4047700762748718, -0.7664103507995605, 0.3004196584224701, 0.20491695404052734, 0.17239998281002045, 0.2424665093421936, ...
func (r *CreateAuditRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "IsEnableCmqNotify") delete(f, "ReadWriteAttribute") delete(f, "AuditName") delete(f, "CosRegion") delete(f, "IsCreateNewBucket") delete...
[ 0.1591915488243103, -1.1587580442428589, 0.40525057911872864, -0.767700731754303, -0.8928540945053101, 0.031123418360948563, 0.18964505195617676, -0.701076090335846, 0.07330666482448578, 0.5696353316307068, 0.2519289255142212, 1.0040457248687744, -0.22973601520061493, -0.12626910209655762,...
func (r *CreateAuditResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) }
[ 0.5743230581283569, -1.2473982572555542, 0.11946804821491241, -0.9830807447433472, -0.8890486359596252, 0.16140545904636383, 0.3689441978931427, -0.8467475771903992, 0.9009406566619873, 0.41559404134750366, -0.06625446677207947, 0.41715070605278015, 0.12793654203414917, -1.183912754058838,...
func (r *CreateAuditTrackRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "Name") delete(f, "ActionType") delete(f, "ResourceType") delete(f, "Status") delete(f, "EventNames") delete(f, "Storage") delete(...
[ 0.07734834402799606, -0.5259731411933899, 0.3915509879589081, -0.5218238830566406, -0.713546872138977, -0.01197542529553175, 0.28789034485816956, -0.6873229146003723, -0.11306169629096985, 0.4602099657058716, 0.2054322510957718, 0.7226429581642151, 0.24709691107273102, -0.4105687439441681,...
func (r *CreateAuditTrackResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) }
[ 0.5211060047149658, -0.6560472249984741, 0.16329145431518555, -0.9299957752227783, -0.8193548321723938, 0.015382833778858185, 0.618526816368103, -0.974046528339386, 0.5571835041046143, 0.32976698875427246, 0.03876401484012604, 0.21268512308597565, 0.335344523191452, -0.9324982166290283, ...