Dagger
Search

plausible

This module allows you to interact with the Plausible analytics API
as a part of your Dagger pipeline. Right now it only implements the
stats API, but in the future we may also include events.

Installation

dagger install github.com/levlaz/daggerverse/plausible@v0.1.0

Entrypoint

Return Type
Plausible !
Arguments
NameTypeDescription
hostString !Plausible Server Address
siteIdString !Plausibnle Site ID
tokenSecret !Plausible API Token
Example
func (m *myModule) example(host string, siteId string, token *Secret) *Plausible  {
	return dag.
			Plausible(host, siteId, token)
}
@function
def example(host: str, site_id: str, token: dagger.Secret) -> dag.Plausible:
	return (
		dag.plausible(host, site_id, token)
	)
@func()
example(host: string, siteId: string, token: Secret): Plausible {
	return dag
		.plausible(host, siteId, token)
}

Types

Plausible 🔗

Plausible functions

topPages() 🔗

Show 25 top pages from this month

Return Type
String !
Example
dagger -m github.com/levlaz/daggerverse/plausible@3cbd7a1d78fc941a805164dd1c307b18394c74b1 call \
 --host string --site-id string --token env:MYSECRET top-pages
func (m *myModule) example(ctx context.Context, host string, siteId string, token *Secret) string  {
	return dag.
			Plausible(host, siteId, token).
			TopPages(ctx)
}
@function
async def example(host: str, site_id: str, token: dagger.Secret) -> str:
	return await (
		dag.plausible(host, site_id, token)
		.top_pages()
	)
@func()
async example(host: string, siteId: string, token: Secret): Promise<string> {
	return dag
		.plausible(host, siteId, token)
		.topPages()
}