|
223 | 223 | "key": { |
224 | 224 | "maxLength": 1024, |
225 | 225 | "minLength": 1, |
| 226 | + "pattern": "^[^\u0000-\u001f-]+$", |
226 | 227 | "type": "string" |
227 | 228 | }, |
228 | 229 | "level": { |
|
235 | 236 | "items": { |
236 | 237 | "maxLength": 1024, |
237 | 238 | "minLength": 1, |
| 239 | + "pattern": "^[^\u0000-\u001f-]+$", |
238 | 240 | "type": "string" |
239 | 241 | }, |
240 | 242 | "maxItems": 100, |
|
314 | 316 | }, |
315 | 317 | "filter": { |
316 | 318 | "$ref": "#/components/schemas/configFilter" |
| 319 | + }, |
| 320 | + "resourceLabels": { |
| 321 | + "$ref": "#/components/schemas/resourceLabels" |
317 | 322 | } |
318 | 323 | }, |
319 | 324 | "required": [ |
|
369 | 374 | "description": "A bearer token to authenticate at the OpenTelemetry URI.", |
370 | 375 | "maxLength": 2048, |
371 | 376 | "minLength": 1, |
| 377 | + "pattern": "^[^\u0000-\u001f-]+$", |
372 | 378 | "type": "string" |
373 | 379 | }, |
374 | 380 | "uri": { |
375 | 381 | "description": "The URI for reaching the resource.", |
376 | 382 | "maxLength": 1024, |
| 383 | + "pattern": "^[^\u0000-\u001f-]+$", |
377 | 384 | "type": "string" |
378 | 385 | } |
379 | 386 | }, |
|
388 | 395 | "password": { |
389 | 396 | "maxLength": 1024, |
390 | 397 | "minLength": 1, |
| 398 | + "pattern": "^[^\u0000-\u001f-]+$", |
391 | 399 | "type": "string" |
392 | 400 | }, |
393 | 401 | "username": { |
394 | 402 | "maxLength": 1024, |
395 | 403 | "minLength": 1, |
| 404 | + "pattern": "^[^\u0000-\u001f-]+$", |
396 | 405 | "type": "string" |
397 | 406 | } |
398 | 407 | }, |
|
410 | 419 | "bucket": { |
411 | 420 | "maxLength": 63, |
412 | 421 | "minLength": 3, |
| 422 | + "pattern": "^[a-z0-9\\-]+$", |
413 | 423 | "type": "string" |
414 | 424 | }, |
415 | 425 | "endpoint": { |
416 | 426 | "description": "The URI for reaching the resource.", |
417 | 427 | "maxLength": 1024, |
| 428 | + "pattern": "^[^\u0000-\u001f-]+$", |
418 | 429 | "type": "string" |
419 | 430 | } |
420 | 431 | }, |
|
430 | 441 | "id": { |
431 | 442 | "maxLength": 1024, |
432 | 443 | "minLength": 1, |
| 444 | + "pattern": "^[^\u0000-\u001f-]+$", |
433 | 445 | "type": "string" |
434 | 446 | }, |
435 | 447 | "secret": { |
436 | 448 | "maxLength": 1024, |
437 | 449 | "minLength": 1, |
| 450 | + "pattern": "^[^\u0000-\u001f-]+$", |
438 | 451 | "type": "string" |
439 | 452 | } |
440 | 453 | }, |
|
570 | 583 | ], |
571 | 584 | "type": "object" |
572 | 585 | }, |
| 586 | + "resourceLabels": { |
| 587 | + "additionalProperties": { |
| 588 | + "type": "string" |
| 589 | + }, |
| 590 | + "type": "object" |
| 591 | + }, |
573 | 592 | "response4xx": { |
574 | 593 | "properties": { |
575 | 594 | "message": { |
|
595 | 614 | "pattern": "^([a-zA-Z0-9][a-zA-Z0-9 \\-]*)?$", |
596 | 615 | "type": "string" |
597 | 616 | }, |
| 617 | + "destinationCount": { |
| 618 | + "description": "The number of destinations configured for the telemetry router.", |
| 619 | + "format": "int32", |
| 620 | + "minimum": 0, |
| 621 | + "type": "integer" |
| 622 | + }, |
598 | 623 | "displayName": { |
599 | 624 | "description": "The display name is a short name chosen by the user to identify the resource.", |
600 | 625 | "maxLength": 32, |
|
610 | 635 | "format": "uuid", |
611 | 636 | "type": "string" |
612 | 637 | }, |
| 638 | + "resourceLabels": { |
| 639 | + "$ref": "#/components/schemas/resourceLabels" |
| 640 | + }, |
613 | 641 | "status": { |
614 | 642 | "description": "The current status of the resource.", |
615 | 643 | "enum": [ |
|
690 | 718 | }, |
691 | 719 | "filter": { |
692 | 720 | "$ref": "#/components/schemas/configFilter" |
| 721 | + }, |
| 722 | + "resourceLabels": { |
| 723 | + "$ref": "#/components/schemas/resourceLabels" |
693 | 724 | } |
694 | 725 | }, |
695 | 726 | "type": "object" |
|
0 commit comments