@@ -72,14 +72,14 @@ const REG_PARAMS = {
7272} ;
7373const REG_AZCOLLECT_QUERY = {
7474 body : {
75- awsAccountId : " 123456789012" ,
76- collectorId : " collector-id" ,
77- custom_fields : { data_type : " vpcflow" , something_else : " testtest" } ,
78- dataType : " secmsgs" ,
79- functionName : " test-VpcFlowCollectLambdaFunction" ,
80- region : " us-east-1" ,
75+ awsAccountId : ' 123456789012' ,
76+ collectorId : ' collector-id' ,
77+ custom_fields : { data_type : ' vpcflow' , something_else : ' testtest' } ,
78+ dataType : ' secmsgs' ,
79+ functionName : ' test-VpcFlowCollectLambdaFunction' ,
80+ region : ' us-east-1' ,
8181 stackName : STACK_NAME ,
82- version : " 1.0.0"
82+ version : ' 1.0.0'
8383 }
8484} ;
8585
@@ -110,10 +110,14 @@ const CHECKIN_URL = '/aws/cwe/checkin/123456789012/us-east-1/' + encodeURICompon
110110
111111const CHECKIN_AZCOLLECT_QUERY = {
112112 body : {
113+ awsAccountId : '123456789012' ,
114+ collectorId : 'collector-id' ,
115+ dataType : 'secmsgs' ,
116+ details : [ ] ,
117+ functionName : 'test-VpcFlowCollectLambdaFunction' ,
118+ region : 'us-east-1' ,
113119 version : '1.0.0' ,
114120 status : 'ok' ,
115- error_code : undefined ,
116- details : [ ] ,
117121 statistics :[
118122 { 'Label' :'Invocations' , 'Datapoints' :[ { 'Timestamp' :'2017-11-21T16:40:00Z' , 'Sum' :1 , 'Unit' :'Count' } ] } ,
119123 { 'Label' :'Errors' , 'Datapoints' :[ { 'Timestamp' :'2017-11-21T16:40:00Z' , 'Sum' :1 , 'Unit' :'Count' } ] }
@@ -123,6 +127,11 @@ const CHECKIN_AZCOLLECT_QUERY = {
123127
124128const CHECKIN_AZCOLLECT_QUERY_CUSTOM_HEALTHCHECK_ERROR = {
125129 body : {
130+ awsAccountId : '123456789012' ,
131+ collectorId : 'collector-id' ,
132+ dataType : 'secmsgs' ,
133+ functionName : 'test-VpcFlowCollectLambdaFunction' ,
134+ region : 'us-east-1' ,
126135 version : '1.0.0' ,
127136 status : 'error' ,
128137 error_code : 'MYCODE' ,
@@ -161,6 +170,11 @@ const CF_DESCRIBE_STACKS_RESPONSE = {
161170
162171const CHECKIN_ERROR_AZCOLLECT_QUERY = {
163172 body : {
173+ awsAccountId : '123456789012' ,
174+ collectorId : 'collector-id' ,
175+ dataType : 'secmsgs' ,
176+ functionName : 'test-VpcFlowCollectLambdaFunction' ,
177+ region : 'us-east-1' ,
164178 version : '1.0.0' ,
165179 status : 'error' ,
166180 error_code : 'ALAWS00002' ,
0 commit comments