Skip to main content
Google Cloud
Documentation Technology areas
  • AI and ML
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Distributed, hybrid, and multicloud
  • Generative AI
  • Industry solutions
  • Networking
  • Observability and monitoring
  • Security
  • Storage
Cross-product tools
  • Access and resources management
  • Costs and usage management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
  • Migration
Related sites
  • Google Cloud Home
  • Free Trial and Free Tier
  • Architecture Center
  • Blog
  • Contact Sales
  • Google Cloud Developer Center
  • Google Developer Center
  • Google Cloud Marketplace
  • Google Cloud Marketplace Documentation
  • Google Cloud Skills Boost
  • Google Cloud Solution Center
  • Google Cloud Support
  • Google Cloud Tech Youtube Channel
/
  • English
  • Deutsch
  • Español – América Latina
  • Français
  • Português – Brasil
  • 中文 – 简体
  • 日本語
  • 한국어
Console Sign in
  • Apigee
Overview Guides Reference Support Resources
Contact Us Start free
Google Cloud
  • Documentation
    • Overview
    • Guides
    • Reference
    • Support
    • Resources
  • Technology areas
    • More
  • Cross-product tools
    • More
  • Related sites
    • More
  • Console
  • Contact Us
  • Start free
  • APIGEE API
  • Overview
  • v1
    • REST Resources
    • organizations
      • Overview
      • create
      • delete
      • get
      • getControlPlaneAccess
      • getProjectMapping
      • getSecuritySettings
      • getSyncAuthorization
      • list
      • setAddons
      • setSyncAuthorization
      • update
      • updateControlPlaneAccess
      • updateSecuritySettings
    • organizations.analytics.datastores
      • Overview
      • create
      • delete
      • get
      • list
      • test
      • update
    • organizations.apiproducts
      • Overview
      • attributes
      • create
      • delete
      • get
      • list
      • move
      • update
    • organizations.apiproducts.attributes
      • Overview
      • delete
      • get
      • list
      • updateApiProductAttribute
    • organizations.apiproducts.rateplans
      • Overview
      • create
      • delete
      • get
      • list
      • update
    • organizations.apis
      • Overview
      • create
      • delete
      • get
      • list
      • move
      • patch
    • organizations.apis.debugsessions
      • Overview
      • list
    • organizations.apis.deployments
      • Overview
      • list
    • organizations.apis.keyvaluemaps
      • Overview
      • create
      • delete
      • list
    • organizations.apis.keyvaluemaps.entries
      • Overview
      • create
      • delete
      • get
      • list
      • update
    • organizations.apis.revisions
      • Overview
      • delete
      • get
      • list
      • updateApiProxyRevision
    • organizations.apis.revisions.deployments
      • Overview
      • list
    • organizations.appgroups
      • Overview
      • create
      • delete
      • get
      • list
      • update
    • organizations.appgroups.apps
      • Overview
      • create
      • delete
      • get
      • list
      • update
    • organizations.appgroups.apps.keys
      • Overview
      • create
      • delete
      • get
      • updateAppGroupAppKey
    • organizations.appgroups.apps.keys.apiproducts
      • Overview
      • delete
      • updateAppGroupAppKeyApiProduct
    • organizations.apps
      • Overview
      • get
      • list
    • organizations.datacollectors
      • Overview
      • create
      • delete
      • get
      • list
      • patch
    • organizations.deployments
      • Overview
      • list
    • organizations.developers
      • Overview
      • attributes
      • create
      • delete
      • get
      • getBalance
      • getMonetizationConfig
      • list
      • setDeveloperStatus
      • update
      • updateMonetizationConfig
    • organizations.developers.apps
      • Overview
      • attributes
      • create
      • delete
      • generateKeyPairOrUpdateDeveloperAppStatus
      • get
      • list
      • update
    • organizations.developers.apps.attributes
      • Overview
      • delete
      • get
      • list
      • updateDeveloperAppAttribute
    • organizations.developers.apps.keys
      • Overview
      • create
      • delete
      • get
      • replaceDeveloperAppKey
      • updateDeveloperAppKey
    • organizations.developers.apps.keys.apiproducts
      • Overview
      • delete
      • updateDeveloperAppKeyApiProduct
    • organizations.developers.apps.keys.create
      • Overview
      • create
    • organizations.developers.attributes
      • Overview
      • delete
      • get
      • list
      • updateDeveloperAttribute
    • organizations.developers.balance
      • Overview
      • adjust
      • credit
    • organizations.developers.subscriptions
      • Overview
      • create
      • expire
      • get
      • list
    • organizations.dnsZones
      • Overview
      • create
      • delete
      • get
      • list
    • organizations.endpointAttachments
      • Overview
      • create
      • delete
      • get
      • list
    • organizations.envgroups
      • Overview
      • create
      • delete
      • get
      • list
      • patch
    • organizations.envgroups.attachments
      • Overview
      • create
      • delete
      • get
      • list
    • organizations.environments
      • Overview
      • create
      • delete
      • get
      • getAddonsConfig
      • getApiSecurityRuntimeConfig
      • getDebugmask
      • getIamPolicy
      • getSecurityActionsConfig
      • getTraceConfig
      • list
      • modifyEnvironment
      • setIamPolicy
      • testIamPermissions
      • update
      • updateDebugmask
      • updateEnvironment
      • updateSecurityActionsConfig
      • updateTraceConfig
    • organizations.environments.addonsConfig
      • Overview
      • setAddonEnablement
    • organizations.environments.analytics.admin
      • Overview
      • getSchemav2
    • organizations.environments.analytics.exports
      • Overview
      • create
      • get
      • list
    • organizations.environments.apis.deployments
      • Overview
      • list
    • organizations.environments.apis.revisions.debugsessions
      • Overview
      • create
      • deleteData
      • get
      • list
    • organizations.environments.apis.revisions.debugsessions.data
      • Overview
      • get
      • list
    • organizations.environments.apis.revisions.deployments
      • Overview
      • deploy
      • generateDeployChangeReport
      • generateUndeployChangeReport
      • get
      • undeploy
    • organizations.environments.archiveDeployments
      • Overview
      • create
      • delete
      • generateDownloadUrl
      • generateUploadUrl
      • get
      • list
      • patch
    • organizations.environments.caches
      • Overview
      • delete
      • list
    • organizations.environments.deployments
      • Overview
      • get
      • getIamPolicy
      • list
      • setIamPolicy
      • testIamPermissions
    • organizations.environments.flowhooks
      • Overview
      • attachSharedFlowToFlowHook
      • detachSharedFlowFromFlowHook
      • get
      • list
    • organizations.environments.keystores
      • Overview
      • create
      • delete
      • get
      • list
    • organizations.environments.keystores.aliases
      • Overview
      • create
      • csr
      • delete
      • get
      • getCertificate
      • list
      • update
    • organizations.environments.keyvaluemaps
      • Overview
      • create
      • delete
      • list
    • organizations.environments.keyvaluemaps.entries
      • Overview
      • create
      • delete
      • get
      • list
      • update
    • organizations.environments.optimizedStats
      • Overview
      • get
    • organizations.environments.queries
      • Overview
      • create
      • get
      • getResult
      • getResulturl
      • list
    • organizations.environments.references
      • Overview
      • create
      • delete
      • get
      • list
      • update
    • organizations.environments.resourcefiles
      • Overview
      • create
      • delete
      • get
      • list
      • listEnvironmentResources
      • update
    • organizations.environments.securityActions
      • Overview
      • create
      • disable
      • enable
      • get
      • list
    • organizations.environments.securityIncidents
      • Overview
      • batchUpdate
      • get
      • list
      • patch
    • organizations.environments.securityReports
      • Overview
      • create
      • get
      • getResult
      • getResultView
      • list
    • organizations.environments.securityStats
      • Overview
      • queryTabularStats
      • queryTimeSeriesStats
    • organizations.environments.sharedflows.deployments
      • Overview
      • list
    • organizations.environments.sharedflows.revisions.deployments
      • Overview
      • deploy
      • get
      • undeploy
    • organizations.environments.stats
      • Overview
      • get
    • organizations.environments.targetservers
      • Overview
      • create
      • delete
      • get
      • list
      • update
    • organizations.environments.traceConfig.overrides
      • Overview
      • create
      • delete
      • get
      • list
      • patch
    • organizations.hostQueries
      • Overview
      • create
      • get
      • getResult
      • getResultView
      • list
    • organizations.hostSecurityReports
      • Overview
      • create
      • get
      • getResult
      • getResultView
      • list
    • organizations.hostStats
      • Overview
      • get
    • organizations.instances
      • Overview
      • create
      • delete
      • get
      • list
      • patch
    • organizations.instances.attachments
      • Overview
      • create
      • delete
      • get
      • list
    • organizations.instances.natAddresses
      • Overview
      • activate
      • create
      • delete
      • get
      • list
    • organizations.keyvaluemaps
      • Overview
      • create
      • delete
      • list
    • organizations.keyvaluemaps.entries
      • Overview
      • create
      • delete
      • get
      • list
      • update
    • organizations.operations
      • Overview
      • get
      • list
    • organizations.optimizedHostStats
      • Overview
      • get
    • organizations.reports
      • Overview
      • create
      • delete
      • get
      • list
      • update
    • organizations.securityAssessmentResults
      • Overview
      • batchCompute
    • organizations.securityMonitoringConditions
      • Overview
      • create
      • delete
      • get
      • list
      • patch
    • organizations.securityProfiles
      • Overview
      • create
      • delete
      • get
      • list
      • listRevisions
      • patch
    • organizations.securityProfiles.environments
      • Overview
      • computeEnvironmentScores
      • create
      • delete
    • organizations.securityProfilesV2
      • Overview
      • create
      • delete
      • get
      • list
      • patch
    • organizations.sharedflows
      • Overview
      • create
      • delete
      • get
      • list
      • move
    • organizations.sharedflows.deployments
      • Overview
      • list
    • organizations.sharedflows.revisions
      • Overview
      • delete
      • get
      • list
      • updateSharedFlowRevision
    • organizations.sharedflows.revisions.deployments
      • Overview
      • list
    • organizations.sites.apicategories
      • Overview
      • create
      • delete
      • get
      • list
      • patch
    • organizations.sites.apidocs
      • Overview
      • create
      • delete
      • get
      • getDocumentation
      • list
      • update
      • updateDocumentation
    • organizations.spaces
      • Overview
      • create
      • delete
      • get
      • getIamPolicy
      • list
      • patch
      • setIamPolicy
      • testIamPermissions
    • projects
      • Overview
      • provisionOrganization
    • Types
    • Alias
    • ApiCategoryResponse
    • ApiDocDocumentation
    • ApiDocDocumentationResponse
    • ApiDocResponse
    • ApiProductRef
    • ApiProxyType
    • AsyncQuery
    • Attributes
    • BadBundle
    • ConfigVersion
    • ControlPlaneAccess
    • Credential
    • DebugMask
    • DeleteResponse
    • DeploymentChangeReport
    • DeveloperBalance
    • DeveloperMonetizationConfig
    • EntityMetadata
    • Export
    • GetPolicyOptions
    • Interval
    • InvalidResourceStatusErrorDetails
    • ListAsyncQueriesResponse
    • ListDeploymentsResponse
    • ListEnvironmentResourcesResponse
    • ListKeyValueEntriesResponse
    • ListSecurityReportsResponse
    • Metadata
    • MetricAggregation
    • MissingSpecErrorDetails
    • OperationMetadata
    • OperationType
    • Order
    • OrganizationProjectMapping
    • Policy
    • Properties
    • Property
    • Query
    • QueryMetadata
    • ResourceFiles
    • SecurityActionsConfig
    • SecurityReport
    • SecurityReportMetadata
    • SecurityReportQuery
    • SecurityReportResultView
    • SecuritySettings
    • State
    • Status
    • SyncAuthorization
    • TestIamPermissionsResponse
    • TraceConfig
    • WaitOperationRequest
  • API OBSERVATION
  • REST Reference
    • v1alpha
      • Overview
      • Resources
        • REST Resources
        • projects.locations
          • Overview
          • get
          • list
          • listApiObservationTags
        • projects.locations.observationJobs
          • Overview
          • create
          • delete
          • disable
          • enable
          • get
          • list
        • projects.locations.observationJobs.apiObservations
          • Overview
          • batchEditTags
          • get
          • list
        • projects.locations.observationJobs.apiObservations.apiOperations
          • Overview
          • get
          • list
        • projects.locations.observationSources
          • Overview
          • create
          • delete
          • get
          • list
        • projects.locations.operations
          • Overview
          • cancel
          • delete
          • get
          • list
        • Types
        • ApiDiscoveryOperationMetadata
        • OperationMetadata
        • WaitOperationRequest
  • RPC Reference
    • Overview
    • google.cloud.apim.v1alpha
    • google.cloud.apim.v1main
    • google.cloud.common
    • google.cloud.location
    • google.longrunning
    • google.rpc
  • APPLICATION INTEGRATIONS API
  • All APIs and references
  • CONNECTORS API
  • Overview
  • APIGEE API HUB
  • REST Reference
    • v1
      • Overview
      • Resources
        • REST Resources
        • projects.locations
          • Overview
          • collectApiData
          • get
          • list
          • lookupRuntimeProjectAttachment
          • searchResources
        • projects.locations.apiHubInstances
          • Overview
          • create
          • delete
          • get
          • lookup
        • projects.locations.apis
          • Overview
          • create
          • delete
          • get
          • list
          • patch
        • projects.locations.apis.versions
          • Overview
          • create
          • delete
          • get
          • list
          • patch
        • projects.locations.apis.versions.definitions
          • Overview
          • get
        • projects.locations.apis.versions.operations
          • Overview
          • create
          • delete
          • get
          • list
          • patch
        • projects.locations.apis.versions.specs
          • Overview
          • create
          • delete
          • get
          • getContents
          • lint
          • list
          • patch
        • projects.locations.attributes
          • Overview
          • create
          • delete
          • get
          • list
          • patch
        • projects.locations.curations
          • Overview
          • create
          • delete
          • get
          • list
          • patch
        • projects.locations.dependencies
          • Overview
          • create
          • delete
          • get
          • list
          • patch
        • projects.locations.deployments
          • Overview
          • create
          • delete
          • get
          • list
          • patch
        • projects.locations.externalApis
          • Overview
          • create
          • delete
          • get
          • list
          • patch
        • projects.locations.hostProjectRegistrations
          • Overview
          • create
          • get
          • list
        • projects.locations.operations
          • Overview
          • cancel
          • delete
          • get
          • list
        • projects.locations.plugins
          • Overview
          • create
          • delete
          • disable
          • enable
          • get
          • getStyleGuide
          • list
          • updateStyleGuide
        • projects.locations.plugins.instances
          • Overview
          • create
          • delete
          • disableAction
          • enableAction
          • executeAction
          • get
          • list
        • projects.locations.plugins.styleGuide
          • Overview
          • getContents
        • projects.locations.runtimeProjectAttachments
          • Overview
          • create
          • delete
          • get
          • list
        • Types
        • AggregationFunction
        • AllowedValue
        • AttributeValues
        • AuthType
        • CollectApiDataResponse
        • ConfigValueOption
        • DisablePluginInstanceActionResponse
        • Documentation
        • EnablePluginInstanceActionResponse
        • ExecutePluginInstanceActionResponse
        • GoogleServiceAccountConfig
        • InsightsMetric
        • OperationMetadata
        • Owner
        • SourceMetadata
        • StyleGuide
        • StyleGuideContents
        • WaitOperationRequest
  • RPC Reference
    • Overview
    • google.cloud.apihub.v1
    • google.cloud.apihub.v1main
    • google.cloud.common
    • google.cloud.location
    • google.longrunning
    • google.rpc
  • API PROXIES
  • API proxy configuration reference
  • Endpoint properties reference
  • Shared flow bundle configuration reference
  • FLOWS
  • Flow configuration
  • Flow variables
  • Conditions
  • POLICIES
  • Policies overview
  • Policies
    • Standard policies
      • AccessControl
      • AssertCondition
      • CORS
      • DecodeJWT
      • ExternalCallout
      • GraphQL
      • HMAC
      • HTTPModifier
      • JSONtoXML
      • OASValidation
      • PublishMessage
      • RaiseFault
      • ReadPropertySet
      • SOAPMessageValidation
      • SpikeArrest
      • VerifyIAM
      • VerifyJWT
      • XMLtoJSON
    • Extensible policies
      • AccessEntity
      • AssignMessage
      • BasicAuthentication
      • Cache Policies
        • InvalidateCache
        • LookupCache
        • PopulateCache
        • ResponseCache
        • Working with cache keys
      • DataCapture
      • ExtractVariables
      • FlowCallout
      • Application Integration policies
        • IntegrationCallout policy
        • SetIntegrationRequest policy
      • JavaCallout
      • JavaScript
      • JSONThreatProtection
      • JWS and JWT policies
        • JWS and JWT policies overview
        • JWS policies
          • DecodeJWS
          • GenerateJWS
          • VerifyJWS
        • JWT policies
          • GenerateJWT
      • KeyValueMapOperations
      • MessageLogging
      • MonetizationLimitsCheck
      • OAuth v2 Policies
        • OAuthV2
        • SetOAuthV2Info
        • GetOAuthV2Info
        • DeleteOAuthV2Info
        • RevokeOAuthV2
        • OAuth HTTP error responses
      • ParseDialogflowRequest
      • PythonScript
      • Quota
      • RegularExpressionProtection
      • ResetQuota
      • SAMLAssertion
      • ServiceCallout
      • SetDialogflowResponse
      • TraceCapture
      • VerifyAPIKey
      • XMLThreatProtection
      • XSLTransform
  • Policy errors
  • JavaScript object model
  • Java permission reference
  • OTHER REFERENCES
  • Message template functions reference
  • Glossary
  • AI and ML
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Distributed, hybrid, and multicloud
  • Generative AI
  • Industry solutions
  • Networking
  • Observability and monitoring
  • Security
  • Storage
  • Access and resources management
  • Costs and usage management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
  • Migration
  • Google Cloud Home
  • Free Trial and Free Tier
  • Architecture Center
  • Blog
  • Contact Sales
  • Google Cloud Developer Center
  • Google Developer Center
  • Google Cloud Marketplace
  • Google Cloud Marketplace Documentation
  • Google Cloud Skills Boost
  • Google Cloud Solution Center
  • Google Cloud Support
  • Google Cloud Tech Youtube Channel
  • Home
  • Apigee
  • Documentation
  • Reference

InsightsMetric
Stay organized with collections Save and categorize content based on your preferences.

  • JSON representation

The metric and its aggregation function.

JSON representation
{
  "metric": string,
  "aggregation": enum (AggregationFunction)
}
Fields
metric

string

Required. Name of the metric.

aggregation

enum (AggregationFunction)

Required. Aggregation function associated with the metric.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-04-02 UTC.

  • Why Google

    • Choosing Google Cloud
    • Trust and security
    • Modern Infrastructure Cloud
    • Multicloud
    • Global infrastructure
    • Customers and case studies
    • Analyst reports
    • Whitepapers
  • Products and pricing

    • See all products
    • See all solutions
    • Google Cloud for Startups
    • Google Cloud Marketplace
    • Google Cloud pricing
    • Contact sales
  • Support

    • Google Cloud Community
    • Support
    • Release Notes
    • System status
  • Resources

    • GitHub
    • Getting Started with Google Cloud
    • Google Cloud documentation
    • Code samples
    • Cloud Architecture Center
    • Training and Certification
    • Developer Center
  • Engage

    • Blog
    • Events
    • X (Twitter)
    • Google Cloud on YouTube
    • Google Cloud Tech on YouTube
    • Become a Partner
    • Google Cloud Affiliate Program
    • Press Corner
  • About Google
  • Privacy
  • Site terms
  • Google Cloud terms
  • Manage cookies
  • Our third decade of climate action: join us
  • Sign up for the Google Cloud newsletter Subscribe
  • English
  • Deutsch
  • Español – América Latina
  • Français
  • Português – Brasil
  • 中文 – 简体
  • 日本語
  • 한국어