Skip to content

Commit

Permalink
Merge pull request #23 from Comcast/feature/integrate_stat_handler
Browse files Browse the repository at this point in the history
Feature/integrate stat handler
  • Loading branch information
johnabass authored Oct 31, 2017
2 parents 6364b70 + ac3f36a commit cebb4e4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package: .
homepage: https://github.com/Comcast/talaria
import:
- package: github.com/Comcast/webpa-common
version: 312031c04577e73353e9529a8955ad194fe1e62c
version: dbfa5d00b97c06636fe5e6133b106c01a0cd0855

9 changes: 9 additions & 0 deletions src/talaria/primaryHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,14 @@ func NewPrimaryHandler(logger log.Logger, manager device.Manager, v *viper.Viper
}),
)

apiHandler.Handle(
"/device/{deviceID}/stat",
&device.StatHandler{
Logger: logger,
Registry: manager,
Variable: "deviceID",
},
)

return handler, nil
}

0 comments on commit cebb4e4

Please sign in to comment.