Test Setup Failed
Push — main ( 65658e...e4024b )
by Acho
02:13
created

stubs.HeartbeatIndexResponse   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
package stubs
2
3
// HeartbeatIndexResponse response from the /v1/heartbeats endpoint
4
func HeartbeatIndexResponse() []byte {
5
	return []byte(`
6
{
7
    "data": [
8
        {
9
            "id": "9d484671-cac2-41de-9171-d9d2c1835d7b",
10
            "owner": "+18005550199",
11
            "user_id": "hT5V2CmN5bbG81glMLmosxPV9Np2",
12
            "charging": true,
13
            "timestamp": "2024-01-21T13:07:56.203538Z"
14
        }
15
    ],
16
    "message": "fetched 1 heartbeat",
17
    "status": "success"
18
}
19
`)
20
}
21