MCPcopy Create free account
hub / github.com/monitoror/monitoror / NewMonitorable

Function NewMonitorable

monitorables/github/github_faker.go:28–38  ·  view source on GitHub ↗
(store *store.Store)

Source from the content-addressed store, hash-verified

26}
27
28func NewMonitorable(store *store.Store) *Monitorable {
29 m := &Monitorable{}
30 m.store = store
31
32 // Register Monitorable Tile in config manager
33 m.countTileEnabler = store.Registry.RegisterTile(api.GithubCountTileType, versions.MinimalVersion, m.GetVariantsNames())
34 m.checksTileEnabler = store.Registry.RegisterTile(api.GithubChecksTileType, versions.MinimalVersion, m.GetVariantsNames())
35 m.pullRequestTileEnabler = store.Registry.RegisterTile(api.GithubPullRequestTileType, versions.MinimalVersion, m.GetVariantsNames())
36
37 return m
38}
39
40func (m *Monitorable) GetDisplayName() string {
41 return "GitHub"

Callers

nothing calls this directly

Calls 2

GetVariantsNamesMethod · 0.95
RegisterTileMethod · 0.65

Tested by

no test coverage detected