BotBye APIProtectionMetric DefinitionscreateAsk a question|Copy page|View as Markdown|More actionsPOSThttps://{base_url}/api/v1/:account_id/projects/:project_id/metricsCreate a new metric definition.Path parametersaccount_idstringRequiredproject_idstringRequiredRequestThis endpoint expects an object.namestringRequiredaggregationenumRequiredAllowed values:COUNTDISTINCT_COUNTRATELAST_VALUESUMtimeWindowintegerRequiredTime window in seconds.keyByenumRequiredAllowed values:ACCOUNTIPDEVICEDEVICE_IPfieldstring or nullOptionalfilterobject or nullOptionalShow 1 propertyenabledbooleanOptional