|
591 | 591 | },
|
592 | 592 | "type": "object"
|
593 | 593 | },
|
| 594 | + "Shape": { |
| 595 | + "properties": { |
| 596 | + "avgMs": { |
| 597 | + "description": "Average duration in milliseconds for the queries examined that match this shape.", |
| 598 | + "type": "number" |
| 599 | + }, |
| 600 | + "count": { |
| 601 | + "description": "Number of queries examined that match this shape.", |
| 602 | + "type": "integer" |
| 603 | + }, |
| 604 | + "id": { |
| 605 | + "description": "Unique id for this shape. Exists only for the duration of the API request.", |
| 606 | + "type": "string" |
| 607 | + }, |
| 608 | + "inefficiencyScore": { |
| 609 | + "description": "Average number of documents read for every document returned by the query.", |
| 610 | + "type": "integer" |
| 611 | + }, |
| 612 | + "namespace": { |
| 613 | + "description": "The namespace in which the slow query ran.", |
| 614 | + "type": "string" |
| 615 | + }, |
| 616 | + "operations": { |
| 617 | + "description": "It represents documents with specific information and log lines for individual queries.", |
| 618 | + "items": { |
| 619 | + "$ref": "#/components/schemas/mongodbatlas.Operation" |
| 620 | + }, |
| 621 | + "type": "array" |
| 622 | + } |
| 623 | + }, |
| 624 | + "type": "object" |
| 625 | + }, |
| 626 | + "SlowQuery": { |
| 627 | + "properties": { |
| 628 | + "line": { |
| 629 | + "description": "The raw log line pertaining to the slow query.", |
| 630 | + "type": "string" |
| 631 | + }, |
| 632 | + "namespace": { |
| 633 | + "description": "The namespace in which the slow query ran.", |
| 634 | + "type": "string" |
| 635 | + } |
| 636 | + }, |
| 637 | + "type": "object" |
| 638 | + }, |
594 | 639 | "Storage": {
|
595 | 640 | "properties": {
|
596 | 641 | "class": {
|
|
616 | 661 | },
|
617 | 662 | "type": "object"
|
618 | 663 | },
|
| 664 | + "SuggestedIndex": { |
| 665 | + "properties": { |
| 666 | + "id": { |
| 667 | + "description": "Unique id for this suggested index.", |
| 668 | + "type": "string" |
| 669 | + }, |
| 670 | + "impact": { |
| 671 | + "description": "List of unique identifiers which correspond the query shapes in this response which pertain to this suggested index.", |
| 672 | + "items": { |
| 673 | + "type": "string" |
| 674 | + }, |
| 675 | + "type": "array" |
| 676 | + }, |
| 677 | + "index": { |
| 678 | + "description": "Array of documents that specifies a key in the index and its sort order, ascending or descending.", |
| 679 | + "items": { |
| 680 | + "additionalProperties": { |
| 681 | + "type": "integer" |
| 682 | + }, |
| 683 | + "type": "object" |
| 684 | + }, |
| 685 | + "type": "array" |
| 686 | + }, |
| 687 | + "namespace": { |
| 688 | + "description": "Namespace of the suggested index.", |
| 689 | + "type": "string" |
| 690 | + }, |
| 691 | + "weight": { |
| 692 | + "description": "Estimated percentage performance improvement that the suggested index would provide.", |
| 693 | + "type": "number" |
| 694 | + } |
| 695 | + }, |
| 696 | + "type": "object" |
| 697 | + }, |
619 | 698 | "UpdateBackupSchedulePayload": {
|
620 | 699 | "properties": {
|
621 | 700 | "backupSchedule": {
|
|
804 | 883 | "slowQueries": {
|
805 | 884 | "description": "A list of documents with information about slow queries as detected by the Performance Advisor.",
|
806 | 885 | "items": {
|
807 |
| - "$ref": "#/components/schemas/mongodbatlas.SlowQuery" |
| 886 | + "$ref": "#/components/schemas/SlowQuery" |
808 | 887 | },
|
809 | 888 | "type": "array"
|
810 | 889 | }
|
|
816 | 895 | "shapes": {
|
817 | 896 | "description": "Documents with information about the query shapes that are served by the suggested indexes.",
|
818 | 897 | "items": {
|
819 |
| - "$ref": "#/components/schemas/mongodbatlas.Shape" |
| 898 | + "$ref": "#/components/schemas/Shape" |
820 | 899 | },
|
821 | 900 | "type": "array"
|
822 | 901 | },
|
823 | 902 | "suggestedIndexes": {
|
824 | 903 | "description": "Documents with information about the indexes suggested by the Performance Advisor.",
|
825 | 904 | "items": {
|
826 |
| - "$ref": "#/components/schemas/mongodbatlas.SuggestedIndex" |
| 905 | + "$ref": "#/components/schemas/SuggestedIndex" |
827 | 906 | },
|
828 | 907 | "type": "array"
|
829 | 908 | }
|
|
897 | 976 | },
|
898 | 977 | "type": "object"
|
899 | 978 | },
|
900 |
| - "mongodbatlas.Shape": { |
901 |
| - "properties": { |
902 |
| - "avgMs": { |
903 |
| - "description": "Average duration in milliseconds for the queries examined that match this shape.", |
904 |
| - "type": "number" |
905 |
| - }, |
906 |
| - "count": { |
907 |
| - "description": "Number of queries examined that match this shape.", |
908 |
| - "type": "integer" |
909 |
| - }, |
910 |
| - "id": { |
911 |
| - "description": "Unique id for this shape. Exists only for the duration of the API request.", |
912 |
| - "type": "string" |
913 |
| - }, |
914 |
| - "inefficiencyScore": { |
915 |
| - "description": "Average number of documents read for every document returned by the query.", |
916 |
| - "type": "integer" |
917 |
| - }, |
918 |
| - "namespace": { |
919 |
| - "description": "The namespace in which the slow query ran.", |
920 |
| - "type": "string" |
921 |
| - }, |
922 |
| - "operations": { |
923 |
| - "description": "It represents documents with specific information and log lines for individual queries.", |
924 |
| - "items": { |
925 |
| - "$ref": "#/components/schemas/mongodbatlas.Operation" |
926 |
| - }, |
927 |
| - "type": "array" |
928 |
| - } |
929 |
| - }, |
930 |
| - "type": "object" |
931 |
| - }, |
932 |
| - "mongodbatlas.SlowQuery": { |
933 |
| - "properties": { |
934 |
| - "line": { |
935 |
| - "description": "The raw log line pertaining to the slow query.", |
936 |
| - "type": "string" |
937 |
| - }, |
938 |
| - "namespace": { |
939 |
| - "description": "The namespace in which the slow query ran.", |
940 |
| - "type": "string" |
941 |
| - } |
942 |
| - }, |
943 |
| - "type": "object" |
944 |
| - }, |
945 | 979 | "mongodbatlas.Stats": {
|
946 | 980 | "properties": {
|
947 | 981 | "ms": {
|
|
962 | 996 | }
|
963 | 997 | },
|
964 | 998 | "type": "object"
|
965 |
| - }, |
966 |
| - "mongodbatlas.SuggestedIndex": { |
967 |
| - "properties": { |
968 |
| - "id": { |
969 |
| - "description": "Unique id for this suggested index.", |
970 |
| - "type": "string" |
971 |
| - }, |
972 |
| - "impact": { |
973 |
| - "description": "List of unique identifiers which correspond the query shapes in this response which pertain to this suggested index.", |
974 |
| - "items": { |
975 |
| - "type": "string" |
976 |
| - }, |
977 |
| - "type": "array" |
978 |
| - }, |
979 |
| - "index": { |
980 |
| - "description": "Array of documents that specifies a key in the index and its sort order, ascending or descending.", |
981 |
| - "items": { |
982 |
| - "additionalProperties": { |
983 |
| - "type": "integer" |
984 |
| - }, |
985 |
| - "type": "object" |
986 |
| - }, |
987 |
| - "type": "array" |
988 |
| - }, |
989 |
| - "namespace": { |
990 |
| - "description": "Namespace of the suggested index.", |
991 |
| - "type": "string" |
992 |
| - }, |
993 |
| - "weight": { |
994 |
| - "description": "Estimated percentage performance improvement that the suggested index would provide.", |
995 |
| - "type": "number" |
996 |
| - } |
997 |
| - }, |
998 |
| - "type": "object" |
999 | 999 | }
|
1000 | 1000 | }
|
1001 | 1001 | },
|
|
1620 | 1620 | "/v1/projects/{projectId}/instances/{instanceId}/advisor/slow-queries": {
|
1621 | 1621 | "get": {
|
1622 | 1622 | "description": "gets slow queries from the Opsmanager performance advisor",
|
| 1623 | + "operationId": "ListAdvisorSlowQueries", |
1623 | 1624 | "parameters": [
|
1624 | 1625 | {
|
1625 | 1626 | "description": "project id",
|
|
1697 | 1698 | "/v1/projects/{projectId}/instances/{instanceId}/advisor/suggested-indexes": {
|
1698 | 1699 | "get": {
|
1699 | 1700 | "description": "gets suggested indexes from the Opsmanager performance advisor",
|
| 1701 | + "operationId": "ListSuggestedIndexes", |
1700 | 1702 | "parameters": [
|
1701 | 1703 | {
|
1702 | 1704 | "description": "project id",
|
|
0 commit comments