func NewBatch(data string, retryDelay uint, expireDelayMs uint) *Batch {
	return &Batch{
		Batch:      data,
		RetryDelay: retryDelay,
		Expires:    time.Now().Add(time.Duration(expireDelayMs) * time.Millisecond),
	}
}
NewBatch creates new batch
package write
import (
	"bytes"
	"context"
	"fmt"
	"io"
	"math/rand"
	"net/http"
	"net/url"
	"sort"
	"strings"
	"sync"
	"time"
	http2 "github.com/influxdata/influxdb-client-go/v2/api/http"
	"github.com/influxdata/influxdb-client-go/v2/api/write"
	"github.com/influxdata/influxdb-client-go/v2/internal/gzip"
	"github.com/influxdata/influxdb-client-go/v2/internal/log"
	ilog "github.com/influxdata/influxdb-client-go/v2/log"
	lp "github.com/influxdata/line-protocol"
)
type Batch struct {
	Batch string
	RetryDelay uint
	RetryAttempts uint
	Evicted bool
	Expires time.Time
}