{"action":"created","comment":{"url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/pulls/comments/80001015","id":80001015,"diff_hunk":"@@ -0,0 +1,224 @@\n+package main\n+\n+import (\n+\t\"testing\"\n+\t\"time\"\n+\n+\t\"github.com/aws/aws-sdk-go/aws\"\n+\t\"github.com/aws/aws-sdk-go/service/sqs\"\n+\t\"github.com/stretchr/testify/assert\"\n+\n+\t\"k8s.io/kubernetes/pkg/api\"\n+\t\"k8s.io/kubernetes/pkg/apis/extensions\"\n+\tkclient \"k8s.io/kubernetes/pkg/client/unversioned\"\n+\t\"k8s.io/kubernetes/pkg/watch\"\n+\n+\t\"github.com/Wattpad/kube-sqs-autoscaler/scale\"\n+\tmainsqs \"github.com/Wattpad/kube-sqs-autoscaler/sqs\"\n+)\n+\n+type MockDeployment struct {\n+\tclient *MockKubeClient\n+}\n+\n+type MockKubeClient struct {\n+\t// stores the state of Deployment as if the api server did\n+\tDeployment *extensions.Deployment\n+}\n+\n+func (m *MockDeployment) Get(name string) (*extensions.Deployment, error) {\n+\treturn m.client.Deployment, nil\n+}\n+\n+func (m *MockDeployment) Update(deployment *extensions.Deployment) (*extensions.Deployment, error) {\n+\tm.client.Deployment.Spec.Replicas = deployment.Spec.Replicas\n+\treturn m.client.Deployment, nil\n+}\n+\n+func (m *MockDeployment) List(opts api.ListOptions) (*extensions.DeploymentList, error) {\n+\treturn nil, nil\n+}\n+\n+func (m *MockDeployment) Delete(name string, options *api.DeleteOptions) error {\n+\treturn nil\n+}\n+\n+func (m *MockDeployment) Create(*extensions.Deployment) (*extensions.Deployment, error) {\n+\treturn nil, nil\n+}\n+\n+func (m *MockDeployment) UpdateStatus(*extensions.Deployment) (*extensions.Deployment, error) {\n+\treturn nil, nil\n+}\n+\n+func (m *MockDeployment) Watch(opts api.ListOptions) (watch.Interface, error) {\n+\treturn nil, nil\n+}\n+\n+func (m *MockDeployment) Rollback(*extensions.DeploymentRollback) error {\n+\treturn nil\n+}\n+\n+func (m *MockKubeClient) Deployments(namespace string) kclient.DeploymentInterface {\n+\treturn &MockDeployment{\n+\t\tclient: m,\n+\t}\n+}\n+\n+func NewMockKubeClient() *MockKubeClient {\n+\treturn &MockKubeClient{\n+\t\tDeployment: &extensions.Deployment{\n+\t\t\tSpec: extensions.DeploymentSpec{\n+\t\t\t\tReplicas: 3,\n+\t\t\t},\n+\t\t},\n+\t}\n+}\n+\n+func NewMockPodAutoScaler(kubernetesDeploymentName string, kubernetesNamespace string, max int, min int) *scale.PodAutoScaler {\n+\tmockClient := NewMockKubeClient()\n+\n+\treturn &scale.PodAutoScaler{\n+\t\tClient:     mockClient,\n+\t\tMin:        min,\n+\t\tMax:        max,\n+\t\tDeployment: kubernetesDeploymentName,\n+\t}\n+}\n+\n+type MockSQS struct {\n+\tQueueAttributes *sqs.GetQueueAttributesOutput\n+}\n+\n+func (m *MockSQS) GetQueueAttributes(*sqs.GetQueueAttributesInput) (*sqs.GetQueueAttributesOutput, error) {\n+\treturn m.QueueAttributes, nil\n+}\n+\n+func (m *MockSQS) SetQueueAttributes(input *sqs.SetQueueAttributesInput) (*sqs.SetQueueAttributesOutput, error) {\n+\tm.QueueAttributes = &sqs.GetQueueAttributesOutput{\n+\t\tAttributes: input.Attributes,\n+\t}\n+\treturn &sqs.SetQueueAttributesOutput{}, nil\n+}\n+\n+func NewMockSqsClient() *mainsqs.SqsClient {\n+\tAttributes := make(map[string]*string)\n+\tAttributes[\"ApproximateNumberOfMessages\"] = aws.String(\"50\")\n+\n+\treturn &mainsqs.SqsClient{\n+\t\tClient: &MockSQS{\n+\t\t\tQueueAttributes: &sqs.GetQueueAttributesOutput{\n+\t\t\t\tAttributes: Attributes,\n+\t\t\t},\n+\t\t},\n+\t\tQueueUrl: \"sqs.test.com\",\n+\t}\n+}\n+\n+func TestRunMaxMin(t *testing.T) {\n+\t// override default vars for testing\n+\t*pollInterval = 1 * time.Second\n+\t*scaleDownCoolPeriod = 1 * time.Second\n+\t*scaleUpCoolPeriod = 1 * time.Second\n+\t*scaleUpMessages = 100\n+\t*scaleDownMessages = 10\n+\t*maxPods = 5\n+\t*minPods = 1\n+\t*awsRegion = \"us-east-1\"\n+\n+\t*sqsQueueUrl = \"sqs.test.com\"\n+\t*kubernetesDeploymentName = \"test\"\n+\t*kubernetesNamespace = \"test\"\n+\n+\tp := NewMockPodAutoScaler(*kubernetesDeploymentName, *kubernetesNamespace, *maxPods, *minPods)\n+\ts := NewMockSqsClient()\n+\n+\tgo Run(p, s)\n+\n+\tAttributes := make(map[string]*string)\n+\tAttributes[\"ApproximateNumberOfMessages\"] = aws.String(\"100\")\n+\tinput := &sqs.SetQueueAttributesInput{\n+\t\tAttributes: Attributes,\n+\t}\n+\ts.Client.SetQueueAttributes(input)\n+\n+\ttime.Sleep(10 * time.Second)\n+\tdeployment, _ := p.Client.Deployments(\"test\").Get(\"test\")\n+\tassert.Equal(t, int32(*maxPods), deployment.Spec.Replicas)\n+\n+\tAttributes = make(map[string]*string)\n+\tAttributes[\"ApproximateNumberOfMessages\"] = aws.String(\"10\")\n+\tinput = &sqs.SetQueueAttributesInput{\n+\t\tAttributes: Attributes,\n+\t}\n+\ts.Client.SetQueueAttributes(input)\n+\n+\ttime.Sleep(10 * time.Second)\n+\tdeployment, _ = p.Client.Deployments(\"test\").Get(\"test\")\n+\tassert.Equal(t, int32(*minPods), deployment.Spec.Replicas)\n+}\n+\n+func TestRunScaleUpCoolDown(t *testing.T) {\n+\t// override default vars for testing\n+\t*pollInterval = 5 * time.Second\n+\t*scaleDownCoolPeriod = 10 * time.Second\n+\t*scaleUpCoolPeriod = 10 * time.Second\n+\t*scaleUpMessages = 100\n+\t*scaleDownMessages = 10\n+\t*maxPods = 5\n+\t*minPods = 1\n+\t*awsRegion = \"us-east-1\"\n+\n+\t*sqsQueueUrl = \"sqs.test.com\"\n+\t*kubernetesDeploymentName = \"test\"\n+\n+\tp := NewMockPodAutoScaler(*kubernetesDeploymentName, *kubernetesNamespace, *maxPods, *minPods)\n+\ts := NewMockSqsClient()\n+\n+\tgo Run(p, s)\n+\n+\tAttributes := make(map[string]*string)\n+\tAttributes[\"ApproximateNumberOfMessages\"] = aws.String(\"100\")\n+\tinput := &sqs.SetQueueAttributesInput{\n+\t\tAttributes: Attributes,\n+\t}\n+\ts.Client.SetQueueAttributes(input)\n+\n+\t// with a 15 second wait and a 10 second cool down, we should expect only 1 pod to scale up","path":"main_test.go","position":188,"original_position":187,"commit_id":"abb3900b196a89efd3f2fe724fa2287ed26bf5e3","original_commit_id":"fc1a63751da5b0e1bbfdd535be1c387e63cc1e2b","user":{"login":"jharlap","id":108388,"avatar_url":"https://avatars.githubusercontent.com/u/108388?v=3","gravatar_id":"","url":"https://api.github.com/users/jharlap","html_url":"https://github.com/jharlap","followers_url":"https://api.github.com/users/jharlap/followers","following_url":"https://api.github.com/users/jharlap/following{/other_user}","gists_url":"https://api.github.com/users/jharlap/gists{/gist_id}","starred_url":"https://api.github.com/users/jharlap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jharlap/subscriptions","organizations_url":"https://api.github.com/users/jharlap/orgs","repos_url":"https://api.github.com/users/jharlap/repos","events_url":"https://api.github.com/users/jharlap/events{/privacy}","received_events_url":"https://api.github.com/users/jharlap/received_events","type":"User","site_admin":false},"body":"is that true?\r\nt=0 poll -> scale up\r\nt=5 poll -> cool down noop\r\nt=10.01 poll -> scale up (cool down has expired)\r\n","created_at":"2016-09-22T09:10:08Z","updated_at":"2016-09-22T09:10:08Z","html_url":"https://github.com/Wattpad/kube-sqs-autoscaler/pull/1#discussion_r80001015","pull_request_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/pulls/comments/80001015"},"html":{"href":"https://github.com/Wattpad/kube-sqs-autoscaler/pull/1#discussion_r80001015"},"pull_request":{"href":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/pulls/1","id":85996880,"html_url":"https://github.com/Wattpad/kube-sqs-autoscaler/pull/1","diff_url":"https://github.com/Wattpad/kube-sqs-autoscaler/pull/1.diff","patch_url":"https://github.com/Wattpad/kube-sqs-autoscaler/pull/1.patch","issue_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/issues/1","number":1,"state":"open","locked":false,"title":"kube-sqs-autoscaler","user":{"login":"andrewsykim","id":12699319,"avatar_url":"https://avatars.githubusercontent.com/u/12699319?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewsykim","html_url":"https://github.com/andrewsykim","followers_url":"https://api.github.com/users/andrewsykim/followers","following_url":"https://api.github.com/users/andrewsykim/following{/other_user}","gists_url":"https://api.github.com/users/andrewsykim/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewsykim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewsykim/subscriptions","organizations_url":"https://api.github.com/users/andrewsykim/orgs","repos_url":"https://api.github.com/users/andrewsykim/repos","events_url":"https://api.github.com/users/andrewsykim/events{/privacy}","received_events_url":"https://api.github.com/users/andrewsykim/received_events","type":"User","site_admin":false},"body":"Added unit tests and updated the README. I'll add vendors afterwards to keep the PR clean.","created_at":"2016-09-20T15:17:35Z","updated_at":"2016-09-22T09:10:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73265862d4933d39e4cd7f9526dc53eb50a81b93","assignee":{"login":"jharlap","id":108388,"avatar_url":"https://avatars.githubusercontent.com/u/108388?v=3","gravatar_id":"","url":"https://api.github.com/users/jharlap","html_url":"https://github.com/jharlap","followers_url":"https://api.github.com/users/jharlap/followers","following_url":"https://api.github.com/users/jharlap/following{/other_user}","gists_url":"https://api.github.com/users/jharlap/gists{/gist_id}","starred_url":"https://api.github.com/users/jharlap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jharlap/subscriptions","organizations_url":"https://api.github.com/users/jharlap/orgs","repos_url":"https://api.github.com/users/jharlap/repos","events_url":"https://api.github.com/users/jharlap/events{/privacy}","received_events_url":"https://api.github.com/users/jharlap/received_events","type":"User","site_admin":false},"assignees":[{"login":"jharlap","id":108388,"avatar_url":"https://avatars.githubusercontent.com/u/108388?v=3","gravatar_id":"","url":"https://api.github.com/users/jharlap","html_url":"https://github.com/jharlap","followers_url":"https://api.github.com/users/jharlap/followers","following_url":"https://api.github.com/users/jharlap/following{/other_user}","gists_url":"https://api.github.com/users/jharlap/gists{/gist_id}","starred_url":"https://api.github.com/users/jharlap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jharlap/subscriptions","organizations_url":"https://api.github.com/users/jharlap/orgs","repos_url":"https://api.github.com/users/jharlap/repos","events_url":"https://api.github.com/users/jharlap/events{/privacy}","received_events_url":"https://api.github.com/users/jharlap/received_events","type":"User","site_admin":false},{"login":"andrewsykim","id":12699319,"avatar_url":"https://avatars.githubusercontent.com/u/12699319?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewsykim","html_url":"https://github.com/andrewsykim","followers_url":"https://api.github.com/users/andrewsykim/followers","following_url":"https://api.github.com/users/andrewsykim/following{/other_user}","gists_url":"https://api.github.com/users/andrewsykim/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewsykim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewsykim/subscriptions","organizations_url":"https://api.github.com/users/andrewsykim/orgs","repos_url":"https://api.github.com/users/andrewsykim/repos","events_url":"https://api.github.com/users/andrewsykim/events{/privacy}","received_events_url":"https://api.github.com/users/andrewsykim/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/issues/1/comments","statuses_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/statuses/abb3900b196a89efd3f2fe724fa2287ed26bf5e3","head":{"label":"Wattpad:init","ref":"init","sha":"abb3900b196a89efd3f2fe724fa2287ed26bf5e3","user":{"login":"Wattpad","id":1958757,"avatar_url":"https://avatars.githubusercontent.com/u/1958757?v=3","gravatar_id":"","url":"https://api.github.com/users/Wattpad","html_url":"https://github.com/Wattpad","followers_url":"https://api.github.com/users/Wattpad/followers","following_url":"https://api.github.com/users/Wattpad/following{/other_user}","gists_url":"https://api.github.com/users/Wattpad/gists{/gist_id}","starred_url":"https://api.github.com/users/Wattpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wattpad/subscriptions","organizations_url":"https://api.github.com/users/Wattpad/orgs","repos_url":"https://api.github.com/users/Wattpad/repos","events_url":"https://api.github.com/users/Wattpad/events{/privacy}","received_events_url":"https://api.github.com/users/Wattpad/received_events","type":"Organization","site_admin":false},"repo":{"id":68654726,"name":"kube-sqs-autoscaler","full_name":"Wattpad/kube-sqs-autoscaler","owner":{"login":"Wattpad","id":1958757,"avatar_url":"https://avatars.githubusercontent.com/u/1958757?v=3","gravatar_id":"","url":"https://api.github.com/users/Wattpad","html_url":"https://github.com/Wattpad","followers_url":"https://api.github.com/users/Wattpad/followers","following_url":"https://api.github.com/users/Wattpad/following{/other_user}","gists_url":"https://api.github.com/users/Wattpad/gists{/gist_id}","starred_url":"https://api.github.com/users/Wattpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wattpad/subscriptions","organizations_url":"https://api.github.com/users/Wattpad/orgs","repos_url":"https://api.github.com/users/Wattpad/repos","events_url":"https://api.github.com/users/Wattpad/events{/privacy}","received_events_url":"https://api.github.com/users/Wattpad/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wattpad/kube-sqs-autoscaler","description":"Kubernetes pod autoscaler based on queue size in AWS SQS","fork":false,"url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler","forks_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/forks","keys_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/teams","hooks_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/hooks","issue_events_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/issues/events{/number}","events_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/events","assignees_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/assignees{/user}","branches_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/branches{/branch}","tags_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/tags","blobs_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/statuses/{sha}","languages_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/languages","stargazers_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/stargazers","contributors_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/contributors","subscribers_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/subscribers","subscription_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/subscription","commits_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/contents/{+path}","compare_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/merges","archive_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/downloads","issues_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/issues{/number}","pulls_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/pulls{/number}","milestones_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/milestones{/number}","notifications_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/labels{/name}","releases_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/releases{/id}","deployments_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/deployments","created_at":"2016-09-19T23:19:34Z","updated_at":"2016-09-19T23:19:34Z","pushed_at":"2016-09-21T20:53:49Z","git_url":"git://github.com/Wattpad/kube-sqs-autoscaler.git","ssh_url":"git@github.com:Wattpad/kube-sqs-autoscaler.git","clone_url":"https://github.com/Wattpad/kube-sqs-autoscaler.git","svn_url":"https://github.com/Wattpad/kube-sqs-autoscaler","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Wattpad:master","ref":"master","sha":"5108937301b62e802768a011b8a9e5a940189cb1","user":{"login":"Wattpad","id":1958757,"avatar_url":"https://avatars.githubusercontent.com/u/1958757?v=3","gravatar_id":"","url":"https://api.github.com/users/Wattpad","html_url":"https://github.com/Wattpad","followers_url":"https://api.github.com/users/Wattpad/followers","following_url":"https://api.github.com/users/Wattpad/following{/other_user}","gists_url":"https://api.github.com/users/Wattpad/gists{/gist_id}","starred_url":"https://api.github.com/users/Wattpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wattpad/subscriptions","organizations_url":"https://api.github.com/users/Wattpad/orgs","repos_url":"https://api.github.com/users/Wattpad/repos","events_url":"https://api.github.com/users/Wattpad/events{/privacy}","received_events_url":"https://api.github.com/users/Wattpad/received_events","type":"Organization","site_admin":false},"repo":{"id":68654726,"name":"kube-sqs-autoscaler","full_name":"Wattpad/kube-sqs-autoscaler","owner":{"login":"Wattpad","id":1958757,"avatar_url":"https://avatars.githubusercontent.com/u/1958757?v=3","gravatar_id":"","url":"https://api.github.com/users/Wattpad","html_url":"https://github.com/Wattpad","followers_url":"https://api.github.com/users/Wattpad/followers","following_url":"https://api.github.com/users/Wattpad/following{/other_user}","gists_url":"https://api.github.com/users/Wattpad/gists{/gist_id}","starred_url":"https://api.github.com/users/Wattpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wattpad/subscriptions","organizations_url":"https://api.github.com/users/Wattpad/orgs","repos_url":"https://api.github.com/users/Wattpad/repos","events_url":"https://api.github.com/users/Wattpad/events{/privacy}","received_events_url":"https://api.github.com/users/Wattpad/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wattpad/kube-sqs-autoscaler","description":"Kubernetes pod autoscaler based on queue size in AWS SQS","fork":false,"url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler","forks_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/forks","keys_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/teams","hooks_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/hooks","issue_events_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/issues/events{/number}","events_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/events","assignees_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/assignees{/user}","branches_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/branches{/branch}","tags_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/tags","blobs_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/statuses/{sha}","languages_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/languages","stargazers_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/stargazers","contributors_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/contributors","subscribers_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/subscribers","subscription_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/subscription","commits_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/contents/{+path}","compare_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/merges","archive_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/downloads","issues_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/issues{/number}","pulls_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/pulls{/number}","milestones_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/milestones{/number}","notifications_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/labels{/name}","releases_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/releases{/id}","deployments_url":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/deployments","created_at":"2016-09-19T23:19:34Z","updated_at":"2016-09-19T23:19:34Z","pushed_at":"2016-09-21T20:53:49Z","git_url":"git://github.com/Wattpad/kube-sqs-autoscaler.git","ssh_url":"git@github.com:Wattpad/kube-sqs-autoscaler.git","clone_url":"https://github.com/Wattpad/kube-sqs-autoscaler.git","svn_url":"https://github.com/Wattpad/kube-sqs-autoscaler","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/pulls/1"},"html":{"href":"https://github.com/Wattpad/kube-sqs-autoscaler/pull/1"},"issue":{"href":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/issues/1"},"comments":{"href":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Wattpad/kube-sqs-autoscaler/statuses/abb3900b196a89efd3f2fe724fa2287ed26bf5e3"}}}}
{"actor":{"display_login":"jharlap"}}