TagEntriesService
TagEntriesService.Rd
Provides access to functionality related to tag entries provided through the web API.
Super class
Myrconn.PetroVisor.Client::ApiRequests
-> TagEntriesService
Methods
Method new()
Create a new TagEntriesService instance. This is done by the ServiceProvider automatically.
Usage
TagEntriesService$new(url, token_type, token)
Method save()
Add new or update single or multiple tag entries at once.
Method load()
Get tag entries according to the given filter.
Arguments
entity_names
Names of the entities for which tag entries shall be retrieved. Has to be specified if
entity_set_name
is not used.entity_set_name
Name of the entity set defining the entities for which tag entries shall be retrieved. Has to be specified if
entity_names
is not used.tag_names
Tags for which tag entries shall be retrieved. Has to be specified if
tag_group_names
is not used.tag_group_names
Tag groups for which tag entries shall be retrieved. Has to be specified if
tag_names
is not used.start
Together with
end
defines a date range that is used to filter tag entries. All tag entries overlapping with this date range will be returned.end
Together with
start
defines a date range that is used to filter tag entries. All tag entries overlapping with this date range will be returned.start_date_begins
Together with
start_date_ends
defines a date range for the start dates of the tag entries. Tag entries with a start date within this date range will be returned.start_date_ends
Together with
start_date_begins
defines a date range for the start dates of the tag entries. Tag entries with a start date within this date range will be returned.end_date_begins
Together with
end_date_ends
defines a date range for the end dates of the tag entries. Tag entries with an end date within this date range will be returned.end_date_ends
Together with
end_date_begins
defines a date range for the end dates of the tag entries. Tag entries with an end date within this date range will be returned.is_end_date_set
Whether to return open or closed tag entries only. If not specified or set to NULL all tag entries (closed and ongoing) will be returned.
Examples
if (FALSE) { # \dontrun{
# create a new instance of the service provider
sp <- ServiceProvider$new("Host", 8095, "WorkspaceA", "UserX", "Password")
# get tag entries of group "Info"
tagEntries <- sp$tag_entries$GetTagEntries(
TagEntriesFilter$new(TagGroup = "Info")
)
# delete tag entries
sp$tag_entries$DeleteTagEntry(
entityName = "Well01",
tagName = "Active",
start = "2020-01-01T00:00:00.000Z"
)
} # }
## ------------------------------------------------
## Method `TagEntriesService$load`
## ------------------------------------------------
if (FALSE) { # \dontrun{
tagEntries <- sp$tag_entries$load(tag_group_names = c("Info"))
} # }