Skip to content

Commit

Permalink
sync method names between: analytics.service & flask_wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ck-c8y committed Mar 4, 2024
1 parent d082b39 commit 919f1e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions analytics-service/flask_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_content(repository):


@app.route("/extension", methods=["POST"])
def create_extension():
def create_extension_zip ():
# sample url
# "https://api.github.com/repos/SoftwareAG/apama-analytics-builder-block-sdk/contents/samples/blocks/CreateEvent.mon?ref=rel/10.18.0.x"

Expand Down Expand Up @@ -190,7 +190,7 @@ def create_extension():
# category: Category;
# }
@app.route("/cep/extension/<name>", methods=["GET"])
def get_cep_extension(name):
def get_extension(name):
cep_extension = {name}
return cep_extension, 200

Expand All @@ -203,7 +203,7 @@ def get_cep_extension(name):
# messages: string[];
# }
@app.route("/cep/extension", methods=["GET"])
def get_cep_extension_metadata():
def get_extension_metadata():
cep_extension_metadata = []
return cep_extension_metadata, 200

Expand All @@ -224,7 +224,7 @@ def get_cep_operationobject_id():
# status
# @app.route("/cep/status", methods=["GET"])
@app.route("/cep/status", methods=["GET"])
def get_get_cep_ctrl_status():
def get_cep_ctrl_status():
result = agent.get_cep_ctrl_status(request_headers=request.headers)
if (result == None):
return f"Not found", 400
Expand Down
2 changes: 1 addition & 1 deletion analytics-ui/src/manage/extension-grid.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class ExtensionGridComponent implements OnInit {
await this.analyticsService.getCEP_CtrlStatus();
this.cepId = microservice_application_id as string;
this.cepCtrlStatus = await this.analyticsService.getCEP_CtrlStatus();
this.cepOperationObject$ = this.analyticsService.getCEP_OperationsObject();
this.cepOperationObject$ = this.analyticsService.getCEP_OperationObject();
this.extensions$ = this.reload$.pipe(
tap((clearCache) => {
if (clearCache) {
Expand Down
2 changes: 1 addition & 1 deletion analytics-ui/src/shared/analytics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export class AnalyticsService {
return this._cepOperationObjectId;
}

getCEP_OperationsObject(): Subject<string> {
getCEP_OperationObject(): Subject<string> {
return this.cepOperationObject$;
}

Expand Down

0 comments on commit 919f1e4

Please sign in to comment.