diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 99016c6b17..84d82065ad 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -49556,6 +49556,9 @@ ] }, "_types.Duration": { + "externalDocs": { + "url": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/api-conventions#time-units" + }, "description": "A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and\n`d` (days). Also accepts \"0\" without a unit and \"-1\" to indicate an unspecified value.", "oneOf": [ { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 9294acae96..844961ab3f 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -26419,6 +26419,9 @@ ] }, "_types.Duration": { + "externalDocs": { + "url": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/api-conventions#time-units" + }, "description": "A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and\n`d` (days). Also accepts \"0\" without a unit and \"-1\" to indicate an unspecified value.", "oneOf": [ { diff --git a/output/schema/schema.json b/output/schema/schema.json index c661f31974..dfdde8388d 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -50511,11 +50511,13 @@ "description": "A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and\n`d` (days). Also accepts \"0\" without a unit and \"-1\" to indicate an unspecified value.", "docId": "time-value", "docUrl": "https://github.com/elastic/elasticsearch/blob/current/libs/core/src/main/java/org/elasticsearch/core/TimeValue.java", + "extDocId": "time-units", + "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/api-conventions#time-units", "name": { "name": "Duration", "namespace": "_types" }, - "specLocation": "_types/Time.ts#L52-L58", + "specLocation": "_types/Time.ts#L52-L59", "type": { "kind": "union_of", "items": [ @@ -50544,7 +50546,7 @@ "name": "DurationLarge", "namespace": "_types" }, - "specLocation": "_types/Time.ts#L60-L65", + "specLocation": "_types/Time.ts#L61-L66", "type": { "kind": "instance_of", "type": { @@ -50565,7 +50567,7 @@ "name": "DurationValue", "namespace": "_types" }, - "specLocation": "_types/Time.ts#L67-L67", + "specLocation": "_types/Time.ts#L68-L68", "type": { "kind": "instance_of", "type": { @@ -57668,7 +57670,7 @@ "name": "TimeUnit", "namespace": "_types" }, - "specLocation": "_types/Time.ts#L69-L77" + "specLocation": "_types/Time.ts#L70-L78" }, { "kind": "type_alias", diff --git a/specification/_doc_ids/table.csv b/specification/_doc_ids/table.csv index 8e0e4cdc85..9db5715052 100644 --- a/specification/_doc_ids/table.csv +++ b/specification/_doc_ids/table.csv @@ -889,6 +889,7 @@ templating-role-query,https://www.elastic.co/docs/deploy-manage/users-roles/clus term-vectors-examples,https://www.elastic.co/docs/reference/elasticsearch/rest-apis/term-vectors-examples,, terminate-processor,https://www.elastic.co/docs/reference/enrich-processor/terminate-processor,, test-grok-pattern,https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-text-structure-test-grok-pattern,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/test-grok-pattern.html, +time-units,https://www.elastic.co/docs/reference/elasticsearch/rest-apis/api-conventions#time-units,,Time units time-value,https://github.com/elastic/elasticsearch/blob/current/libs/core/src/main/java/org/elasticsearch/core/TimeValue.java,, time-zone-id,https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html,, transform-set-upgrade-mode,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-set-upgrade-mode,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/transform-set-upgrade-mode.html, diff --git a/specification/_types/Time.ts b/specification/_types/Time.ts index a957c95163..045566eab1 100644 --- a/specification/_types/Time.ts +++ b/specification/_types/Time.ts @@ -53,6 +53,7 @@ export type DateFormat = string * A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and * `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. * @doc_id time-value + * @ext_doc_id time-units */ // Used to be Time, see ES TimeValue export type Duration = string | -1 | 0