Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GSMG] Add new object type #593

Draft
wants to merge 58 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
0370149
Update gsmp-v1.json
mseich Jul 25, 2022
74d0731
Update zif_aff_gsmp_v1.intf.abap
mseich Jul 25, 2022
e9c6fd4
Update gsmp-v1.json
mseich Jul 25, 2022
aa1a675
Update zif_aff_gsmp_v1.intf.abap
mseich Jul 25, 2022
2375a38
Update gsmp-v1.json
mseich Jul 26, 2022
588a57f
Update zif_aff_gsmp_v1.intf.abap
mseich Jul 26, 2022
fe66017
Merge branch 'SAP:main' into main
mseich Aug 12, 2022
3af26d3
Merge branch 'SAP:main' into main
mseich Dec 1, 2022
6a0f91d
Merge branch 'SAP:main' into main
mseich Dec 7, 2022
1dc1a0b
Merge branch 'SAP:main' into main
mseich Mar 15, 2024
370a0e3
Add files for GSMG
mseich Mar 15, 2024
a777188
Update file-formats/gsmg/examples/z_aff_example_gsmg.gsmg.json
mseich Mar 19, 2024
2898e05
Update file-formats/gsmg/type/zif_aff_gsmg_v1.intf.abap
mseich Mar 19, 2024
e0b5e18
Update file-formats/gsmg/type/zif_aff_gsmg_v1.intf.abap
mseich Mar 19, 2024
5bbb486
Update file-formats/gsmg/type/zif_aff_gsmg_v1.intf.abap
mseich Mar 19, 2024
b7a4c18
Update file-formats/gsmg/type/zif_aff_gsmg_v1.intf.abap
mseich Mar 19, 2024
1fe7cad
Update file-formats/gsmg/type/zif_aff_gsmg_v1.intf.abap
mseich Mar 19, 2024
a13a41b
Update file-formats/gsmg/type/zif_aff_gsmg_v1.intf.abap
mseich Mar 19, 2024
13820b5
Update file-formats/gsmg/README.md
mseich Mar 19, 2024
4b2edfa
Update zif_aff_gsmg_v1.intf.abap
mseich Mar 19, 2024
071a0fe
Update zif_aff_gsmg_v1.intf.json
mseich Mar 19, 2024
ca1ca16
Update gsmg-v1.json
mseich Mar 19, 2024
ec6075d
Update z_aff_example_gsmg.gsmg.json
mseich Mar 19, 2024
ce1b698
Update zif_aff_gsmg_v1.intf.abap
mseich Mar 19, 2024
222c9c8
EOL Unix style (LF)
mseich Mar 19, 2024
752ac82
Get rid of enums
mseich Mar 19, 2024
7c34be4
Auto enums
mseich Mar 19, 2024
6975501
fixed enum
mseich Mar 19, 2024
65de592
Update zif_aff_gsmg_v1.intf.abap
mseich Mar 19, 2024
4fda525
Update gsmg-v1.json
mseich Mar 19, 2024
cd87281
Merge branch 'main' into feature/gsmg
albertmink Mar 19, 2024
1ec018b
Merge branch 'main' into feature/gsmg
albertmink Mar 19, 2024
acbd246
Update z_aff_example_gsmg.gsmg.json
mseich Mar 20, 2024
5676338
Update z_aff_example_gsmg.gsmg.json
mseich Mar 20, 2024
332849b
Update z_aff_example_gsmg.gsmg.json
mseich Mar 20, 2024
db43d0c
Update z_aff_example_gsmg.gsmg.json
mseich Mar 20, 2024
6f9caec
LF as EOL
mseich Mar 20, 2024
cb3be75
LF as EOL
mseich Mar 20, 2024
a54a743
LF as EOL Part 3
mseich Mar 20, 2024
cfc32c5
Delete .vscode/settings.json
mseich Mar 22, 2024
f939a76
Merge branch 'main' into feature/gsmg
mseich Mar 22, 2024
a4778d7
Merge branch 'main' into feature/gsmg
albertmink Mar 26, 2024
880cba2
Update file-formats/gsmg/README.md
mseich Mar 27, 2024
7d6f46d
Update file-formats/gsmg/examples/z_aff_example_gsmg.gsmg.json
mseich Mar 27, 2024
e8a7d73
exceptions -> exception
mseich Mar 27, 2024
639368d
Merge branch 'main' into feature/gsmg
schneidermic0 Apr 5, 2024
c447d3a
Merge branch 'main' into feature/gsmg
schneidermic0 Apr 10, 2024
328b92b
Fix schema due to changes in issue #582
schneidermic0 Apr 10, 2024
7c92e51
Merge branch 'main' into feature/gsmg
schneidermic0 Apr 12, 2024
a1b3e5a
Merge branch 'main' into feature/gsmg
schneidermic0 Apr 12, 2024
25b0135
remove long description
mseich Apr 17, 2024
7e7859c
Fix language field according to BCP47
schneidermic0 Apr 17, 2024
4b3fdc5
Merge branch 'main' into feature/gsmg
schneidermic0 Jul 22, 2024
a3a5de8
Merge branch 'main' into feature/gsmg
albertmink Oct 4, 2024
ae2976c
Fix abaplint issue
schneidermic0 Oct 8, 2024
cf1e23b
Merge branch 'main' into feature/gsmg
schneidermic0 Oct 8, 2024
d287a97
Merge branch 'main' into feature/gsmg
schneidermic0 Oct 8, 2024
125a8fa
Merge branch 'main' into feature/gsmg
schneidermic0 Oct 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions file-formats/gsmg/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# GSMG File Format

File | Cardinality | Definition | Schema | Example
:--- | :--- | :--- | :--- | :---
`<name>.gsmg.json` | 1 | [`zif_aff_gsmg_v1.intf.abap`](./type/zif_aff_gsmg_v1.intf.abap) | [`gsmg-v1.json`](./gsmg-v1.json) | | [`z_aff_example_gsmg.gsmg.json`](./examples/z_aff_example_gsmg.gsmg.json)
11 changes: 11 additions & 0 deletions file-formats/gsmg/examples/z_aff_example_gsmg.gsmg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"formatVersion": "1",
"header": {
"description": "For testing.",
"originalLanguage": "en"
},
"generalInformation": {
"category": "usage",
"detailedDescription": "This Metric Group is for testing."
}
}
117 changes: 117 additions & 0 deletions file-formats/gsmg/gsmg-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"$comment": "This file is autogenerated, do not edit manually, see https://github.com/SAP/abap-file-formats for more information.",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/SAP/abap-file-formats/blob/main/file-formats/gsmg/gsmg-v1.json",
"title": "Metric Group",
"description": "Metric Group (GSMG)",
"type": "object",
"properties": {
"formatVersion": {
"title": "ABAP File Format Version",
"description": "The ABAP file format version",
"type": "string",
"const": "1"
},
"header": {
"title": "Header",
"description": "Header",
"type": "object",
"properties": {
"description": {
"title": "Description",
"description": "Description of the ABAP object",
"type": "string",
"maxLength": 60
},
"originalLanguage": {
"title": "Original Language",
"description": "Original language of the ABAP object",
"type": "string",
"minLength": 2,
"maxLength": 2,
"pattern": "^[a-z]+$"
},
"abapLanguageVersion": {
"title": "ABAP Language Version",
"description": "ABAP language version",
"type": "string",
"enum": [
"standard",
"cloudDevelopment"
],
"enumTitles": [
"Standard",
"ABAP Cloud Development"
],
"enumDescriptions": [
"Standard",
"ABAP cloud development"
],
"default": "standard"
}
},
"additionalProperties": false,
"required": [
"description",
"originalLanguage"
]
},
"generalInformation": {
"title": "General Information",
"description": "General information",
"type": "object",
"properties": {
"category": {
"title": "Category",
"description": "Category",
"type": "string",
"enum": [
"availability",
"performance",
"exception",
"configuration",
"usage",
"selfMonitoring",
"metering"
],
"enumTitles": [
"Availability",
"Performance",
"Exception",
"Configuration",
"Usage",
"Self Monitoring",
"Metering"
],
"enumDescriptions": [
"Availability",
"Performance",
"Exception",
"Configuration",
"Usage",
"Self monitoring",
"Metering"
],
"default": "usage"
},
"detailedDescription": {
"title": "Detailed Description",
"description": "Detailed description",
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"required": [
"category",
"detailedDescription"
]
}
},
"additionalProperties": false,
"required": [
"formatVersion",
"header",
"generalInformation"
]
}
92 changes: 92 additions & 0 deletions file-formats/gsmg/type/zif_aff_gsmg_v1.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
INTERFACE zif_aff_gsmg_v1
PUBLIC.

TYPES:

"! <p class="shorttext">Category</p>
"! Category
"! $values {@link zif_aff_gsmg_v1.data:co_category}
"! $default {@link zif_aff_gsmg_v1.data:co_category.usage}
ty_category TYPE c LENGTH 10,

"! <p class="shorttext">Detailed Description</p>
"! Detailed description
ty_detailed_description TYPE c LENGTH 255,


"! <p class="shorttext">General Information</p>
"! General information
BEGIN OF ty_general_information,
"! <p class="shorttext">Category</p>
"! Category
"! $required
category TYPE ty_category,

"! <p class="shorttext">Detailed Description</p>
"! Detailed description
"! $required
detailed_description TYPE ty_detailed_description,

END OF ty_general_information.


CONSTANTS:

"! <p class="shorttext">Category</p>
"! Category
BEGIN OF co_category,

"! <p class="shorttext">Availability</p>
"! Availability
availability TYPE ty_category VALUE 'AVAIL',

"! <p class="shorttext">Performance</p>
"! Performance
performance TYPE ty_category VALUE 'PERFORM',

"! <p class="shorttext">Exception</p>
"! Exception
exception TYPE ty_category VALUE 'EXCEPTION',

"! <p class="shorttext">Configuration</p>
"! Configuration
configuration TYPE ty_category VALUE 'CONFIGURE',

"! <p class="shorttext">Usage</p>
"! Usage
usage TYPE ty_category VALUE 'USAGE',

"! <p class="shorttext">Self Monitoring</p>
"! Self monitoring
self_monitoring TYPE ty_category VALUE 'SELFMON',

"! <p class="shorttext">Metering</p>
"! Metering
metering TYPE ty_category VALUE 'METERING',

END OF co_category.



TYPES:

"! <p class="shorttext">Metric Group</p>
"! Metric Group (GSMG)
BEGIN OF ty_main,

"! $required
format_version TYPE zif_aff_types_v1=>ty_format_version,

"! <p class="shorttext">Header</p>
"! Header
"! $required
header TYPE zif_aff_types_v1=>ty_header_60_cloud,

"! <p class="shorttext">General Information</p>
"! General information
"! $required
general_information TYPE ty_general_information,

END OF ty_main.

ENDINTERFACE.
7 changes: 7 additions & 0 deletions file-formats/gsmg/type/zif_aff_gsmg_v1.intf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "GSMG AFF Type (Metric Group)",
"originalLanguage": "en"
}
}
Loading