{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-k8s-metrics-adapter/issues/49","repository_url":"https://api.github.com/repos/Azure/azure-k8s-metrics-adapter","labels_url":"https://api.github.com/repos/Azure/azure-k8s-metrics-adapter/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-k8s-metrics-adapter/issues/49/comments","events_url":"https://api.github.com/repos/Azure/azure-k8s-metrics-adapter/issues/49/events","html_url":"https://github.com/Azure/azure-k8s-metrics-adapter/pull/49","id":381957344,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxNzg2NDI0","number":49,"title":"[WIP - GH-42] Add Service Bus Subscription Count Client","user":{"login":"marc-sensenich","id":10442429,"node_id":"MDQ6VXNlcjEwNDQyNDI5","avatar_url":"https://avatars1.githubusercontent.com/u/10442429?v=4","gravatar_id":"","url":"https://api.github.com/users/marc-sensenich","html_url":"https://github.com/marc-sensenich","followers_url":"https://api.github.com/users/marc-sensenich/followers","following_url":"https://api.github.com/users/marc-sensenich/following{/other_user}","gists_url":"https://api.github.com/users/marc-sensenich/gists{/gist_id}","starred_url":"https://api.github.com/users/marc-sensenich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marc-sensenich/subscriptions","organizations_url":"https://api.github.com/users/marc-sensenich/orgs","repos_url":"https://api.github.com/users/marc-sensenich/repos","events_url":"https://api.github.com/users/marc-sensenich/events{/privacy}","received_events_url":"https://api.github.com/users/marc-sensenich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-18T12:52:50Z","updated_at":"2018-11-18T13:55:05Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/Azure/azure-k8s-metrics-adapter/pulls/49","html_url":"https://github.com/Azure/azure-k8s-metrics-adapter/pull/49","diff_url":"https://github.com/Azure/azure-k8s-metrics-adapter/pull/49.diff","patch_url":"https://github.com/Azure/azure-k8s-metrics-adapter/pull/49.patch"},"body":"Allow for users of the metrics adapter to gather message counts from Azure Service Bus Topic Subscriptions to decide their scaling targets\r\n\r\nCloses #42 "},"comment":{"url":"https://api.github.com/repos/Azure/azure-k8s-metrics-adapter/issues/comments/439694597","html_url":"https://github.com/Azure/azure-k8s-metrics-adapter/pull/49#issuecomment-439694597","issue_url":"https://api.github.com/repos/Azure/azure-k8s-metrics-adapter/issues/49","id":439694597,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTY5NDU5Nw==","user":{"login":"marc-sensenich","id":10442429,"node_id":"MDQ6VXNlcjEwNDQyNDI5","avatar_url":"https://avatars1.githubusercontent.com/u/10442429?v=4","gravatar_id":"","url":"https://api.github.com/users/marc-sensenich","html_url":"https://github.com/marc-sensenich","followers_url":"https://api.github.com/users/marc-sensenich/followers","following_url":"https://api.github.com/users/marc-sensenich/following{/other_user}","gists_url":"https://api.github.com/users/marc-sensenich/gists{/gist_id}","starred_url":"https://api.github.com/users/marc-sensenich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marc-sensenich/subscriptions","organizations_url":"https://api.github.com/users/marc-sensenich/orgs","repos_url":"https://api.github.com/users/marc-sensenich/repos","events_url":"https://api.github.com/users/marc-sensenich/events{/privacy}","received_events_url":"https://api.github.com/users/marc-sensenich/received_events","type":"User","site_admin":false},"created_at":"2018-11-18T13:55:05Z","updated_at":"2018-11-18T13:55:05Z","author_association":"CONTRIBUTOR","body":"Based on #39, this is the structure I'd see for configuring the CRD\r\n```yaml\r\napiVersion: azure.com/v1alpha2\r\nkind: ExternalMetric\r\nmetadata:\r\n  name: example-external-metric-service-bus-subscription\r\nspec:\r\n  type: servicebussubscription\r\n  azure:\r\n    resourceGroup: storage-rg\r\n    namespace: sample-ns\r\n    topic: sample-topic\r\n    subscription: sample-subscription\r\n  metric:\r\n    # This would default to activeMessageCount, but could be updated to one of the counts from https://github.com/Azure/azure-sdk-for-go/blob/master/services/servicebus/mgmt/2017-04-01/servicebus/models.go#L1116\r\n    field: activeMessageCount\r\n```"}}
{"actor":{"display_login":"marc-sensenich"}}