{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/strong-express-metrics/issues/3","labels_url":"https://api.github.com/repos/strongloop/strong-express-metrics/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/strong-express-metrics/issues/3/comments","events_url":"https://api.github.com/repos/strongloop/strong-express-metrics/issues/3/events","html_url":"https://github.com/strongloop/strong-express-metrics/pull/3","id":67299920,"number":3,"title":"Add \"record.version\"; add \"record.loopback\" for LoopBack applications","user":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"sam-github","id":17607,"avatar_url":"https://avatars.githubusercontent.com/u/17607?v=3","gravatar_id":"","url":"https://api.github.com/users/sam-github","html_url":"https://github.com/sam-github","followers_url":"https://api.github.com/users/sam-github/followers","following_url":"https://api.github.com/users/sam-github/following{/other_user}","gists_url":"https://api.github.com/users/sam-github/gists{/gist_id}","starred_url":"https://api.github.com/users/sam-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sam-github/subscriptions","organizations_url":"https://api.github.com/users/sam-github/orgs","repos_url":"https://api.github.com/users/sam-github/repos","events_url":"https://api.github.com/users/sam-github/events{/privacy}","received_events_url":"https://api.github.com/users/sam-github/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2015-04-09T07:36:42Z","updated_at":"2015-04-15T15:28:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/strongloop/strong-express-metrics/pulls/3","html_url":"https://github.com/strongloop/strong-express-metrics/pull/3","diff_url":"https://github.com/strongloop/strong-express-metrics/pull/3.diff","patch_url":"https://github.com/strongloop/strong-express-metrics/pull/3.patch"},"body":"**Add `record.version` property**\r\n\r\nAdd a new record property `version` containing the version of\r\nstrong-express-metrics that produced the record. This allows consumers\r\nto detect different record formats based on producer's version.\r\n\r\n**Fill `record.loopback` for LoopBack applications**\r\n\r\nWhen the metrics middleware is added to a LoopBack application\r\n(or a strong-remoting application), a new top-level property \"loopback\"\r\nis added to the metrics record. This property contains an object\r\nwith the following properties:\r\n\r\n - modelName\r\n   The name of the LoopBack model (shared class).\r\n\r\n - remoteMethod\r\n   The name of the remote method invoked, e.g. \"find\" or \"prototype.updateAttributes\".\r\n\r\n - instanceId\r\n    The ID of the target instance (when available).\r\n\r\nExamples:\r\n\r\n    POST /api/Cars\r\n      modelName: Car\r\n      remoteMethod: create\r\n      (instanceId not available)\r\n\r\n    PUT /api/Cars/123\r\n      modelName: Car\r\n      remoteMethod: prototype.updateOrCreate\r\n      instanceId: 123\r\n\r\n    GET /api/Cars/123\r\n      modelName: Car\r\n      remoteMethod: findById\r\n      instanceId: 123\r\n\r\nConnect to strongloop/loopback#1276\r\nRequires https://github.com/strongloop/strong-remoting/pull/199\r\n\r\n/to @sam-github please review\r\n/to @kraman @altsang please check that  the metadata meets your requirements\r\n/cc @ritch you may want to take a look too"},"comment":{"url":"https://api.github.com/repos/strongloop/strong-express-metrics/issues/comments/93449336","html_url":"https://github.com/strongloop/strong-express-metrics/pull/3#issuecomment-93449336","issue_url":"https://api.github.com/repos/strongloop/strong-express-metrics/issues/3","id":93449336,"user":{"login":"sam-github","id":17607,"avatar_url":"https://avatars.githubusercontent.com/u/17607?v=3","gravatar_id":"","url":"https://api.github.com/users/sam-github","html_url":"https://github.com/sam-github","followers_url":"https://api.github.com/users/sam-github/followers","following_url":"https://api.github.com/users/sam-github/following{/other_user}","gists_url":"https://api.github.com/users/sam-github/gists{/gist_id}","starred_url":"https://api.github.com/users/sam-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sam-github/subscriptions","organizations_url":"https://api.github.com/users/sam-github/orgs","repos_url":"https://api.github.com/users/sam-github/repos","events_url":"https://api.github.com/users/sam-github/events{/privacy}","received_events_url":"https://api.github.com/users/sam-github/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T15:28:14Z","updated_at":"2015-04-15T15:28:14Z","body":"LGTM"}}