Represent the resource used by a batch including element and byte. It can also be extended to
other things to determine if adding a new element needs to be flow controlled or if the current
batch needs to be flushed.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The latest version available is 2.63.1, and the content lists numerous previous versions dating back to 2.7.1, all relating to the `BatchResource`."],["`BatchResource` is an interface representing a resource used by a batch, including the tracking of elements and bytes."],["`BatchResource` provides methods to add resources, get byte counts and element counts, and determine if a flush is required."],["`shouldFlush` is a method that is used to check if the current BatchResource should be flushed depending on the `maxElementThreshold` and `maxBytesThreshold`."]]],[]]