plausible
This module allows you to interact with the Plausible analytics APIas 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
Name | Type | Description |
---|---|---|
host | String ! | Plausible Server Address |
siteId | String ! | Plausibnle Site ID |
token | Secret ! | Plausible API Token |
Example
dagger -m github.com/levlaz/daggerverse/plausible@3cbd7a1d78fc941a805164dd1c307b18394c74b1 call \
--host string --site-id string --token env:MYSECRET
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()
}