Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for counter (0.14 sec)

  1. cmd/http-stats.go

    	sync.RWMutex
    }
    
    // Inc increments the api stats counter.
    func (stats *HTTPAPIStats) Inc(api string) {
    	if stats == nil {
    		return
    	}
    	stats.Lock()
    	defer stats.Unlock()
    	if stats.apiStats == nil {
    		stats.apiStats = make(map[string]int)
    	}
    	stats.apiStats[api]++
    }
    
    // Dec increments the api stats counter.
    func (stats *HTTPAPIStats) Dec(api string) {
    	if stats == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  2. cmd/metrics-v3-types.go

    type MetricType int
    
    const (
    	// CounterMT - represents a counter metric.
    	CounterMT MetricType = iota
    	// GaugeMT - represents a gauge metric.
    	GaugeMT
    	// HistogramMT - represents a histogram metric.
    	HistogramMT
    )
    
    func (mt MetricType) String() string {
    	switch mt {
    	case CounterMT:
    		return "counter"
    	case GaugeMT:
    		return "gauge"
    	case HistogramMT:
    		return "histogram"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:05:22 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  3. cmd/erasure-healing-common.go

    	}
    
    	maxima = 0 // Counter for remembering max occurrence of elements.
    	latest := int64(0)
    
    	// Find the common cardinality from previously collected
    	// occurrences of elements.
    	for nano, count := range timeOccurrenceMap {
    		if count < maxima {
    			continue
    		}
    
    		// We are at or above maxima
    		if count > maxima || nano > latest {
    			maxima = count
    			latest = nano
    		}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  4. cmd/api-router.go

    	return handler
    }
    
    // registerAPIRouter - registers S3 compatible APIs.
    func registerAPIRouter(router *mux.Router) {
    	// Initialize API.
    	api := objectAPIHandlers{
    		ObjectAPI: newObjectLayerFn,
    	}
    
    	// API Router
    	apiRouter := router.PathPrefix(SlashSeparator).Subrouter()
    
    	var routers []*mux.Router
    	for _, domainName := range globalDomainNames {
    		if IsKubernetes() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  5. cmd/admin-router.go

    type adminAPIHandlers struct{}
    
    // registerAdminRouter - Add handler functions for each service REST API routes.
    func registerAdminRouter(router *mux.Router, enableConfigOps bool) {
    	adminAPI := adminAPIHandlers{}
    	// Admin router
    	adminRouter := router.PathPrefix(adminPathPrefix).Subrouter()
    
    	adminVersions := []string{
    		adminAPIVersionPrefix,
    	}
    
    	for _, adminVersion := range adminVersions {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/envoy/configdump/listener.go

    	}
    	a, ok := r.GetAction().(*route.Route_Route)
    	if !ok {
    		return ""
    	}
    	cl, ok := a.Route.ClusterSpecifier.(*route.RouteAction_Cluster)
    	if !ok {
    		return ""
    	}
    	if strings.Contains(cl.Cluster, "Cluster") {
    		return cl.Cluster
    	}
    	return fmt.Sprintf("Cluster: %s", cl.Cluster)
    }
    
    func describeDomains(vh *route.VirtualHost) string {
    	if len(vh.GetDomains()) == 1 && vh.GetDomains()[0] == "*" {
    		return ""
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  7. operator/cmd/mesh/manifest_shared_test.go

    		return nil, err
    	}
    
    	return NewObjectSet(getAllIstioObjects()), nil
    }
    
    // fakeInstallOperator installs the operator manifest resources into a cluster using the given reconciler.
    // The installation is for testing with a kubebuilder fake cluster only, since no functional Deployment will be
    // created.
    func fakeInstallOperator(reconciler *helmreconciler.HelmReconciler, chartSource chartSourceType) error {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 20 22:39:28 GMT 2024
    - 11.7K bytes
    - Viewed (1)
  8. istioctl/pkg/multixds/gather.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package multixds
    
    // multixds knows how to target either central Istiod or all the Istiod pods on a cluster.
    
    import (
    	"context"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"io"
    	"net"
    	"net/url"
    	"os"
    	"strings"
    
    	discovery "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  9. internal/config/api/api.go

    	"github.com/minio/pkg/v2/env"
    )
    
    // API sub-system constants
    const (
    	apiRequestsMax             = "requests_max"
    	apiRequestsDeadline        = "requests_deadline"
    	apiClusterDeadline         = "cluster_deadline"
    	apiCorsAllowOrigin         = "cors_allow_origin"
    	apiRemoteTransportDeadline = "remote_transport_deadline"
    	apiListQuorum              = "list_quorum"
    	apiReplicationPriority     = "replication_priority"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 01:08:07 GMT 2024
    - 11.1K bytes
    - Viewed (1)
  10. cmd/bucket-replication-stats.go

    				Stats: make(map[string]*BucketReplicationStat),
    			},
    			QueueStats: ReplicationQueueStats{},
    			ProxyStats: ProxyMetric{},
    		}
    		return bs
    	}
    	var s BucketReplicationStats
    	// accumulate cluster bucket stats
    	stats := make(map[string]*BucketReplicationStat)
    	var (
    		totReplicaSize, totReplicatedSize   int64
    		totReplicaCount, totReplicatedCount int64
    		totFailed                           RTimedMetrics
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
Back to top