Statistic
Get timeline statistics for a workspace
Retrieves statistics for a workspace over the last 3 months, showing trends and changes over time.
GET
/
api
/
statistic
/
timeline
Get timeline statistics for a workspace
curl --request GET \
--url https://{baseUrl}/api/v1/api/statistic/timelineimport requests
url = "https://{baseUrl}/api/v1/api/statistic/timeline"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/statistic/timeline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/statistic/timeline"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"assets": 0,
"targets": 0,
"vuls": 0,
"criticalVuls": 0,
"highVuls": 0,
"mediumVuls": 0,
"lowVuls": 0,
"infoVuls": 0,
"techs": 0,
"ports": 0,
"services": 0,
"score": 0
}
],
"total": 5
}⌘I
Get timeline statistics for a workspace
curl --request GET \
--url https://{baseUrl}/api/v1/api/statistic/timelineimport requests
url = "https://{baseUrl}/api/v1/api/statistic/timeline"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/statistic/timeline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/statistic/timeline"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"assets": 0,
"targets": 0,
"vuls": 0,
"criticalVuls": 0,
"highVuls": 0,
"mediumVuls": 0,
"lowVuls": 0,
"infoVuls": 0,
"techs": 0,
"ports": 0,
"services": 0,
"score": 0
}
],
"total": 5
}