summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/components/details/details.component.ts
blob: 5eed3daf9e0ebe0cb500815310d998bab12fe820 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
    Copyright (C) 2019 CMCC, Inc. and others. All rights reserved.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/
import { Component, OnInit, Input } from '@angular/core';
import { slideUpDown } from '../../animates';
import { HomesService } from '../../homes.service';

@Component({
  selector: 'app-details',
  templateUrl: './details.component.html',
  styleUrls: ['./details.component.less'],
  animations: [ slideUpDown ]
})
export class DetailsComponent implements OnInit {

  constructor(private myhttp:HomesService) { }

  ngOnInit() {
  }

  ngOnChanges(changes){
    this.getAlarmDetailData(this.detailId);
  }

  datailheaderdata: any = {

  };
  dataillistdata: any = [];
  getAlarmDetailData(id){
    if(id){
      this.myhttp.getAlarmDetailData(id).subscribe((data)=>{
        this.datailheaderdata = data.alarmsHeader;
        this.dataillistdata = data.list;
      })
    }

  }
  // detail Show
  moredetailShow = false;
  @Input() detailId;
  
  state = 'up'
  slideUpDown(){
    this.moredetailShow = !this.moredetailShow;
    this.state = this.state === 'up' ? 'down' : 'up';
  }
}
-------------------------+ |gloabalSubscriberId |String |Customer Id | +------------------------------+-----------------+------------------------------------+ |serviceType |String |service Type | +------------------------------+-----------------+------------------------------------+ |parameters |Object |Parameter Object | +------------------------------+-----------------+------------------------------------+ Parameter Object +------------------------------+-----------------+------------------------------------+ |Attribute |Content |Description | +==============================+=================+====================================+ |locationConstraints |List of object |location infor for each vnf | +------------------------------+-----------------+------------------------------------+ |resource |List of Resource |resource of service/resource | +------------------------------+-----------------+------------------------------------+ |requestInputs |key-value map |input of service/resource | +------------------------------+-----------------+------------------------------------+ LocationConstraint Object +------------------------------+-----------------+------------------------------------+ |Attribute |Content |Description | +==============================+=================+====================================+ |vnfProfileId |String |Customization id for VNF | +------------------------------+-----------------+------------------------------------+ |locationConstraints |Object |DC location info of VNF | +------------------------------+-----------------+------------------------------------+ VnfLocationConstraint Object +------------------------------+-----------------+------------------------------------+ |Attribute |Content |Description | +==============================+=================+====================================+ |vimId |String |VIM id from ESR definition | +------------------------------+-----------------+------------------------------------+ Resource Object +------------------------------+-----------------+------------------------------------+ |Attribute |Content |Description | +==============================+=================+====================================+ |resourceName |String |The resource name | +------------------------------+-----------------+------------------------------------+ |resourceInvariantUuid |String |The resource invariant UUID. | +------------------------------+-----------------+------------------------------------+ |resourceUuid |String |The resource UUID. | +------------------------------+-----------------+------------------------------------+ |resourceCustomizationUuid |String |The resource customization UUID. | +------------------------------+-----------------+------------------------------------+ |parameters |Object |Parameter of resource | +------------------------------+-----------------+------------------------------------+ Response: +-------------+---------+-----------+-------+------------------------------------------------------------------------+ |Attribute |Qualifier|Cardinality|Content|Description | +-------------+---------+-----------+-------+------------------------------------------------------------------------+ |serviceId |M |1 |String |Service instance ID. | +-------------+---------+-----------+-------+------------------------------------------------------------------------+ |operationId |M |1 |String |Service Operation ID. | +-------------+---------+-----------+-------+------------------------------------------------------------------------+ Delete E2E service instance +++++++++++++++++++++++++++ +--------------------+----------------------------------------------------------------------+ |Interface Definition|Description | +====================+======================================================================+ |URI |/onap/so/infra/e2eServiceInstances/v3/{serviceId} | +--------------------+----------------------------------------------------------------------+ |Operation Type |DELETE | +--------------------+----------------------------------------------------------------------+ Request Parameters: +-------------------+---------+-----------+-------+----------------------------------------+ |Attribute |Qualifier|Cardinality|Content|Description | +===================+=========+===========+=======+========================================+ |globalSubscriberId |M |1 |String |The subscriber id. It is defined in AAI | +-------------------+---------+-----------+-------+----------------------------------------+ |serviceType |M |1 |String |The service type. It is defined in AAI | +-------------------+---------+-----------+-------+----------------------------------------+ Response: +-------------+---------+-----------+-------+------------------------------------------------------------------------+ |Attribute |Qualifier|Cardinality|Content|Description | +-------------+---------+-----------+-------+------------------------------------------------------------------------+ |operationId |M |1 |String |The operation id. | +-------------+---------+-----------+-------+------------------------------------------------------------------------+ Query E2E service operation result ++++++++++++++++++++++++++++++++++ +--------------------+-----------------------------------------------------------------------------------------------+ |Interface Definition|Description | +====================+===============================================================================================+ |URI |/onap/so/infra/e2eServiceInstances/v3/{serviceId}/operations/{operationId} | +--------------------+-----------------------------------------------------------------------------------------------+ |Operation Type |GET | +--------------------+-----------------------------------------------------------------------------------------------+ Request Parameters: +--------------+---------+-----------+-------+--------------+ |Attribute |Qualifier|Cardinality|Content|Description | +==============+=========+===========+=======+==============+ |serviceId |M |1 |Service instance ID. | +--------------+---------+-----------+-------+--------------+ |operationId |M |1 |Service Operation ID. | +--------------+---------+-----------+-------+--------------+ Response: +------------------+---------+-----------+-------+------------------------------------------------------------------------+ |Attribute |Qualifier|Cardinality|Content|Description | +------------------+---------+-----------+-------+------------------------------------------------------------------------+ |operation |M |1 |String |Operation object identify. | +------------------+---------+-----------+-------+------------------------------------------------------------------------+ |operationId |M |1 |String |Operation ID. | +------------------+---------+-----------+-------+------------------------------------------------------------------------+ |operation |M |1 |String |Operation type, create|delete. | +------------------+---------+-----------+-------+------------------------------------------------------------------------+ |result |M |1 |String |Operation result: finished, error, processing. | +------------------+---------+-----------+-------+------------------------------------------------------------------------+ |reason |M |1 |String |If failing, need to write fail reason. | +------------------+---------+-----------+-------+------------------------------------------------------------------------+ |userId |M |1 |String |Operation user ID. | +------------------+---------+-----------+-------+------------------------------------------------------------------------+ |operationContent |M |1 |String |The status detail of current operation which is being executing. | +------------------+---------+-----------+-------+------------------------------------------------------------------------+ |progress |M |1 |String |Current operation progress. | +------------------+---------+-----------+-------+------------------------------------------------------------------------+ |operateAt |M |1 |String |Time that it starts to execute operation. | +------------------+---------+-----------+-------+------------------------------------------------------------------------+ |finishedAt |M |1 |String |Time that it finished executing operation. | +------------------+---------+-----------+-------+------------------------------------------------------------------------+