• /
  • ログイン
  • 無料アカウント

setMaxEventBufferTime (Android SDK API)

Syntax

NewRelic.setMaxEventBufferTime(int $maxBufferTimeInSec)

Sets the event harvest cycle length.

Requirements

Agent version 5.0.0 or higher.

Description

This method sets the maximum time (in seconds) that the New Relic Android agent will store events in memory before sending the buffered events to New Relic. In other words, this method controls the length of the harvest cycle.

See also setMaxEventPoolSize(), which sets the maximum number of events that are stored by the agent during a harvest cycle.

重要

Be aware that reporting a large number of events, or reporting events too frequently, may impact app performance.

For context on how to use this API, see Send custom attributes and events to Insights.

Parameters

Parameter

Description

$maxBufferTimeInSec

int

Required. The maximum time (in seconds) that the agent should store events in memory. The default value harvest cycle length is 600 seconds.

Return values

Returns true if it succeeds, or false if it doesn't.

Examples

Set max event buffer time to 300 seconds

boolean fiveMinuteLimitSet = NewRelic.setMaxEventBufferTime(300);

その他のヘルプ

さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:

問題を作成するこのページを編集する
Copyright © 2020 New Relic Inc.