dependency-tracker-client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +201 -0
- data/README.md +276 -0
- data/Rakefile +10 -0
- data/dependency-tracker-client.gemspec +39 -0
- data/docs/About.md +25 -0
- data/docs/Analysis.md +21 -0
- data/docs/AnalysisApi.md +177 -0
- data/docs/AnalysisComment.md +21 -0
- data/docs/AnalysisRequest.md +27 -0
- data/docs/ApiKey.md +17 -0
- data/docs/BadgeApi.md +102 -0
- data/docs/BodyPart.md +31 -0
- data/docs/BomApi.md +335 -0
- data/docs/BomSubmitRequest.md +25 -0
- data/docs/CalculatorApi.md +61 -0
- data/docs/CloneProjectRequest.md +19 -0
- data/docs/Component.md +69 -0
- data/docs/ComponentApi.md +373 -0
- data/docs/ComponentMetrics.md +43 -0
- data/docs/ConfigProperty.md +25 -0
- data/docs/ConfigPropertyApi.md +167 -0
- data/docs/ContentDisposition.md +29 -0
- data/docs/Cwe.md +19 -0
- data/docs/CweApi.md +110 -0
- data/docs/DefaultApi.md +434 -0
- data/docs/Dependency.md +27 -0
- data/docs/DependencyApi.md +222 -0
- data/docs/DependencyMetrics.md +45 -0
- data/docs/DependencyRequest.md +21 -0
- data/docs/Finding.md +23 -0
- data/docs/FindingApi.md +113 -0
- data/docs/FormDataBodyPart.md +39 -0
- data/docs/FormDataContentDisposition.md +31 -0
- data/docs/FormDataMultiPart.md +35 -0
- data/docs/Framework.md +23 -0
- data/docs/IdentifiableObject.md +17 -0
- data/docs/LdapApi.md +220 -0
- data/docs/LdapUser.md +25 -0
- data/docs/License.md +37 -0
- data/docs/LicenseApi.md +159 -0
- data/docs/ManagedUser.md +37 -0
- data/docs/MappedLdapGroup.md +19 -0
- data/docs/MappedLdapGroupRequest.md +19 -0
- data/docs/MediaType.md +25 -0
- data/docs/MetricsApi.md +922 -0
- data/docs/MultiPart.md +33 -0
- data/docs/NotificationPublisher.md +29 -0
- data/docs/NotificationRule.md +35 -0
- data/docs/PackageURL.md +29 -0
- data/docs/ParameterizedHeader.md +19 -0
- data/docs/Permission.md +19 -0
- data/docs/PermissionApi.md +279 -0
- data/docs/PortfolioMetrics.md +53 -0
- data/docs/Project.md +43 -0
- data/docs/ProjectApi.md +445 -0
- data/docs/ProjectMetrics.md +47 -0
- data/docs/ProjectProperty.md +27 -0
- data/docs/ProjectPropertyApi.md +232 -0
- data/docs/Repository.md +29 -0
- data/docs/RepositoryApi.md +325 -0
- data/docs/RepositoryMetaComponent.md +27 -0
- data/docs/Score.md +23 -0
- data/docs/SearchApi.md +120 -0
- data/docs/SearchResult.md +17 -0
- data/docs/Tag.md +19 -0
- data/docs/Team.md +29 -0
- data/docs/TeamApi.md +432 -0
- data/docs/UserApi.md +715 -0
- data/docs/UserPrincipal.md +27 -0
- data/docs/VersionApi.md +52 -0
- data/docs/Vulnerability.md +69 -0
- data/docs/VulnerabilityApi.md +666 -0
- data/docs/VulnerabilityMetrics.md +23 -0
- data/docs/VulnerableSoftware.md +69 -0
- data/lib/dependency-tracker-client/api/analysis_api.rb +209 -0
- data/lib/dependency-tracker-client/api/badge_api.rb +148 -0
- data/lib/dependency-tracker-client/api/bom_api.rb +382 -0
- data/lib/dependency-tracker-client/api/calculator_api.rb +83 -0
- data/lib/dependency-tracker-client/api/component_api.rb +422 -0
- data/lib/dependency-tracker-client/api/config_property_api.rb +192 -0
- data/lib/dependency-tracker-client/api/cwe_api.rb +136 -0
- data/lib/dependency-tracker-client/api/default_api.rb +491 -0
- data/lib/dependency-tracker-client/api/dependency_api.rb +254 -0
- data/lib/dependency-tracker-client/api/finding_api.rb +140 -0
- data/lib/dependency-tracker-client/api/ldap_api.rb +254 -0
- data/lib/dependency-tracker-client/api/license_api.rb +190 -0
- data/lib/dependency-tracker-client/api/metrics_api.rb +1086 -0
- data/lib/dependency-tracker-client/api/permission_api.rb +342 -0
- data/lib/dependency-tracker-client/api/project_api.rb +504 -0
- data/lib/dependency-tracker-client/api/project_property_api.rb +274 -0
- data/lib/dependency-tracker-client/api/repository_api.rb +376 -0
- data/lib/dependency-tracker-client/api/search_api.rb +143 -0
- data/lib/dependency-tracker-client/api/team_api.rb +486 -0
- data/lib/dependency-tracker-client/api/user_api.rb +796 -0
- data/lib/dependency-tracker-client/api/version_api.rb +78 -0
- data/lib/dependency-tracker-client/api/vulnerability_api.rb +780 -0
- data/lib/dependency-tracker-client/api_client.rb +388 -0
- data/lib/dependency-tracker-client/api_error.rb +57 -0
- data/lib/dependency-tracker-client/configuration.rb +261 -0
- data/lib/dependency-tracker-client/models/about.rb +242 -0
- data/lib/dependency-tracker-client/models/analysis.rb +265 -0
- data/lib/dependency-tracker-client/models/analysis_comment.rb +234 -0
- data/lib/dependency-tracker-client/models/analysis_request.rb +371 -0
- data/lib/dependency-tracker-client/models/api_key.rb +250 -0
- data/lib/dependency-tracker-client/models/body_part.rb +273 -0
- data/lib/dependency-tracker-client/models/bom_submit_request.rb +328 -0
- data/lib/dependency-tracker-client/models/clone_project_request.rb +267 -0
- data/lib/dependency-tracker-client/models/component.rb +900 -0
- data/lib/dependency-tracker-client/models/component_metrics.rb +338 -0
- data/lib/dependency-tracker-client/models/config_property.rb +421 -0
- data/lib/dependency-tracker-client/models/content_disposition.rb +262 -0
- data/lib/dependency-tracker-client/models/cwe.rb +259 -0
- data/lib/dependency-tracker-client/models/dependency.rb +266 -0
- data/lib/dependency-tracker-client/models/dependency_metrics.rb +352 -0
- data/lib/dependency-tracker-client/models/dependency_request.rb +257 -0
- data/lib/dependency-tracker-client/models/finding.rb +239 -0
- data/lib/dependency-tracker-client/models/form_data_body_part.rb +309 -0
- data/lib/dependency-tracker-client/models/form_data_content_disposition.rb +271 -0
- data/lib/dependency-tracker-client/models/form_data_multi_part.rb +295 -0
- data/lib/dependency-tracker-client/models/framework.rb +233 -0
- data/lib/dependency-tracker-client/models/identifiable_object.rb +206 -0
- data/lib/dependency-tracker-client/models/ldap_user.rb +351 -0
- data/lib/dependency-tracker-client/models/license.rb +373 -0
- data/lib/dependency-tracker-client/models/managed_user.rb +480 -0
- data/lib/dependency-tracker-client/models/mapped_ldap_group.rb +255 -0
- data/lib/dependency-tracker-client/models/mapped_ldap_group_request.rb +267 -0
- data/lib/dependency-tracker-client/models/media_type.rb +244 -0
- data/lib/dependency-tracker-client/models/multi_part.rb +284 -0
- data/lib/dependency-tracker-client/models/notification_publisher.rb +388 -0
- data/lib/dependency-tracker-client/models/notification_rule.rb +426 -0
- data/lib/dependency-tracker-client/models/package_url.rb +262 -0
- data/lib/dependency-tracker-client/models/parameterized_header.rb +217 -0
- data/lib/dependency-tracker-client/models/permission.rb +250 -0
- data/lib/dependency-tracker-client/models/portfolio_metrics.rb +378 -0
- data/lib/dependency-tracker-client/models/project.rb +420 -0
- data/lib/dependency-tracker-client/models/project_metrics.rb +356 -0
- data/lib/dependency-tracker-client/models/project_property.rb +430 -0
- data/lib/dependency-tracker-client/models/repository.rb +319 -0
- data/lib/dependency-tracker-client/models/repository_meta_component.rb +305 -0
- data/lib/dependency-tracker-client/models/score.rb +233 -0
- data/lib/dependency-tracker-client/models/search_result.rb +208 -0
- data/lib/dependency-tracker-client/models/tag.rb +252 -0
- data/lib/dependency-tracker-client/models/team.rb +310 -0
- data/lib/dependency-tracker-client/models/user_principal.rb +255 -0
- data/lib/dependency-tracker-client/models/vulnerability.rb +729 -0
- data/lib/dependency-tracker-client/models/vulnerability_metrics.rb +238 -0
- data/lib/dependency-tracker-client/models/vulnerable_software.rb +442 -0
- data/lib/dependency-tracker-client/version.rb +15 -0
- data/lib/dependency-tracker-client.rb +109 -0
- data/pkg/dependency-tracker-client-1.0.0.gem +0 -0
- data/spec/api/analysis_api_spec.rb +70 -0
- data/spec/api/badge_api_spec.rb +58 -0
- data/spec/api/bom_api_spec.rb +106 -0
- data/spec/api/calculator_api_spec.rb +46 -0
- data/spec/api/component_api_spec.rb +110 -0
- data/spec/api/config_property_api_spec.rb +67 -0
- data/spec/api/cwe_api_spec.rb +56 -0
- data/spec/api/default_api_spec.rb +123 -0
- data/spec/api/dependency_api_spec.rb +79 -0
- data/spec/api/finding_api_spec.rb +57 -0
- data/spec/api/ldap_api_spec.rb +79 -0
- data/spec/api/license_api_spec.rb +66 -0
- data/spec/api/metrics_api_spec.rb +233 -0
- data/spec/api/permission_api_spec.rb +94 -0
- data/spec/api/project_api_spec.rb +126 -0
- data/spec/api/project_property_api_spec.rb +82 -0
- data/spec/api/repository_api_spec.rb +100 -0
- data/spec/api/search_api_spec.rb +59 -0
- data/spec/api/team_api_spec.rb +122 -0
- data/spec/api/user_api_spec.rb +183 -0
- data/spec/api/version_api_spec.rb +46 -0
- data/spec/api/vulnerability_api_spec.rb +177 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/about_spec.rb +65 -0
- data/spec/models/analysis_comment_spec.rb +53 -0
- data/spec/models/analysis_request_spec.rb +75 -0
- data/spec/models/analysis_spec.rb +57 -0
- data/spec/models/api_key_spec.rb +41 -0
- data/spec/models/body_part_spec.rb +83 -0
- data/spec/models/bom_submit_request_spec.rb +65 -0
- data/spec/models/clone_project_request_spec.rb +47 -0
- data/spec/models/component_metrics_spec.rb +119 -0
- data/spec/models/component_spec.rb +201 -0
- data/spec/models/config_property_spec.rb +69 -0
- data/spec/models/content_disposition_spec.rb +77 -0
- data/spec/models/cwe_spec.rb +47 -0
- data/spec/models/dependency_metrics_spec.rb +125 -0
- data/spec/models/dependency_request_spec.rb +53 -0
- data/spec/models/dependency_spec.rb +71 -0
- data/spec/models/finding_spec.rb +59 -0
- data/spec/models/form_data_body_part_spec.rb +107 -0
- data/spec/models/form_data_content_disposition_spec.rb +83 -0
- data/spec/models/form_data_multi_part_spec.rb +95 -0
- data/spec/models/framework_spec.rb +59 -0
- data/spec/models/identifiable_object_spec.rb +41 -0
- data/spec/models/ldap_user_spec.rb +65 -0
- data/spec/models/license_spec.rb +101 -0
- data/spec/models/managed_user_spec.rb +101 -0
- data/spec/models/mapped_ldap_group_request_spec.rb +47 -0
- data/spec/models/mapped_ldap_group_spec.rb +47 -0
- data/spec/models/media_type_spec.rb +65 -0
- data/spec/models/multi_part_spec.rb +89 -0
- data/spec/models/notification_publisher_spec.rb +77 -0
- data/spec/models/notification_rule_spec.rb +107 -0
- data/spec/models/package_url_spec.rb +77 -0
- data/spec/models/parameterized_header_spec.rb +47 -0
- data/spec/models/permission_spec.rb +47 -0
- data/spec/models/portfolio_metrics_spec.rb +149 -0
- data/spec/models/project_metrics_spec.rb +131 -0
- data/spec/models/project_property_spec.rb +75 -0
- data/spec/models/project_spec.rb +119 -0
- data/spec/models/repository_meta_component_spec.rb +75 -0
- data/spec/models/repository_spec.rb +81 -0
- data/spec/models/score_spec.rb +59 -0
- data/spec/models/search_result_spec.rb +41 -0
- data/spec/models/tag_spec.rb +47 -0
- data/spec/models/team_spec.rb +77 -0
- data/spec/models/user_principal_spec.rb +71 -0
- data/spec/models/vulnerability_metrics_spec.rb +59 -0
- data/spec/models/vulnerability_spec.rb +201 -0
- data/spec/models/vulnerable_software_spec.rb +197 -0
- data/spec/spec_helper.rb +111 -0
- data/tmp/tmp.rb +11 -0
- metadata +402 -0
data/docs/MetricsApi.md
ADDED
@@ -0,0 +1,922 @@
|
|
1
|
+
# DependencyTracker::MetricsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost/api*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_component_current_metrics**](MetricsApi.md#get_component_current_metrics) | **GET** /v1/metrics/component/{uuid}/current | Returns current metrics for a specific component
|
8
|
+
[**get_component_metrics_since**](MetricsApi.md#get_component_metrics_since) | **GET** /v1/metrics/component/{uuid}/since/{date} | Returns historical metrics for a specific component from a specific date
|
9
|
+
[**get_component_metrics_x_days**](MetricsApi.md#get_component_metrics_x_days) | **GET** /v1/metrics/component/{uuid}/days/{days} | Returns X days of historical metrics for a specific component
|
10
|
+
[**get_dependency_current_metrics**](MetricsApi.md#get_dependency_current_metrics) | **GET** /v1/metrics/project/{projectUuid}/component/{componentUuid}/current | Returns current metrics for a specific dependency
|
11
|
+
[**get_dependency_metrics_since**](MetricsApi.md#get_dependency_metrics_since) | **GET** /v1/metrics/project/{projectUuid}/component/{componentUuid}/since/{date} | Returns historical metrics for a specific dependency from a specific date
|
12
|
+
[**get_dependency_metrics_x_days**](MetricsApi.md#get_dependency_metrics_x_days) | **GET** /v1/metrics/project/{projectUuid}/component/{componentUuid}/days/{days} | Returns X days of historical metrics for a specific dependency
|
13
|
+
[**get_portfolio_current_metrics**](MetricsApi.md#get_portfolio_current_metrics) | **GET** /v1/metrics/portfolio/current | Returns current metrics for the entire portfolio
|
14
|
+
[**get_portfolio_metrics_since**](MetricsApi.md#get_portfolio_metrics_since) | **GET** /v1/metrics/portfolio/since/{date} | Returns historical metrics for the entire portfolio from a specific date
|
15
|
+
[**get_portfolio_metrics_x_days**](MetricsApi.md#get_portfolio_metrics_x_days) | **GET** /v1/metrics/portfolio/{days}/days | Returns X days of historical metrics for the entire portfolio
|
16
|
+
[**get_project_current_metrics**](MetricsApi.md#get_project_current_metrics) | **GET** /v1/metrics/project/{uuid}/current | Returns current metrics for a specific project
|
17
|
+
[**get_project_metrics_since**](MetricsApi.md#get_project_metrics_since) | **GET** /v1/metrics/project/{uuid}/since/{date} | Returns historical metrics for a specific project from a specific date
|
18
|
+
[**get_project_metrics_x_days**](MetricsApi.md#get_project_metrics_x_days) | **GET** /v1/metrics/project/{uuid}/days/{days} | Returns X days of historical metrics for a specific project
|
19
|
+
[**get_vulnerability_metrics**](MetricsApi.md#get_vulnerability_metrics) | **GET** /v1/metrics/vulnerability | Returns the sum of all vulnerabilities in the database by year and month
|
20
|
+
[**refresh_component_metrics**](MetricsApi.md#refresh_component_metrics) | **GET** /v1/metrics/component/{uuid}/refresh | Requests a refresh of a specific components metrics
|
21
|
+
[**refresh_dependency_metrics**](MetricsApi.md#refresh_dependency_metrics) | **GET** /v1/metrics/project/{projectUuid}/component/{componentUuid}/refresh | Requests a refresh of a specific dependency metrics
|
22
|
+
[**refresh_portfolio_metrics**](MetricsApi.md#refresh_portfolio_metrics) | **GET** /v1/metrics/portfolio/refresh | Requests a refresh of the portfolio metrics
|
23
|
+
[**refresh_project_metrics**](MetricsApi.md#refresh_project_metrics) | **GET** /v1/metrics/project/{uuid}/refresh | Requests a refresh of a specific projects metrics
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
## get_component_current_metrics
|
28
|
+
|
29
|
+
> ComponentMetrics get_component_current_metrics(uuid)
|
30
|
+
|
31
|
+
Returns current metrics for a specific component
|
32
|
+
|
33
|
+
### Example
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
# load the gem
|
37
|
+
require 'dependency-tracker-client'
|
38
|
+
# setup authorization
|
39
|
+
DependencyTracker.configure do |config|
|
40
|
+
# Configure API key authorization: X-Api-Key
|
41
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
42
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
43
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
44
|
+
end
|
45
|
+
|
46
|
+
api_instance = DependencyTracker::MetricsApi.new
|
47
|
+
uuid = 'uuid_example' # String | The UUID of the component to retrieve metrics for
|
48
|
+
|
49
|
+
begin
|
50
|
+
#Returns current metrics for a specific component
|
51
|
+
result = api_instance.get_component_current_metrics(uuid)
|
52
|
+
p result
|
53
|
+
rescue DependencyTracker::ApiError => e
|
54
|
+
puts "Exception when calling MetricsApi->get_component_current_metrics: #{e}"
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
58
|
+
### Parameters
|
59
|
+
|
60
|
+
|
61
|
+
Name | Type | Description | Notes
|
62
|
+
------------- | ------------- | ------------- | -------------
|
63
|
+
**uuid** | **String**| The UUID of the component to retrieve metrics for |
|
64
|
+
|
65
|
+
### Return type
|
66
|
+
|
67
|
+
[**ComponentMetrics**](ComponentMetrics.md)
|
68
|
+
|
69
|
+
### Authorization
|
70
|
+
|
71
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
72
|
+
|
73
|
+
### HTTP request headers
|
74
|
+
|
75
|
+
- **Content-Type**: Not defined
|
76
|
+
- **Accept**: application/json
|
77
|
+
|
78
|
+
|
79
|
+
## get_component_metrics_since
|
80
|
+
|
81
|
+
> Array<ComponentMetrics> get_component_metrics_since(uuid, date)
|
82
|
+
|
83
|
+
Returns historical metrics for a specific component from a specific date
|
84
|
+
|
85
|
+
Date format must be YYYYMMDD
|
86
|
+
|
87
|
+
### Example
|
88
|
+
|
89
|
+
```ruby
|
90
|
+
# load the gem
|
91
|
+
require 'dependency-tracker-client'
|
92
|
+
# setup authorization
|
93
|
+
DependencyTracker.configure do |config|
|
94
|
+
# Configure API key authorization: X-Api-Key
|
95
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
96
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
97
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
98
|
+
end
|
99
|
+
|
100
|
+
api_instance = DependencyTracker::MetricsApi.new
|
101
|
+
uuid = 'uuid_example' # String | The UUID of the component to retrieve metrics for
|
102
|
+
date = 'date_example' # String | The start date to retrieve metrics for
|
103
|
+
|
104
|
+
begin
|
105
|
+
#Returns historical metrics for a specific component from a specific date
|
106
|
+
result = api_instance.get_component_metrics_since(uuid, date)
|
107
|
+
p result
|
108
|
+
rescue DependencyTracker::ApiError => e
|
109
|
+
puts "Exception when calling MetricsApi->get_component_metrics_since: #{e}"
|
110
|
+
end
|
111
|
+
```
|
112
|
+
|
113
|
+
### Parameters
|
114
|
+
|
115
|
+
|
116
|
+
Name | Type | Description | Notes
|
117
|
+
------------- | ------------- | ------------- | -------------
|
118
|
+
**uuid** | **String**| The UUID of the component to retrieve metrics for |
|
119
|
+
**date** | **String**| The start date to retrieve metrics for |
|
120
|
+
|
121
|
+
### Return type
|
122
|
+
|
123
|
+
[**Array<ComponentMetrics>**](ComponentMetrics.md)
|
124
|
+
|
125
|
+
### Authorization
|
126
|
+
|
127
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
128
|
+
|
129
|
+
### HTTP request headers
|
130
|
+
|
131
|
+
- **Content-Type**: Not defined
|
132
|
+
- **Accept**: application/json
|
133
|
+
|
134
|
+
|
135
|
+
## get_component_metrics_x_days
|
136
|
+
|
137
|
+
> Array<ComponentMetrics> get_component_metrics_x_days(uuid, days)
|
138
|
+
|
139
|
+
Returns X days of historical metrics for a specific component
|
140
|
+
|
141
|
+
### Example
|
142
|
+
|
143
|
+
```ruby
|
144
|
+
# load the gem
|
145
|
+
require 'dependency-tracker-client'
|
146
|
+
# setup authorization
|
147
|
+
DependencyTracker.configure do |config|
|
148
|
+
# Configure API key authorization: X-Api-Key
|
149
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
150
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
151
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
152
|
+
end
|
153
|
+
|
154
|
+
api_instance = DependencyTracker::MetricsApi.new
|
155
|
+
uuid = 'uuid_example' # String | The UUID of the component to retrieve metrics for
|
156
|
+
days = 56 # Integer | The number of days back to retrieve metrics for
|
157
|
+
|
158
|
+
begin
|
159
|
+
#Returns X days of historical metrics for a specific component
|
160
|
+
result = api_instance.get_component_metrics_x_days(uuid, days)
|
161
|
+
p result
|
162
|
+
rescue DependencyTracker::ApiError => e
|
163
|
+
puts "Exception when calling MetricsApi->get_component_metrics_x_days: #{e}"
|
164
|
+
end
|
165
|
+
```
|
166
|
+
|
167
|
+
### Parameters
|
168
|
+
|
169
|
+
|
170
|
+
Name | Type | Description | Notes
|
171
|
+
------------- | ------------- | ------------- | -------------
|
172
|
+
**uuid** | **String**| The UUID of the component to retrieve metrics for |
|
173
|
+
**days** | **Integer**| The number of days back to retrieve metrics for |
|
174
|
+
|
175
|
+
### Return type
|
176
|
+
|
177
|
+
[**Array<ComponentMetrics>**](ComponentMetrics.md)
|
178
|
+
|
179
|
+
### Authorization
|
180
|
+
|
181
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
182
|
+
|
183
|
+
### HTTP request headers
|
184
|
+
|
185
|
+
- **Content-Type**: Not defined
|
186
|
+
- **Accept**: application/json
|
187
|
+
|
188
|
+
|
189
|
+
## get_dependency_current_metrics
|
190
|
+
|
191
|
+
> DependencyMetrics get_dependency_current_metrics(project_uuid, component_uuid)
|
192
|
+
|
193
|
+
Returns current metrics for a specific dependency
|
194
|
+
|
195
|
+
### Example
|
196
|
+
|
197
|
+
```ruby
|
198
|
+
# load the gem
|
199
|
+
require 'dependency-tracker-client'
|
200
|
+
# setup authorization
|
201
|
+
DependencyTracker.configure do |config|
|
202
|
+
# Configure API key authorization: X-Api-Key
|
203
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
204
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
205
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
206
|
+
end
|
207
|
+
|
208
|
+
api_instance = DependencyTracker::MetricsApi.new
|
209
|
+
project_uuid = 'project_uuid_example' # String | The UUID of the project to retrieve metrics for
|
210
|
+
component_uuid = 'component_uuid_example' # String | The UUID of the component to retrieve metrics for
|
211
|
+
|
212
|
+
begin
|
213
|
+
#Returns current metrics for a specific dependency
|
214
|
+
result = api_instance.get_dependency_current_metrics(project_uuid, component_uuid)
|
215
|
+
p result
|
216
|
+
rescue DependencyTracker::ApiError => e
|
217
|
+
puts "Exception when calling MetricsApi->get_dependency_current_metrics: #{e}"
|
218
|
+
end
|
219
|
+
```
|
220
|
+
|
221
|
+
### Parameters
|
222
|
+
|
223
|
+
|
224
|
+
Name | Type | Description | Notes
|
225
|
+
------------- | ------------- | ------------- | -------------
|
226
|
+
**project_uuid** | **String**| The UUID of the project to retrieve metrics for |
|
227
|
+
**component_uuid** | **String**| The UUID of the component to retrieve metrics for |
|
228
|
+
|
229
|
+
### Return type
|
230
|
+
|
231
|
+
[**DependencyMetrics**](DependencyMetrics.md)
|
232
|
+
|
233
|
+
### Authorization
|
234
|
+
|
235
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
236
|
+
|
237
|
+
### HTTP request headers
|
238
|
+
|
239
|
+
- **Content-Type**: Not defined
|
240
|
+
- **Accept**: application/json
|
241
|
+
|
242
|
+
|
243
|
+
## get_dependency_metrics_since
|
244
|
+
|
245
|
+
> Array<DependencyMetrics> get_dependency_metrics_since(project_uuid, component_uuid, date)
|
246
|
+
|
247
|
+
Returns historical metrics for a specific dependency from a specific date
|
248
|
+
|
249
|
+
Date format must be YYYYMMDD
|
250
|
+
|
251
|
+
### Example
|
252
|
+
|
253
|
+
```ruby
|
254
|
+
# load the gem
|
255
|
+
require 'dependency-tracker-client'
|
256
|
+
# setup authorization
|
257
|
+
DependencyTracker.configure do |config|
|
258
|
+
# Configure API key authorization: X-Api-Key
|
259
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
260
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
261
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
262
|
+
end
|
263
|
+
|
264
|
+
api_instance = DependencyTracker::MetricsApi.new
|
265
|
+
project_uuid = 'project_uuid_example' # String | The UUID of the project to retrieve metrics for
|
266
|
+
component_uuid = 'component_uuid_example' # String | The UUID of the component to retrieve metrics for
|
267
|
+
date = 'date_example' # String | The start date to retrieve metrics for
|
268
|
+
|
269
|
+
begin
|
270
|
+
#Returns historical metrics for a specific dependency from a specific date
|
271
|
+
result = api_instance.get_dependency_metrics_since(project_uuid, component_uuid, date)
|
272
|
+
p result
|
273
|
+
rescue DependencyTracker::ApiError => e
|
274
|
+
puts "Exception when calling MetricsApi->get_dependency_metrics_since: #{e}"
|
275
|
+
end
|
276
|
+
```
|
277
|
+
|
278
|
+
### Parameters
|
279
|
+
|
280
|
+
|
281
|
+
Name | Type | Description | Notes
|
282
|
+
------------- | ------------- | ------------- | -------------
|
283
|
+
**project_uuid** | **String**| The UUID of the project to retrieve metrics for |
|
284
|
+
**component_uuid** | **String**| The UUID of the component to retrieve metrics for |
|
285
|
+
**date** | **String**| The start date to retrieve metrics for |
|
286
|
+
|
287
|
+
### Return type
|
288
|
+
|
289
|
+
[**Array<DependencyMetrics>**](DependencyMetrics.md)
|
290
|
+
|
291
|
+
### Authorization
|
292
|
+
|
293
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
294
|
+
|
295
|
+
### HTTP request headers
|
296
|
+
|
297
|
+
- **Content-Type**: Not defined
|
298
|
+
- **Accept**: application/json
|
299
|
+
|
300
|
+
|
301
|
+
## get_dependency_metrics_x_days
|
302
|
+
|
303
|
+
> Array<DependencyMetrics> get_dependency_metrics_x_days(project_uuid, component_uuid, days)
|
304
|
+
|
305
|
+
Returns X days of historical metrics for a specific dependency
|
306
|
+
|
307
|
+
### Example
|
308
|
+
|
309
|
+
```ruby
|
310
|
+
# load the gem
|
311
|
+
require 'dependency-tracker-client'
|
312
|
+
# setup authorization
|
313
|
+
DependencyTracker.configure do |config|
|
314
|
+
# Configure API key authorization: X-Api-Key
|
315
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
316
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
317
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
318
|
+
end
|
319
|
+
|
320
|
+
api_instance = DependencyTracker::MetricsApi.new
|
321
|
+
project_uuid = 'project_uuid_example' # String | The UUID of the project to retrieve metrics for
|
322
|
+
component_uuid = 'component_uuid_example' # String | The UUID of the component to retrieve metrics for
|
323
|
+
days = 56 # Integer | The number of days back to retrieve metrics for
|
324
|
+
|
325
|
+
begin
|
326
|
+
#Returns X days of historical metrics for a specific dependency
|
327
|
+
result = api_instance.get_dependency_metrics_x_days(project_uuid, component_uuid, days)
|
328
|
+
p result
|
329
|
+
rescue DependencyTracker::ApiError => e
|
330
|
+
puts "Exception when calling MetricsApi->get_dependency_metrics_x_days: #{e}"
|
331
|
+
end
|
332
|
+
```
|
333
|
+
|
334
|
+
### Parameters
|
335
|
+
|
336
|
+
|
337
|
+
Name | Type | Description | Notes
|
338
|
+
------------- | ------------- | ------------- | -------------
|
339
|
+
**project_uuid** | **String**| The UUID of the project to retrieve metrics for |
|
340
|
+
**component_uuid** | **String**| The UUID of the component to retrieve metrics for |
|
341
|
+
**days** | **Integer**| The number of days back to retrieve metrics for |
|
342
|
+
|
343
|
+
### Return type
|
344
|
+
|
345
|
+
[**Array<DependencyMetrics>**](DependencyMetrics.md)
|
346
|
+
|
347
|
+
### Authorization
|
348
|
+
|
349
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
350
|
+
|
351
|
+
### HTTP request headers
|
352
|
+
|
353
|
+
- **Content-Type**: Not defined
|
354
|
+
- **Accept**: application/json
|
355
|
+
|
356
|
+
|
357
|
+
## get_portfolio_current_metrics
|
358
|
+
|
359
|
+
> PortfolioMetrics get_portfolio_current_metrics
|
360
|
+
|
361
|
+
Returns current metrics for the entire portfolio
|
362
|
+
|
363
|
+
### Example
|
364
|
+
|
365
|
+
```ruby
|
366
|
+
# load the gem
|
367
|
+
require 'dependency-tracker-client'
|
368
|
+
# setup authorization
|
369
|
+
DependencyTracker.configure do |config|
|
370
|
+
# Configure API key authorization: X-Api-Key
|
371
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
372
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
373
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
374
|
+
end
|
375
|
+
|
376
|
+
api_instance = DependencyTracker::MetricsApi.new
|
377
|
+
|
378
|
+
begin
|
379
|
+
#Returns current metrics for the entire portfolio
|
380
|
+
result = api_instance.get_portfolio_current_metrics
|
381
|
+
p result
|
382
|
+
rescue DependencyTracker::ApiError => e
|
383
|
+
puts "Exception when calling MetricsApi->get_portfolio_current_metrics: #{e}"
|
384
|
+
end
|
385
|
+
```
|
386
|
+
|
387
|
+
### Parameters
|
388
|
+
|
389
|
+
This endpoint does not need any parameter.
|
390
|
+
|
391
|
+
### Return type
|
392
|
+
|
393
|
+
[**PortfolioMetrics**](PortfolioMetrics.md)
|
394
|
+
|
395
|
+
### Authorization
|
396
|
+
|
397
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
398
|
+
|
399
|
+
### HTTP request headers
|
400
|
+
|
401
|
+
- **Content-Type**: Not defined
|
402
|
+
- **Accept**: application/json
|
403
|
+
|
404
|
+
|
405
|
+
## get_portfolio_metrics_since
|
406
|
+
|
407
|
+
> Array<PortfolioMetrics> get_portfolio_metrics_since(date)
|
408
|
+
|
409
|
+
Returns historical metrics for the entire portfolio from a specific date
|
410
|
+
|
411
|
+
Date format must be YYYYMMDD
|
412
|
+
|
413
|
+
### Example
|
414
|
+
|
415
|
+
```ruby
|
416
|
+
# load the gem
|
417
|
+
require 'dependency-tracker-client'
|
418
|
+
# setup authorization
|
419
|
+
DependencyTracker.configure do |config|
|
420
|
+
# Configure API key authorization: X-Api-Key
|
421
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
422
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
423
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
424
|
+
end
|
425
|
+
|
426
|
+
api_instance = DependencyTracker::MetricsApi.new
|
427
|
+
date = 'date_example' # String | The start date to retrieve metrics for
|
428
|
+
|
429
|
+
begin
|
430
|
+
#Returns historical metrics for the entire portfolio from a specific date
|
431
|
+
result = api_instance.get_portfolio_metrics_since(date)
|
432
|
+
p result
|
433
|
+
rescue DependencyTracker::ApiError => e
|
434
|
+
puts "Exception when calling MetricsApi->get_portfolio_metrics_since: #{e}"
|
435
|
+
end
|
436
|
+
```
|
437
|
+
|
438
|
+
### Parameters
|
439
|
+
|
440
|
+
|
441
|
+
Name | Type | Description | Notes
|
442
|
+
------------- | ------------- | ------------- | -------------
|
443
|
+
**date** | **String**| The start date to retrieve metrics for |
|
444
|
+
|
445
|
+
### Return type
|
446
|
+
|
447
|
+
[**Array<PortfolioMetrics>**](PortfolioMetrics.md)
|
448
|
+
|
449
|
+
### Authorization
|
450
|
+
|
451
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
452
|
+
|
453
|
+
### HTTP request headers
|
454
|
+
|
455
|
+
- **Content-Type**: Not defined
|
456
|
+
- **Accept**: application/json
|
457
|
+
|
458
|
+
|
459
|
+
## get_portfolio_metrics_x_days
|
460
|
+
|
461
|
+
> Array<PortfolioMetrics> get_portfolio_metrics_x_days(days)
|
462
|
+
|
463
|
+
Returns X days of historical metrics for the entire portfolio
|
464
|
+
|
465
|
+
### Example
|
466
|
+
|
467
|
+
```ruby
|
468
|
+
# load the gem
|
469
|
+
require 'dependency-tracker-client'
|
470
|
+
# setup authorization
|
471
|
+
DependencyTracker.configure do |config|
|
472
|
+
# Configure API key authorization: X-Api-Key
|
473
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
474
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
475
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
476
|
+
end
|
477
|
+
|
478
|
+
api_instance = DependencyTracker::MetricsApi.new
|
479
|
+
days = 56 # Integer | The number of days back to retrieve metrics for
|
480
|
+
|
481
|
+
begin
|
482
|
+
#Returns X days of historical metrics for the entire portfolio
|
483
|
+
result = api_instance.get_portfolio_metrics_x_days(days)
|
484
|
+
p result
|
485
|
+
rescue DependencyTracker::ApiError => e
|
486
|
+
puts "Exception when calling MetricsApi->get_portfolio_metrics_x_days: #{e}"
|
487
|
+
end
|
488
|
+
```
|
489
|
+
|
490
|
+
### Parameters
|
491
|
+
|
492
|
+
|
493
|
+
Name | Type | Description | Notes
|
494
|
+
------------- | ------------- | ------------- | -------------
|
495
|
+
**days** | **Integer**| The number of days back to retrieve metrics for |
|
496
|
+
|
497
|
+
### Return type
|
498
|
+
|
499
|
+
[**Array<PortfolioMetrics>**](PortfolioMetrics.md)
|
500
|
+
|
501
|
+
### Authorization
|
502
|
+
|
503
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
504
|
+
|
505
|
+
### HTTP request headers
|
506
|
+
|
507
|
+
- **Content-Type**: Not defined
|
508
|
+
- **Accept**: application/json
|
509
|
+
|
510
|
+
|
511
|
+
## get_project_current_metrics
|
512
|
+
|
513
|
+
> ProjectMetrics get_project_current_metrics(uuid)
|
514
|
+
|
515
|
+
Returns current metrics for a specific project
|
516
|
+
|
517
|
+
### Example
|
518
|
+
|
519
|
+
```ruby
|
520
|
+
# load the gem
|
521
|
+
require 'dependency-tracker-client'
|
522
|
+
# setup authorization
|
523
|
+
DependencyTracker.configure do |config|
|
524
|
+
# Configure API key authorization: X-Api-Key
|
525
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
526
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
527
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
528
|
+
end
|
529
|
+
|
530
|
+
api_instance = DependencyTracker::MetricsApi.new
|
531
|
+
uuid = 'uuid_example' # String | The UUID of the project to retrieve metrics for
|
532
|
+
|
533
|
+
begin
|
534
|
+
#Returns current metrics for a specific project
|
535
|
+
result = api_instance.get_project_current_metrics(uuid)
|
536
|
+
p result
|
537
|
+
rescue DependencyTracker::ApiError => e
|
538
|
+
puts "Exception when calling MetricsApi->get_project_current_metrics: #{e}"
|
539
|
+
end
|
540
|
+
```
|
541
|
+
|
542
|
+
### Parameters
|
543
|
+
|
544
|
+
|
545
|
+
Name | Type | Description | Notes
|
546
|
+
------------- | ------------- | ------------- | -------------
|
547
|
+
**uuid** | **String**| The UUID of the project to retrieve metrics for |
|
548
|
+
|
549
|
+
### Return type
|
550
|
+
|
551
|
+
[**ProjectMetrics**](ProjectMetrics.md)
|
552
|
+
|
553
|
+
### Authorization
|
554
|
+
|
555
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
556
|
+
|
557
|
+
### HTTP request headers
|
558
|
+
|
559
|
+
- **Content-Type**: Not defined
|
560
|
+
- **Accept**: application/json
|
561
|
+
|
562
|
+
|
563
|
+
## get_project_metrics_since
|
564
|
+
|
565
|
+
> Array<ProjectMetrics> get_project_metrics_since(uuid, date)
|
566
|
+
|
567
|
+
Returns historical metrics for a specific project from a specific date
|
568
|
+
|
569
|
+
Date format must be YYYYMMDD
|
570
|
+
|
571
|
+
### Example
|
572
|
+
|
573
|
+
```ruby
|
574
|
+
# load the gem
|
575
|
+
require 'dependency-tracker-client'
|
576
|
+
# setup authorization
|
577
|
+
DependencyTracker.configure do |config|
|
578
|
+
# Configure API key authorization: X-Api-Key
|
579
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
580
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
581
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
582
|
+
end
|
583
|
+
|
584
|
+
api_instance = DependencyTracker::MetricsApi.new
|
585
|
+
uuid = 'uuid_example' # String | The UUID of the project to retrieve metrics for
|
586
|
+
date = 'date_example' # String | The start date to retrieve metrics for
|
587
|
+
|
588
|
+
begin
|
589
|
+
#Returns historical metrics for a specific project from a specific date
|
590
|
+
result = api_instance.get_project_metrics_since(uuid, date)
|
591
|
+
p result
|
592
|
+
rescue DependencyTracker::ApiError => e
|
593
|
+
puts "Exception when calling MetricsApi->get_project_metrics_since: #{e}"
|
594
|
+
end
|
595
|
+
```
|
596
|
+
|
597
|
+
### Parameters
|
598
|
+
|
599
|
+
|
600
|
+
Name | Type | Description | Notes
|
601
|
+
------------- | ------------- | ------------- | -------------
|
602
|
+
**uuid** | **String**| The UUID of the project to retrieve metrics for |
|
603
|
+
**date** | **String**| The start date to retrieve metrics for |
|
604
|
+
|
605
|
+
### Return type
|
606
|
+
|
607
|
+
[**Array<ProjectMetrics>**](ProjectMetrics.md)
|
608
|
+
|
609
|
+
### Authorization
|
610
|
+
|
611
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
612
|
+
|
613
|
+
### HTTP request headers
|
614
|
+
|
615
|
+
- **Content-Type**: Not defined
|
616
|
+
- **Accept**: application/json
|
617
|
+
|
618
|
+
|
619
|
+
## get_project_metrics_x_days
|
620
|
+
|
621
|
+
> Array<ProjectMetrics> get_project_metrics_x_days(uuid, days)
|
622
|
+
|
623
|
+
Returns X days of historical metrics for a specific project
|
624
|
+
|
625
|
+
### Example
|
626
|
+
|
627
|
+
```ruby
|
628
|
+
# load the gem
|
629
|
+
require 'dependency-tracker-client'
|
630
|
+
# setup authorization
|
631
|
+
DependencyTracker.configure do |config|
|
632
|
+
# Configure API key authorization: X-Api-Key
|
633
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
634
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
635
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
636
|
+
end
|
637
|
+
|
638
|
+
api_instance = DependencyTracker::MetricsApi.new
|
639
|
+
uuid = 'uuid_example' # String | The UUID of the project to retrieve metrics for
|
640
|
+
days = 56 # Integer | The number of days back to retrieve metrics for
|
641
|
+
|
642
|
+
begin
|
643
|
+
#Returns X days of historical metrics for a specific project
|
644
|
+
result = api_instance.get_project_metrics_x_days(uuid, days)
|
645
|
+
p result
|
646
|
+
rescue DependencyTracker::ApiError => e
|
647
|
+
puts "Exception when calling MetricsApi->get_project_metrics_x_days: #{e}"
|
648
|
+
end
|
649
|
+
```
|
650
|
+
|
651
|
+
### Parameters
|
652
|
+
|
653
|
+
|
654
|
+
Name | Type | Description | Notes
|
655
|
+
------------- | ------------- | ------------- | -------------
|
656
|
+
**uuid** | **String**| The UUID of the project to retrieve metrics for |
|
657
|
+
**days** | **Integer**| The number of days back to retrieve metrics for |
|
658
|
+
|
659
|
+
### Return type
|
660
|
+
|
661
|
+
[**Array<ProjectMetrics>**](ProjectMetrics.md)
|
662
|
+
|
663
|
+
### Authorization
|
664
|
+
|
665
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
666
|
+
|
667
|
+
### HTTP request headers
|
668
|
+
|
669
|
+
- **Content-Type**: Not defined
|
670
|
+
- **Accept**: application/json
|
671
|
+
|
672
|
+
|
673
|
+
## get_vulnerability_metrics
|
674
|
+
|
675
|
+
> Array<VulnerabilityMetrics> get_vulnerability_metrics
|
676
|
+
|
677
|
+
Returns the sum of all vulnerabilities in the database by year and month
|
678
|
+
|
679
|
+
### Example
|
680
|
+
|
681
|
+
```ruby
|
682
|
+
# load the gem
|
683
|
+
require 'dependency-tracker-client'
|
684
|
+
# setup authorization
|
685
|
+
DependencyTracker.configure do |config|
|
686
|
+
# Configure API key authorization: X-Api-Key
|
687
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
688
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
689
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
690
|
+
end
|
691
|
+
|
692
|
+
api_instance = DependencyTracker::MetricsApi.new
|
693
|
+
|
694
|
+
begin
|
695
|
+
#Returns the sum of all vulnerabilities in the database by year and month
|
696
|
+
result = api_instance.get_vulnerability_metrics
|
697
|
+
p result
|
698
|
+
rescue DependencyTracker::ApiError => e
|
699
|
+
puts "Exception when calling MetricsApi->get_vulnerability_metrics: #{e}"
|
700
|
+
end
|
701
|
+
```
|
702
|
+
|
703
|
+
### Parameters
|
704
|
+
|
705
|
+
This endpoint does not need any parameter.
|
706
|
+
|
707
|
+
### Return type
|
708
|
+
|
709
|
+
[**Array<VulnerabilityMetrics>**](VulnerabilityMetrics.md)
|
710
|
+
|
711
|
+
### Authorization
|
712
|
+
|
713
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
714
|
+
|
715
|
+
### HTTP request headers
|
716
|
+
|
717
|
+
- **Content-Type**: Not defined
|
718
|
+
- **Accept**: application/json
|
719
|
+
|
720
|
+
|
721
|
+
## refresh_component_metrics
|
722
|
+
|
723
|
+
> refresh_component_metrics(uuid)
|
724
|
+
|
725
|
+
Requests a refresh of a specific components metrics
|
726
|
+
|
727
|
+
### Example
|
728
|
+
|
729
|
+
```ruby
|
730
|
+
# load the gem
|
731
|
+
require 'dependency-tracker-client'
|
732
|
+
# setup authorization
|
733
|
+
DependencyTracker.configure do |config|
|
734
|
+
# Configure API key authorization: X-Api-Key
|
735
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
736
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
737
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
738
|
+
end
|
739
|
+
|
740
|
+
api_instance = DependencyTracker::MetricsApi.new
|
741
|
+
uuid = 'uuid_example' # String | The UUID of the component to refresh metrics on
|
742
|
+
|
743
|
+
begin
|
744
|
+
#Requests a refresh of a specific components metrics
|
745
|
+
api_instance.refresh_component_metrics(uuid)
|
746
|
+
rescue DependencyTracker::ApiError => e
|
747
|
+
puts "Exception when calling MetricsApi->refresh_component_metrics: #{e}"
|
748
|
+
end
|
749
|
+
```
|
750
|
+
|
751
|
+
### Parameters
|
752
|
+
|
753
|
+
|
754
|
+
Name | Type | Description | Notes
|
755
|
+
------------- | ------------- | ------------- | -------------
|
756
|
+
**uuid** | **String**| The UUID of the component to refresh metrics on |
|
757
|
+
|
758
|
+
### Return type
|
759
|
+
|
760
|
+
nil (empty response body)
|
761
|
+
|
762
|
+
### Authorization
|
763
|
+
|
764
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
765
|
+
|
766
|
+
### HTTP request headers
|
767
|
+
|
768
|
+
- **Content-Type**: Not defined
|
769
|
+
- **Accept**: Not defined
|
770
|
+
|
771
|
+
|
772
|
+
## refresh_dependency_metrics
|
773
|
+
|
774
|
+
> refresh_dependency_metrics(project_uuid, component_uuid)
|
775
|
+
|
776
|
+
Requests a refresh of a specific dependency metrics
|
777
|
+
|
778
|
+
### Example
|
779
|
+
|
780
|
+
```ruby
|
781
|
+
# load the gem
|
782
|
+
require 'dependency-tracker-client'
|
783
|
+
# setup authorization
|
784
|
+
DependencyTracker.configure do |config|
|
785
|
+
# Configure API key authorization: X-Api-Key
|
786
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
787
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
788
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
789
|
+
end
|
790
|
+
|
791
|
+
api_instance = DependencyTracker::MetricsApi.new
|
792
|
+
project_uuid = 'project_uuid_example' # String | The UUID of the project to retrieve metrics for
|
793
|
+
component_uuid = 'component_uuid_example' # String | The UUID of the component to retrieve metrics for
|
794
|
+
|
795
|
+
begin
|
796
|
+
#Requests a refresh of a specific dependency metrics
|
797
|
+
api_instance.refresh_dependency_metrics(project_uuid, component_uuid)
|
798
|
+
rescue DependencyTracker::ApiError => e
|
799
|
+
puts "Exception when calling MetricsApi->refresh_dependency_metrics: #{e}"
|
800
|
+
end
|
801
|
+
```
|
802
|
+
|
803
|
+
### Parameters
|
804
|
+
|
805
|
+
|
806
|
+
Name | Type | Description | Notes
|
807
|
+
------------- | ------------- | ------------- | -------------
|
808
|
+
**project_uuid** | **String**| The UUID of the project to retrieve metrics for |
|
809
|
+
**component_uuid** | **String**| The UUID of the component to retrieve metrics for |
|
810
|
+
|
811
|
+
### Return type
|
812
|
+
|
813
|
+
nil (empty response body)
|
814
|
+
|
815
|
+
### Authorization
|
816
|
+
|
817
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
818
|
+
|
819
|
+
### HTTP request headers
|
820
|
+
|
821
|
+
- **Content-Type**: Not defined
|
822
|
+
- **Accept**: Not defined
|
823
|
+
|
824
|
+
|
825
|
+
## refresh_portfolio_metrics
|
826
|
+
|
827
|
+
> PortfolioMetrics refresh_portfolio_metrics
|
828
|
+
|
829
|
+
Requests a refresh of the portfolio metrics
|
830
|
+
|
831
|
+
### Example
|
832
|
+
|
833
|
+
```ruby
|
834
|
+
# load the gem
|
835
|
+
require 'dependency-tracker-client'
|
836
|
+
# setup authorization
|
837
|
+
DependencyTracker.configure do |config|
|
838
|
+
# Configure API key authorization: X-Api-Key
|
839
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
840
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
841
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
842
|
+
end
|
843
|
+
|
844
|
+
api_instance = DependencyTracker::MetricsApi.new
|
845
|
+
|
846
|
+
begin
|
847
|
+
#Requests a refresh of the portfolio metrics
|
848
|
+
result = api_instance.refresh_portfolio_metrics
|
849
|
+
p result
|
850
|
+
rescue DependencyTracker::ApiError => e
|
851
|
+
puts "Exception when calling MetricsApi->refresh_portfolio_metrics: #{e}"
|
852
|
+
end
|
853
|
+
```
|
854
|
+
|
855
|
+
### Parameters
|
856
|
+
|
857
|
+
This endpoint does not need any parameter.
|
858
|
+
|
859
|
+
### Return type
|
860
|
+
|
861
|
+
[**PortfolioMetrics**](PortfolioMetrics.md)
|
862
|
+
|
863
|
+
### Authorization
|
864
|
+
|
865
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
866
|
+
|
867
|
+
### HTTP request headers
|
868
|
+
|
869
|
+
- **Content-Type**: Not defined
|
870
|
+
- **Accept**: application/json
|
871
|
+
|
872
|
+
|
873
|
+
## refresh_project_metrics
|
874
|
+
|
875
|
+
> refresh_project_metrics(uuid)
|
876
|
+
|
877
|
+
Requests a refresh of a specific projects metrics
|
878
|
+
|
879
|
+
### Example
|
880
|
+
|
881
|
+
```ruby
|
882
|
+
# load the gem
|
883
|
+
require 'dependency-tracker-client'
|
884
|
+
# setup authorization
|
885
|
+
DependencyTracker.configure do |config|
|
886
|
+
# Configure API key authorization: X-Api-Key
|
887
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
888
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
889
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
890
|
+
end
|
891
|
+
|
892
|
+
api_instance = DependencyTracker::MetricsApi.new
|
893
|
+
uuid = 'uuid_example' # String | The UUID of the project to refresh metrics on
|
894
|
+
|
895
|
+
begin
|
896
|
+
#Requests a refresh of a specific projects metrics
|
897
|
+
api_instance.refresh_project_metrics(uuid)
|
898
|
+
rescue DependencyTracker::ApiError => e
|
899
|
+
puts "Exception when calling MetricsApi->refresh_project_metrics: #{e}"
|
900
|
+
end
|
901
|
+
```
|
902
|
+
|
903
|
+
### Parameters
|
904
|
+
|
905
|
+
|
906
|
+
Name | Type | Description | Notes
|
907
|
+
------------- | ------------- | ------------- | -------------
|
908
|
+
**uuid** | **String**| The UUID of the project to refresh metrics on |
|
909
|
+
|
910
|
+
### Return type
|
911
|
+
|
912
|
+
nil (empty response body)
|
913
|
+
|
914
|
+
### Authorization
|
915
|
+
|
916
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
917
|
+
|
918
|
+
### HTTP request headers
|
919
|
+
|
920
|
+
- **Content-Type**: Not defined
|
921
|
+
- **Accept**: Not defined
|
922
|
+
|