-
Notifications
You must be signed in to change notification settings - Fork 44
Add Dynatrace monitoring of MTA created by #1721
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| { | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,127 +37,6 @@ paths: | |
| $ref: "#/definitions/Info" | ||
| security: | ||
| - oauth2: [] | ||
| /api/v1/spaces/{spaceGuid}/files: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this removed? |
||
| get: | ||
| summary: "" | ||
| description: "Retrieves all Multi-Target Application files " | ||
| operationId: "getMtaFiles" | ||
| produces: | ||
| - "application/json" | ||
| parameters: | ||
| - name: "spaceGuid" | ||
| in: "path" | ||
| description: "GUID of space with mtas" | ||
| required: true | ||
| type: "string" | ||
| - name: "namespace" | ||
| in: "query" | ||
| description: "Filter mtas by namespace" | ||
| required: false | ||
| type: "string" | ||
| responses: | ||
| 200: | ||
| description: "OK" | ||
| schema: | ||
| type: "array" | ||
| items: | ||
| $ref: "#/definitions/FileMetadata" | ||
| security: | ||
| - oauth2: [] | ||
| post: | ||
| summary: "" | ||
| description: "Uploads a Multi Target Application archive or an Extension Descriptor " | ||
| operationId: "uploadMtaFile" | ||
| consumes: | ||
| - "multipart/form-data" | ||
| produces: | ||
| - "application/json" | ||
| parameters: | ||
| - name: "spaceGuid" | ||
| in: "path" | ||
| description: "GUID of space you wish to deploy in" | ||
| required: true | ||
| type: "string" | ||
| - name: "namespace" | ||
| in: "query" | ||
| description: "file namespace" | ||
| required: false | ||
| type: "string" | ||
| responses: | ||
| 200: | ||
| description: "successful operation" | ||
| schema: | ||
| $ref: "#/definitions/FileMetadata" | ||
| 201: | ||
| description: "Created" | ||
| schema: | ||
| $ref: "#/definitions/FileMetadata" | ||
| security: | ||
| - oauth2: [] | ||
| /api/v1/spaces/{spaceGuid}/files/async: | ||
| post: | ||
| summary: "" | ||
| description: "Uploads a Multi Target Application archive or an Extension Descriptor\ | ||
| \ from a remote endpoint" | ||
| operationId: "startUploadFromUrl" | ||
| consumes: | ||
| - "application/json" | ||
| parameters: | ||
| - name: "spaceGuid" | ||
| in: "path" | ||
| description: "GUID of space you wish to deploy in" | ||
| required: true | ||
| type: "string" | ||
| - name: "namespace" | ||
| in: "query" | ||
| description: "file namespace" | ||
| required: false | ||
| type: "string" | ||
| - in: "body" | ||
| name: "body" | ||
| description: "URL reference to a remote file" | ||
| required: false | ||
| schema: | ||
| $ref: "#/definitions/FileUrl" | ||
| responses: | ||
| 202: | ||
| description: "Accepted" | ||
| security: | ||
| - oauth2: [] | ||
| /api/v1/spaces/{spaceGuid}/files/jobs/{jobId}: | ||
| get: | ||
| summary: "" | ||
| description: "Gets the status of an async upload job" | ||
| operationId: "getAsyncUploadJob" | ||
| produces: | ||
| - "application/json" | ||
| parameters: | ||
| - name: "spaceGuid" | ||
| in: "path" | ||
| description: "GUID of space you wish to deploy in" | ||
| required: true | ||
| type: "string" | ||
| - name: "namespace" | ||
| in: "query" | ||
| description: "file namespace" | ||
| required: false | ||
| type: "string" | ||
| - name: "jobId" | ||
| in: "path" | ||
| description: "ID of the upload job" | ||
| required: true | ||
| type: "string" | ||
| responses: | ||
| 200: | ||
| description: "OK" | ||
| schema: | ||
| $ref: "#/definitions/AsyncUploadResult" | ||
| 201: | ||
| description: "Created" | ||
| schema: | ||
| $ref: "#/definitions/AsyncUploadResult" | ||
| security: | ||
| - oauth2: [] | ||
| /api/v1/spaces/{spaceGuid}/mtas: | ||
| get: | ||
| summary: "" | ||
|
|
@@ -403,66 +282,6 @@ securityDefinitions: | |
| flow: "password" | ||
| scopes: {} | ||
| definitions: | ||
| AsyncUploadResult: | ||
| type: "object" | ||
| properties: | ||
| status: | ||
| type: "string" | ||
| readOnly: true | ||
| enum: | ||
| - "RUNNING" | ||
| - "FINISHED" | ||
| - "ERROR" | ||
| bytes_processed: | ||
| type: "integer" | ||
| format: "int64" | ||
| readOnly: true | ||
| error: | ||
| type: "string" | ||
| readOnly: true | ||
| file: | ||
| readOnly: true | ||
| $ref: "#/definitions/FileMetadata" | ||
| mta_id: | ||
| type: "string" | ||
| readOnly: true | ||
| client_actions: | ||
| type: "array" | ||
| readOnly: true | ||
| items: | ||
| type: "string" | ||
| enum: | ||
| - "RETRY_UPLOAD" | ||
| FileMetadata: | ||
| type: "object" | ||
| properties: | ||
| id: | ||
| type: "string" | ||
| readOnly: true | ||
| name: | ||
| type: "string" | ||
| readOnly: true | ||
| size: | ||
| type: "integer" | ||
| readOnly: true | ||
| digest: | ||
| type: "string" | ||
| readOnly: true | ||
| digestAlgorithm: | ||
| type: "string" | ||
| readOnly: true | ||
| space: | ||
| type: "string" | ||
| readOnly: true | ||
| namespace: | ||
| type: "string" | ||
| readOnly: true | ||
| FileUrl: | ||
| type: "object" | ||
| properties: | ||
| file_url: | ||
| type: "string" | ||
| readOnly: true | ||
| Info: | ||
| type: "object" | ||
| properties: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,10 @@ public class MtaArchiveHelper { | |
|
|
||
| private Map<String, String> mtaArchiveResources; | ||
| private Map<String, String> mtaArchiveModules; | ||
|
|
||
| public String getCreatedBy() { | ||
| return this.manifest.getMainAttributes().getValue("Created-By"); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Constant extraction |
||
| } | ||
| private Map<String, String> mtaArchiveRequiresDependencies; | ||
|
|
||
| public MtaArchiveHelper(Manifest manifest) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,6 +22,8 @@ | |
| import org.cloudfoundry.multiapps.controller.process.dynatrace.DynatracePublisher; | ||
| import org.cloudfoundry.multiapps.controller.process.dynatrace.ImmutableDynatraceProcessEvent; | ||
| import org.cloudfoundry.multiapps.controller.process.util.ProcessConflictPreventer; | ||
| import org.cloudfoundry.multiapps.controller.process.variables.VariableHandling; | ||
| import org.cloudfoundry.multiapps.controller.process.variables.Variables; | ||
|
Comment on lines
+25
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unused imports |
||
| import org.slf4j.Logger; | ||
| import org.slf4j.LoggerFactory; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like unintentionally added