|
|
|
@ -43,7 +43,7 @@ export class AttributeService { |
|
|
|
|
|
|
|
public deleteEntityAttributes(entityId: EntityId, attributeScope: AttributeScope, attributes: Array<AttributeData>, |
|
|
|
config?: RequestConfig): Observable<any> { |
|
|
|
const keys = attributes.map(attribute => encodeURI(attribute.key)).join(','); |
|
|
|
const keys = attributes.map(attribute => encodeURIComponent(attribute.key)).join(','); |
|
|
|
return this.http.delete(`/api/plugins/telemetry/${entityId.entityType}/${entityId.id}/${attributeScope}` + |
|
|
|
`?keys=${keys}`, |
|
|
|
defaultHttpOptionsFromConfig(config)); |
|
|
|
@ -51,7 +51,7 @@ export class AttributeService { |
|
|
|
|
|
|
|
public deleteEntityTimeseries(entityId: EntityId, timeseries: Array<AttributeData>, deleteAllDataForKeys = false, |
|
|
|
startTs?: number, endTs?: number, config?: RequestConfig): Observable<any> { |
|
|
|
const keys = timeseries.map(attribute => encodeURI(attribute.key)).join(','); |
|
|
|
const keys = timeseries.map(attribute => encodeURIComponent(attribute.key)).join(','); |
|
|
|
let url = `/api/plugins/telemetry/${entityId.entityType}/${entityId.id}/timeseries/delete` + |
|
|
|
`?keys=${keys}&deleteAllDataForKeys=${deleteAllDataForKeys}`; |
|
|
|
if (isDefinedAndNotNull(startTs)) { |
|
|
|
|