lambda

package
v0.0.0-...-a245e04 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NilPayloadHash = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Config              *aws.Config
	Credentials         *aws.Credentials
	HTTPClient          *http.Client
	RetryableHTTPClient *retryablehttp.Client
}

func NewLambdaClient

func NewLambdaClient() (*Client, error)

func (*Client) FetchReactEmailHTML

func (s *Client) FetchReactEmailHTML(ctx context.Context, alertType ReactEmailTemplate, data map[string]interface{}) (string, error)

func (*Client) GetActivityGraph

func (s *Client) GetActivityGraph(ctx context.Context, eventCounts string) (*http.Response, error)

func (*Client) GetSessionInsight

func (s *Client) GetSessionInsight(ctx context.Context, projectID int, sessionID int) (*http.Response, error)

func (*Client) GetSessionInsightEmailHtml

func (s *Client) GetSessionInsightEmailHtml(ctx context.Context, toEmail string, unsubscribeUrl string, data utils.SessionInsightsData) (string, error)

func (*Client) GetSessionInsightRequest

func (s *Client) GetSessionInsightRequest(ctx context.Context, url string, projectID int, sessionID int) *retryablehttp.Request

func (*Client) GetSessionScreenshot

func (s *Client) GetSessionScreenshot(ctx context.Context, projectID int, sessionID int, ts *int, chunk *int, format *model.SessionExportFormat) (*SessionScreenshotResponse, error)

type ReactEmailTemplate

type ReactEmailTemplate string
const (
	// deprecated emails
	ReactEmailTemplateErrorAlert      ReactEmailTemplate = "error-alert"
	ReactEmailTemplateLogAlert        ReactEmailTemplate = "log-alert"
	ReactEmailTemplateNewSessionAlert ReactEmailTemplate = "new-session-alert"
	ReactEmailTemplateNewUserAlert    ReactEmailTemplate = "new-user-alert"
	ReactEmailTemplateRageClickAlert  ReactEmailTemplate = "rage-click-alert"
	ReactEmailTemplateTrackEventAlert ReactEmailTemplate = "track-event-properties-alert"
	ReactEmailTemplateTrackUserAlert  ReactEmailTemplate = "track-user-properties-alert"
	// new alert emails
	ReactEmailTemplateSessionsAlert ReactEmailTemplate = "sessions-alert"
	ReactEmailTemplateErrorsAlert   ReactEmailTemplate = "errors-alert"
	ReactEmailTemplateLogsAlert     ReactEmailTemplate = "logs-alert"
	ReactEmailTemplateTracesAlert   ReactEmailTemplate = "traces-alert"
	ReactEmailTemplateMetricsAlert  ReactEmailTemplate = "metrics-alert"
	ReactEmailTemplateEventsAlert   ReactEmailTemplate = "events-alert"
	// session insights
	ReactEmailTemplateSessionInsights ReactEmailTemplate = "session-insights"
	// notifications
	ReactEmailTemplateAlertUpsert ReactEmailTemplate = "alert-upsert"
)

type ServiceType

type ServiceType string
const (
	ExecuteAPI ServiceType = "execute-api"
	LambdaAPI  ServiceType = "lambda"
)

type SessionScreenshotResponse

type SessionScreenshotResponse struct {
	URL   string `json:"url"`
	Image []byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL