Skip to content

Commit a42565e

Browse files
feat(api): api update
1 parent df70a48 commit a42565e

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 139
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb/orb-8b0ad117378120e92c83db4289345b202e96ee8cdd187e25eadd49f8220fd2c2.yml
3-
openapi_spec_hash: c54dfea4283acbda4f01e8da6ac0e651
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb/orb-2d39efd20f8184172496270fb54e1c8ef0ef01a9e3fc88ac971dc6470c8f2db7.yml
3+
openapi_spec_hash: 812c2e5e36b9c992e3e2d986a8b31b0f
44
config_hash: c01c1191b1cd696c7ca855ff6d28a8df

orb-java-core/src/main/kotlin/com/withorb/api/models/MetricFetchParams.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import java.util.Optional
1010
import kotlin.jvm.optionals.getOrNull
1111

1212
/**
13-
* This endpoint is used to list [metrics](/core-concepts#metric). It returns information about the
14-
* metrics including its name, description, and item.
13+
* This endpoint is used to fetch [metric](/core-concepts#metric) details given a metric identifier.
14+
* It returns information about the metrics including its name, description, and item.
1515
*/
1616
class MetricFetchParams
1717
private constructor(

orb-java-core/src/main/kotlin/com/withorb/api/models/MetricListParams.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import java.util.Optional
1212
import kotlin.jvm.optionals.getOrNull
1313

1414
/**
15-
* This endpoint is used to fetch [metric](/core-concepts##metric) details given a metric
16-
* identifier. It returns information about the metrics including its name, description, and item.
15+
* This endpoint is used to list [metrics](/core-concepts#metric). It returns information about the
16+
* metrics including its name, description, and item.
1717
*/
1818
class MetricListParams
1919
private constructor(

orb-java-core/src/main/kotlin/com/withorb/api/services/async/MetricServiceAsync.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ interface MetricServiceAsync {
8585
update(metricId, MetricUpdateParams.none(), requestOptions)
8686

8787
/**
88-
* This endpoint is used to fetch [metric](/core-concepts##metric) details given a metric
89-
* identifier. It returns information about the metrics including its name, description, and
90-
* item.
88+
* This endpoint is used to list [metrics](/core-concepts#metric). It returns information about
89+
* the metrics including its name, description, and item.
9190
*/
9291
fun list(): CompletableFuture<MetricListPageAsync> = list(MetricListParams.none())
9392

@@ -107,8 +106,9 @@ interface MetricServiceAsync {
107106
list(MetricListParams.none(), requestOptions)
108107

109108
/**
110-
* This endpoint is used to list [metrics](/core-concepts#metric). It returns information about
111-
* the metrics including its name, description, and item.
109+
* This endpoint is used to fetch [metric](/core-concepts#metric) details given a metric
110+
* identifier. It returns information about the metrics including its name, description, and
111+
* item.
112112
*/
113113
fun fetch(metricId: String): CompletableFuture<BillableMetric> =
114114
fetch(metricId, MetricFetchParams.none())

orb-java-core/src/main/kotlin/com/withorb/api/services/blocking/MetricService.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ interface MetricService {
7878
update(metricId, MetricUpdateParams.none(), requestOptions)
7979

8080
/**
81-
* This endpoint is used to fetch [metric](/core-concepts##metric) details given a metric
82-
* identifier. It returns information about the metrics including its name, description, and
83-
* item.
81+
* This endpoint is used to list [metrics](/core-concepts#metric). It returns information about
82+
* the metrics including its name, description, and item.
8483
*/
8584
fun list(): MetricListPage = list(MetricListParams.none())
8685

@@ -99,8 +98,9 @@ interface MetricService {
9998
list(MetricListParams.none(), requestOptions)
10099

101100
/**
102-
* This endpoint is used to list [metrics](/core-concepts#metric). It returns information about
103-
* the metrics including its name, description, and item.
101+
* This endpoint is used to fetch [metric](/core-concepts#metric) details given a metric
102+
* identifier. It returns information about the metrics including its name, description, and
103+
* item.
104104
*/
105105
fun fetch(metricId: String): BillableMetric = fetch(metricId, MetricFetchParams.none())
106106

0 commit comments

Comments
 (0)