Skip to content

Commit a06e33e

Browse files
changing duration type to ms, s, m (#62265)
1 parent f747057 commit a06e33e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

x-pack/plugins/apm/common/agent_configuration/runtime_types/duration_rt.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('durationRt', () => {
2525
});
2626

2727
describe('It should accept', () => {
28-
['1s', '2m', '3h'].map(input => {
28+
['1000ms', '2s', '3m'].map(input => {
2929
it(`${JSON.stringify(input)}`, () => {
3030
expect(isRight(durationRt.decode(input))).toBe(true);
3131
});

x-pack/plugins/apm/common/agent_configuration/runtime_types/duration_rt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as t from 'io-ts';
88
import { either } from 'fp-ts/lib/Either';
99
import { amountAndUnitToObject } from '../amount_and_unit';
1010

11-
export const DURATION_UNITS = ['s', 'm', 'h'];
11+
export const DURATION_UNITS = ['ms', 's', 'm'];
1212

1313
export const durationRt = new t.Type<string, string, unknown>(
1414
'durationRt',

x-pack/plugins/apm/common/agent_configuration/setting_definitions/__snapshots__/index.test.ts.snap

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)