Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 117 for Decrement (0.43 sec)

  1. pkg/monitoring/example_sum_test.go

    	requests = monitoring.NewSum(
    		"requests_total",
    		"Number of requests handled, by protocol",
    	)
    )
    
    func ExampleNewSum() {
    	// increment on every http request
    	requests.With(protocol.Value("http")).Increment()
    
    	// count gRPC requests double
    	requests.With(protocol.Value("grpc")).Record(2)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1005 bytes
    - Viewed (0)
  2. security/pkg/server/ca/server.go

    func (s *Server) CreateCertificate(ctx context.Context, request *pb.IstioCertificateRequest) (
    	*pb.IstioCertificateResponse, error,
    ) {
    	s.monitoring.CSR.Increment()
    	caller, err := security.Authenticate(ctx, s.Authenticators)
    	if caller == nil || err != nil {
    		s.monitoring.AuthnError.Increment()
    		return nil, status.Error(codes.Unauthenticated, "request authenticate failure")
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 17:35:26 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.cc

        }
    
        // Set the increment to 256 * delta.
        Type u64 = rewriter.getIntegerType(64, /*isSigned=*/false);
        RankedTensorType u64_scalar = RankedTensorType::get({}, u64);
        Value step_size = rewriter.create<ConstOp>(loc, GetScalarOfType(u64, 256));
        Value increment =
            rewriter.create<MulOp>(loc, u64_scalar, step_size, rng_op.getDelta());
    
        // Increment the counter.
        SmallVector<Value, 4> pack_args;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  4. pkg/security/retry.go

    // Instead, we can wrap the backoff hook to log/increment metrics before returning the backoff result.
    func wrapBackoffWithMetrics(bf retry.BackoffFunc) retry.BackoffFunc {
    	return func(attempt uint) time.Duration {
    		wait := bf(attempt)
    		caLog.Warnf("ca request failed, starting attempt %d in %v", attempt, wait)
    		monitoring.NumOutgoingRetries.With(monitoring.RequestType.Value(monitoring.CSR)).Increment()
    		return wait
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/metrics_test.go

    	manager.SetGroups(apis.Items)
    
    	interests := []string{"aggregator_discovery_aggregation_count_total"}
    
    	_, _, _ = fetchPath(manager, "application/json", discoveryPath, "")
    	// A single fetch should aggregate and increment regeneration counter.
    	if err := testutil.GatherAndCompare(legacyregistry.DefaultGatherer, formatExpectedMetrics(1), interests...); err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 09 17:24:02 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. test/prove_invert_loop_with_unused_iterators.go

    // errorcheck -0 -d=ssa/prove/debug=1
    
    //go:build amd64
    
    package main
    
    func invert(b func(), n int) {
    	for i := 0; i < n; i++ { // ERROR "(Inverted loop iteration|Induction variable: limits \[0,\?\), increment 1)"
    		b()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 225 bytes
    - Viewed (0)
  7. src/cmd/go/internal/telemetrystats/telemetrystats_bootstrap.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cmd_go_bootstrap
    
    package telemetrystats
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 233 bytes
    - Viewed (0)
  8. internal/bucket/bandwidth/measurement.go

    		m.expMovingAvg = float64(bytesSinceLastWindow) / duration.Seconds()
    		return
    	}
    
    	increment := float64(bytesSinceLastWindow) / duration.Seconds()
    	m.expMovingAvg = exponentialMovingAverage(betaBucket, m.expMovingAvg, increment)
    }
    
    // exponentialMovingAverage calculates the exponential moving average
    func exponentialMovingAverage(beta, previousAvg, incrementAvg float64) float64 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 03 20:41:51 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. test/fixedbugs/issue19182.go

    	i, val := 0, atomic.LoadUint64(&a)
    	for ; val == 0 && i < 100; val, i = atomic.LoadUint64(&a), i+1 {
    		time.Sleep(100 * time.Millisecond)
    	}
    	if val == 0 {
    		fmt.Printf("Failed to observe atomic increment after %d tries\n", i)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 737 bytes
    - Viewed (0)
  10. pilot/pkg/model/monitoring.go

    	"provider_lookup_cluster_failures",
    	"Number of times a cluster lookup failed",
    )
    
    func IncLookupClusterFailures(provider string) {
    	providerLookupClusterFailures.With(typeTag.Value(provider)).Increment()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 904 bytes
    - Viewed (0)
Back to top